You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): Website details shows “No pages crawled yet” after an initial pages read failure #3848
Evidence:products-websites-next-page-fetch-error-evidence.md; an isolated Vitest/jsdom probe injected a rejected initial fetchPages action into the current WebsiteViewDialog and passed.
Reproduction
Open Website details for an active site whose row reports a nonzero crawled page count.
Let the initial websites/actions:fetchPages action reject with a transport/server error.
Inspect the pages section.
The error callback sets isFirstLoad to false and emits only a transient “Couldn’t load pages” toast. Because pages remains empty, the dialog then renders the normal No pages crawled yet empty state. There is no Retry button or other in-dialog way to reissue the read; the user must close and reopen the dialog. The current-component probe asserted the misleading empty copy and absence of a retry control.
Root cause
services/platform/app/features/websites/components/website-view-dialog.tsx:316-335 handles fetchPages errors by clearing the loading flag but stores no settled error. The render at :650-680 treats !isFirstLoad && pages.length === 0 as a successful empty crawl, even when website.crawledPageCount > 0; isPending only controls the initial skeleton.
Expected / actual
Expected: distinguish “no pages” from a failed read, show a retryable error state, and preserve rows on later-page failures. Actual: an outage is shown as an empty crawl despite the website row saying pages exist, which can make users believe indexed content disappeared.
Deduplication
This is separate from the shared Products/Contacts/Websites list wiring issue: it is the detail dialog’s on-demand pages action and empty-state transition, not a paginated table. No current ledger entry covers this Website details fetch failure.
Suggested repair
Track the settled fetch error, render an error panel with Retry that calls the initial fetch again, and keep already loaded rows when a later page request fails. Add a regression for a rejected initial action.
Activity
fix(platform): show a failed website pages read with Try again
fix(platform): show a failed website pages read with Try again
fix(platform): show a failed website pages read with Try again
fix(platform): show a failed website pages read with Try again
fix(platform): show a failed website pages read with Try again