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
When the document sources list fails to load it shows only text: no Retry and no request id #627
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'.
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.
Activity
rahulsjha commentedon Nov 14, 2026
Hi @zlareb1, I'd like to take this one as well.
Plan:
frontend/src/views/SourcesList.tsx, keep the full error (not just the message) and render it throughListState kind="error"witherror,requestIdandonRetry={reload}, matchingDocuments.tsx.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.