Skip to content

bug(platform): Teams, Notifications and Enterprise SSO settings hide a failed read (endless skeleton, all toggles on, blank form) #4653

Closed

Description

@yannickmonney

Summary

Three settings pages lose a failed read instead of reporting it. Each needs its own small fix, but the cause is the same: the read's error and retry never reach the page.

Page What a failed read shows Why
Settings > Teams The table's skeleton rows, permanently. No message, no Try again, no teams teams-settings.tsx:26 reads const { teams } = useOrgTeams();, dropping the isError and refetch the hook returns. teams-table.tsx:92 passes dataSource: { type: 'query', data: teams } without error/retry. Yet useListPage supports exactly that: RequestOutcome.error and retry "show the failure above the table, with the same retry" (packages/ui/src/hooks/use-list-page.ts). Its loading rule for a query source is dataSource.data === undefined, so the skeleton never ends
Settings > Notifications Every toggle on, including any the person switched off. Nothing says the read failed notification-preferences-settings.tsx:60 reads only { data, isLoading }. With prefs undefined, checked = … value !== false (line 145) and emailChecked = prefs?.actionableEmail !== false (line 121) are all true. A toggle saves only its own key, so nothing else is overwritten, but the page misstates the current settings
Settings > Enterprise SSO A blank, disabled connection form, with no message and no Try again. It reads like an organization without SSO enterprise-sso-settings.tsx:33 reads only { data, isLoading }. The form treats config === undefined as "still loading" (enterprise-sso-form.tsx:395) and keeps its fieldset disabled (:788); after a failed read, that loading never ends. Related: #3670 (a malformed config shown as unconfigured)

Source

Reproduction (expected from the code; not run live)

For each page:

  1. Make its read fail (offline before opening it, or a server error):
    • members/queries:listOrgTeams;
    • collab/preferences:getNotificationPreferences;
    • enterprise_sso/config/queries:get.
  2. Open the page as someone allowed to see it.
  3. Observe the result described above.

Expected

On a failed read, each page says its data couldn't load and offers Try again, and shows no list, toggle state or blank form as if it were current:

  • Teams: pass error/retry into the list's data source.
  • Notifications: don't render toggle states until a read succeeds.
  • Enterprise SSO: separate "failed" from "loading".

Regression expectation

One test per page with a failed read:

  • the failure message and Try again appear, and Try again refetches;
  • Teams: no permanent skeleton;
  • Notifications: no toggles shown as on;
  • Enterprise SSO: no blank form without explanation.

Triage

Activity

  1. yannickmonney commented on Oct 12, 2026

    @yannickmonney
    ContributorAuthor

    Post-merge recheck at main aec031867 (Review A, TALE-358, 2026-10-12 04:15 Zurich occurrence; static reading).

    #4264 (dcf4a6ad9) replaces the Enterprise SSO row's blank form with a verdict that is wrong for most failures. enterprise-sso-settings.tsx:50-55 now renders, for any error from the connection read:

    <Alert variant="destructive" title="Saved SSO connection needs repair" description={failureDetail(error)} />
    • The title is a literal English string (:53), so de and fr show it in English.
    • It says "needs repair" for a 5xx, a lost connection or a 403, not only for the server's 409 sso_config_unreadable. An admin is told to repair a file that is fine.
    • There is no Try again. The query's refetch isn't offered, so a transient failure only recovers on a tab refocus or a reload.
    • For the 409, the description is the server's English sentence ("The SSO connection configuration for … could not be read; repair connection.yml before continuing.", backend/domains/sso/config.ts:39).
    • Tests: fix(platform): surface unreadable SSO configuration #4264's shows a repair state when the saved connection cannot be read (enterprise-sso-settings.test.tsx:58) covers only the 409 case.

    The other two rows are unchanged: Teams (teams-settings.tsx, teams-table.tsx) and Notifications (notification-preferences-settings.tsx) still hide a failed read. This issue stays open for all three.

    Expected for the SSO row:

    • Name the 409 repair case with localized text.
    • For other failures, say the connection couldn't be loaded, with Try again.

    Separate, filed as #4826: the same commit makes one organization's unreadable file break SSO discovery on the login page for every organization.

  2. added
    agent-ready
    on Oct 29, 2026
  3. added a commit that references this issue on Oct 30, 2026
    0588d38
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