You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: show catalog loading state in credential picker - #4161
Method: one read-only source reviewer, whose claims I cross-checked, plus my own runs below.
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 main88c57e311.
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
Negative control: the new loading test fails against main's vendor-picker-pane.tsx and passes at the head (2/2).
CI at the exact head: Build, Checks, Commitlint, E2E and SAST all succeeded at attempt 1. The check runs are 50 success, 1 neutral (Trivy) and 12 skipped by design. Backend integration was skipped through Integration scope ("touches nothing the backend integration suite runs").
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)
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Verification
Finding -> test
Closes #4146