Skip to content

Site Audit detail: fetch errors render a blank page with no retry #666

Closed

Description

@gkhngyk

Problem

On the audit detail page, loadAndPoll's catch block only does setLoading(false) and fires a toast — audit stays null. The render chain ends with … : audit ? <AuditReport …/> : null, so after a failed fetch nothing matches and the page shows only the back link. Once the toast fades there is no explanation and no retry path. This is reachable in normal use: a deleted audit's id (404 from the server) or any transient network failure.

Evidence

Fix

Track an error state, set it in the catch, and render an error card — "Couldn't load this audit" with a Retry button re-invoking loadAndPoll — before the audit ? branch. Same shape as the prompt/topic detail fixes (#591) and the hub's error card. A 404 should read as "Audit not found" rather than a retry loop.

Acceptance criteria

  • A failed fetch shows a persistent error card with Retry; a 404 shows a not-found message.
  • Successful loads and the running/polling flow are unchanged.

Activity

  1. added
    bug
    good first issue
    on Aug 7, 2026
  2. BharadwajKanneveti commented on Aug 7, 2026

    @BharadwajKanneveti
    Contributor

    Hi @gkhngyk I will work on this issue

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

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions