Skip to content

When the document sources list fails to load it shows only text: no Retry and no request id #627

Closed

Description

@zlareb1

Component

Dashboard

Use case

frontend/src/views/SourcesList.tsx keeps only the error's message ({ kind: "error"; message: string }), so the request id is lost, and the error state renders one line, Couldn't list the document sources — {message}, although the view has a reload(). docs/development/dashboard-design.md says a failed read shows the message, the request id and a secondary Retry, which the neighbouring lists do through ListState kind="error" (Documents.tsx, Browse.tsx, Code.tsx). The file has no test.

Describe the solution you'd like

Goal. The sources list's failed read looks and behaves like the other lists'.

Files to start from

  • frontend/src/views/SourcesList.tsx
  • frontend/src/components/ui/ListState.tsx (its error props: error, requestId, onRetry)
  • frontend/src/views/Documents.tsx (a list that already does this)
  • docs/development/dashboard-design.md (the failed-read rule)

Acceptance criteria

  • The error state keeps the error and shows its request id
  • A secondary Retry button calls reload()
  • A new SourcesList.test.tsx: a failed read, then Retry, shows the sources
  • A non-admin still sees no section when the read fails, as today

How to test

npm --prefix frontend ci
npm --prefix frontend run test -- src/views/SourcesList.test.tsx
npm --prefix frontend run build

Size: S to M (half a day to a day)

Where the need comes from

The need is mine, an AI tool helped shape the proposal

Additional context

A good first issue. Read CONTRIBUTING.md first (signed-off commits), and comment here to say you are working on it.

Activity

  1. added
    enhancement
    good first issue
    help wanted
    on Nov 13, 2026
  2. rahulsjha commented on Nov 14, 2026

    @rahulsjha
    Contributor

    Hi @zlareb1, I'd like to take this one as well.

    Plan:

    • In frontend/src/views/SourcesList.tsx, keep the full error (not just the message) and render it through ListState kind="error" with error, requestId and onRetry={reload}, matching Documents.tsx.
    • Keep the current non-admin behaviour (no section on a failed read).
    • Add SourcesList.test.tsx: a failed read shows the message and request id, and Retry → a successful read shows the sources. Plus a non-admin case.

    I'll open the PR after #628.

  3. added
    up-for-grabs
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issuehelp wantedup-for-grabs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions