Repository navigation
Description
Bug: failed Products, Contacts, or Websites list reads render as empty collections
- Classification: confirmed candidate defect, P2 (missing data is presented as deletion or an empty organization).
- Source SHA:
9ea59724df24d62729a9360f3902d964dab39b3e. - Evidence:
products-websites-next-list-error-evidence.md; three isolated Vitest/jsdom probes rendered the actual table + shareduseListPagepath and passed the settled-error assertions.
Reproduction
For Contacts, Products, or Websites:
- Open the entity list with no first-page rows loaded.
- Let its paginated read settle with
results: [],status: Exhausted,isLoading: false, and an error such as “backend unavailable”. - Inspect the table.
Each surface renders its normal localized empty copy (No contacts yet, No products yet, or No websites yet). The backend error text is absent, no Retry button is present, and the query retry spy is never called. The probes exercised the actual components and shared table path; only the hook boundary was controlled, with no production data or writes.
Root cause
useCachedPaginatedQuery exposes a settled error and retry (services/platform/app/hooks/use-cached-paginated-query.ts:31-70). useListPage forwards those fields to DataTable and explicitly selects an error display when no rows loaded (packages/ui/src/hooks/use-list-page.ts:287-300, 406-416). The three tables omit both fields from their dataSource objects:
services/platform/app/features/contacts/components/contact-table.tsx:170-177services/platform/app/features/products/components/products-table.tsx:122-129services/platform/app/features/websites/components/websites-table.tsx:165-172
They pass results, status, loadMore, and isLoading only, so the shared error state cannot reach DataTable.
Expected / actual
Expected: show a settled read failure with a retry action and reserve the empty-state copy for a successful empty response. Actual: an outage or deterministic read failure looks like an empty organization; users may duplicate imports or assume rows were deleted, with no recovery control.
Deduplication
No matching current ledger or issue covers these three paginated entity lists. Existing read-error findings cover other surfaces such as notifications, automation history, governance tables, and knowledge entries; this shared useListPage wiring omission is a separate root cause.
Suggested repair
Forward error: paginatedResult.error and retry: paginatedResult.retry in all three data sources and add one regression per table asserting the error display and retry callback.
Activity
fix(platform): show failed contact, product and website list reads