Skip to content

fix: show catalog loading state in credential picker - #4161

Merged
yannickmonney merged 2 commits into
mainfrom
fix/catalog-loading-state
Oct 3, 2026
Merged

yannickmonney merged 2 commits into
mainfrom
fix/catalog-loading-state

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What changed

  • Thread provider and connector catalog pending state through the shared credential picker.
  • Render an accessible skeleton while catalogs are loading, preserving the real empty and error states.
  • Add focused regression coverage and update the settings manual register.

Verification

  • Before fix: the pending-state regression failed during initial implementation; the focused test then exposed and was corrected.
  • After fix: bunx vitest run --config vitest.ui.config.ts app/features/settings/credentials/vendor-picker-pane.test.tsx (2 passed).
  • bunx oxlint --type-aware on all changed TypeScript files (passed).
  • git diff --check (passed).
  • Pre-commit conflict-marker, format, and local SAST hooks (passed).

Finding -> test

  • Pending catalog was treated as an empty vendor list -> loading-state test asserts role=status, aria-busy=true, and no empty warning.
  • Resolved empty catalog must remain a deployment warning -> empty-catalog test asserts the warning remains.

Closes #4146

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Independent review of PR #4161 at c3eecf68c2db8474e27ace8a65c0c2a3673c0134: accepted, with follow-ups.

Rendered in real Chromium (mine). I ran a vitest browser-mode probe that was never committed. It renders the real ProvidersSettings page with its data hooks stubbed and opens Add credential. It ran on this head and, as the control, on main 88c57e311.

Catalog request This head main
pending (EN, DE) skeleton under role=status, aria-busy=true, named "Loading content" / "Inhalt wird geladen"; no warning "This deployment ships no provider files…" (the bug)
resolved, zero vendors the warning shows (check 2) same
rejected the page's listFailed alert shows (check 3, "as today"); the dialog shows the warning same
resolved with a vendor vendor and Custom provider rows same
pending, then resolved while the dialog is open the skeleton gives way to the search box and the vendor list —
  • axe (WCAG 2.1 A/AA) on the dialog reports 0 violations in every state, on both builds.
  • The screenshots and the JSON summary are in TALE-359's delivery box.

Tests

Source review, cross-checked: both pages pass their query's isPending (providers-settings.tsx:187, connectors-settings.tsx:102), and only a pending query is treated as loading. Check 4 (connectors) uses the same shared picker, but I checked its wiring from source only; I didn't render it.

Follow-ups (none block)

  1. LOW-MEDIUM, from before this PR: a failed catalog still reads as a deployment fault inside the dialog. After a rejected request, the picker says the deployment ships no provider files and points at the config root. The real listFailed alert sits on the page, behind the modal overlay. The picker should show the failure, or a retry, instead.
  2. LOW: the page wiring is untested. The page tests stub isPending: false. One page test with a pending catalog would pin catalogLoading={catalogsQuery.isPending}, and the same for connectors.
  3. LOW: while the catalog loads, the search box and the Custom provider row are hidden. On main the custom row could be picked at once. On an offline install, where bug(platform): Add credential says the deployment ships no provider files while the catalog is still loading #4146 measured 12 s, adding a custom endpoint now waits for the shipped vendors' listings. Keeping the custom row outside the skeleton would avoid that.

Merge: squash with --match-head-commit through my gate, which does a dry run first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(platform): Add credential says the deployment ships no provider files while the catalog is still loading

1 participant