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
Topics: load failures render as "No topics defined yet" / "Topic not found" with no error state #595
All three data loaders in the Topics feature swallow failures into console.error, so a failed request renders as a normal empty state. A user seeing "No topics defined yet" (or "Topic not found") cannot tell an outage from an empty account, and there is no retry affordance anywhere.
Evidence
topics/page.tsx#L192-L196 — overview catch only logs; the topics.length === 0 branch then shows the "No topics defined yet" empty state
topics/[id]/page.tsx#L171-L174 — detail page: same swallow, and both "missing" and "request failed" render as "Topic not found"
In each catch, surface the failure (a toast.error matching the Manage Topics page is the minimum) and set an error flag so the page renders an error state with a retry button instead of the empty state. On the detail page, keep "Topic not found" only for a successful fetch that returns nothing.
Acceptance criteria
A failed load shows an error with a retry action, not "No topics defined yet" / "Topic not found".
Genuinely empty accounts still see the existing empty states.
Activity