Skip to content

bug(platform): /dashboard stays on its loading skeleton when the organization list or the organization switch fails #4825

Closed

Description

@yannickmonney

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) /organizations fails, both after the transport retries and with a 4xx refusal, and (b) setActive rejects. Each must show the error and recover with Try again. On aec031867 both stay on the skeleton.

Severity and owner

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added 2 commits that reference this issue on Oct 30, 2026
    8a3b00f
    c8d9046
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

    agent-readybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions