Repository navigation
Closed
Labels
Description
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
origin/maind1373d84cd56972501403f62145ec52e6f65d44a.- This is a deterministic code path, read statically. No running stack was used: Review A has no stack reservation this occurrence.
- Dedupe: I scanned 252 open items (84 PRs). Only bug(platform): malformed SSO configuration is shown as an unconfigured connection #3670 is related, and it has a different cause.
Reproduction (expected from the code; not run live)
For each page:
- Make its read fail (offline before opening it, or a server error):
members/queries:listOrgTeams;collab/preferences:getNotificationPreferences;enterprise_sso/config/queries:get.
- Open the page as someone allowed to see it.
- 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/retryinto 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
- Severity: low. Each needs a failed read. Notifications is the most misleading, since it states settings the person may have changed.
- Owner: the platform owner of settings.
- Review A cells:
settings.teams,settings.notificationsandsettings.enterprise-ssoUX-CLARITY and REL-MANUAL. Found by Review A (TALE-358) at the 2026-10-09 16:15 Europe/Zurich occurrence, in thesettings.*UX-CLARITY slice. - Related, same class: bug(platform): WebDAV app passwords stay on their loading skeleton when the list fails to load #4652, bug(platform): failed initial API-key list stays on its loading skeleton #3676, bug(platform): API key owner pickers say no member, team or project qualifies while the list loads or after it fails to load #4586 and bug(platform): a failed agent-list read makes a project's Default reviewer say its agent is unavailable #4644.
Activity
yannickmonney commentedon Oct 12, 2026
Post-merge recheck at
mainaec031867(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-55now renders, for anyerrorfrom the connection read::53), so de and fr show it in English.sso_config_unreadable. An admin is told to repair a file that is fine.backend/domains/sso/config.ts:39).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:
Separate, filed as #4826: the same commit makes one organization's unreadable file break SSO discovery on the login page for every organization.
fix(platform): name failed Teams, Notifications and SSO settings reads
fix(platform): say when WebDAV app-passwords fail to load
fix(platform): say when WebDAV app-passwords fail to load
fix(platform): name a failed skill library read, not an empty library
fix(platform): say when WebDAV app-passwords fail to load
fix(platform): name a failed skill library read, not an empty library