Deleting a sales channel crashed the entire product list page. The two components responsible had exactly zero tests — not unit, not integration, not E2E.
Every requirement extracted from the PR, mapped to existing tests and verified against the codebase. Click any row to see the search evidence.
Coverage Distribution
Requirement Coverage
| # | Requirement | Code Symbol | Existing Test | Status | |
|---|---|---|---|---|---|
R1 UI must not crash when product links to deleted sales channel SalesChannelsCell.tsx None GAP | |||||
R2 Product details page handles null entries in sales_channels ProductSalesChannelSection.tsx None GAP | |||||
R3 Sales channel count tooltip shows correct number of valid channels SalesChannelsCell.tsx None GAP | |||||
R4 Tooltip list excludes entries for deleted channels SalesChannelsCell.tsx None GAP | |||||
R5 Product list renders correctly when some products have orphaned refs SalesChannelsCell.tsx None GAP | |||||
R6 Deleting sales channel should remove associated product links — Partial PARTIAL | |||||
R7 UI shows placeholder when product has no valid sales channels SalesChannelsCell.tsx None GAP | |||||
R8 System handles mix of valid and invalid sales channels SalesChannelsCell.tsx None GAP | |||||
UI must not crash when product links to deleted sales channel
Product details page handles null entries in sales_channels
Sales channel count tooltip shows correct number of valid channels
Tooltip list excludes entries for deleted channels
Product list renders correctly when some products have orphaned refs
Deleting sales channel should remove associated product links
UI shows placeholder when product has no valid sales channels
System handles mix of valid and invalid sales channels
These gaps were verified by searching the repository's test directories. Each finding includes the exact search query and result so you can reproduce it yourself.
Searched packages/**/__tests__ for 'SalesChannelsCell' and 'ProductSalesChannelSection' — found 0 results. The components responsible for rendering sales channel information lack any form of testing.
The bug originated from a data inconsistency created by deleting a sales channel. No E2E tests cover: create channel → associate with product → delete channel → verify product page still works.
The code handles 0, 1, 2, or >2 sales channels differently (truncating, tooltips). No tests validate this conditional rendering, especially with null data mixed in.
| Requirement | Before | After |
|---|---|---|
| UI crash on orphaned data | ✗ None | ✓ Unit + E2E |
| Graceful handling of nulls | ✗ None | ✓ Unit |
| Correct tooltip count | ✗ None | ✓ Unit |
| Accurate tooltip channel list | ✗ None | ✓ Unit |
| Product list view rendering | ✗ None | ✓ Unit + E2E |
| Backend cascade delete | ~ Partial | ✓ Integration |
| Placeholder for no channels | ✗ None | ✓ Unit |
| Mixed valid/invalid channels | ✗ None | ✓ Unit + E2E |
Every finding in this analysis is based on a public GitHub repository. Clone the repo, run the searches we documented, and see the same results. No black boxes.