Repository navigation
Closed
Labels
Description
Problem
/dashboard is where every session lands: / redirects a signed-in user there (routes/index.tsx:13). The page works out which organization to open, and until it navigates it renders only the boot skeleton (<DashboardShellFrame />, a full Skeletonize loading frame). When either of its two steps fails, it never leaves that skeleton and never says why.
Step (main aec031867) |
On failure |
|---|---|
The organization list. routes/dashboard/index.tsx:39-41 keeps only data and isLoading from userOrganizationsQuery(), and the effect returns while !organizations (:46-52). |
retryTransportOnly (lib/backend/org.ts:26-31) retries a 5xx or a transport fault three times and a 4xx not at all. Then the query sits in error, organizations stays undefined and the skeleton stays. The only automatic recovery is the QueryClient's refetch when the tab regains focus (router.tsx:45-47), and only for transport or server faults. A structured refusal stays for good. |
Entering the organization. authClient.organization.setActive(…) then invalidateQueries(…) (:94-98). |
The catch at :108-111 only logs Failed to enter organization to the console and resets resolvedRef. Nothing re-runs the effect unless the organization list itself changes (its dependencies, :113-120), so the skeleton stays until a reload. |
There is no message, no Try again and no sign-out on this route. A user who signs in while the backend restarts or answers with a brief 5xx sees a loading screen that never finishes. No test covers either failure; there is no route test for routes/dashboard/index.tsx.
Expected
- Keep the skeleton only while the reads are pending.
- On a failed organization read, or a failed entry into the organization, render a named error that says what failed, with Try again (refetch, or re-run the entry) and a way to sign out.
- Regression: a route test in which (a)
/organizationsfails, both after the transport retries and with a 4xx refusal, and (b)setActiverejects. Each must show the error and recover with Try again. Onaec031867both stay on the skeleton.
Severity and owner
- Severity: medium. It is the entry route of every session, the failure is silent, and only a tab refocus (some faults) or a reload recovers.
- Owner: platform (app shell and auth).
- Related: bug(platform): the SSO sign-in step says "No organizations are available" while its list loads or after it fails to load #4606 (the SSO step's organization list), and the endless-skeleton class bug(platform): WebDAV app passwords stay on their loading skeleton when the list fails to load #4652 and bug(platform): Teams, Notifications and Enterprise SSO settings hide a failed read (endless skeleton, all toggles on, blank form) #4653.
- Found by: Review A (TALE-358), 2026-10-12 04:15 Zurich occurrence, oldest-due
app.shellslice. This is static reading ataec031867. I didn't run it: Review A's stack is BLOCKED until a reservation service exists.
Activity
fix(platform): say when /dashboard cannot read or open an organization
fix(platform): stop treating a refused organization switch as done
fix(platform): stop treating a refused organization switch as done