Skip to content

bug(platform): Website details shows “No pages crawled yet” after an initial pages read failure #3848

Closed

Description

@yannickmonney

Bug: Website details shows “No pages crawled yet” after an initial pages read failure

  • Classification: confirmed candidate defect, P2 (detail data is presented as absent with no recovery).
  • Source SHA: 9ea59724df24d62729a9360f3902d964dab39b3e.
  • 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

  1. Open Website details for an active site whose row reports a nonzero crawled page count.
  2. Let the initial websites/actions:fetchPages action reject with a transport/server error.
  3. 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

  1. added 5 commits that reference this issue on Oct 9, 2026
    d997173
    a5edffb
    78a274c
    436ac9a
    2f45f8e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions