Repository navigation
fix(ui): replace settings loading text with skeletons - #134684
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 11:36 PM ET / September 1, 2026, 03:36 UTC. ClawSweeper reviewWhat this changesThis PR replaces text-only loading states across Control UI settings pages with accessible skeleton layouts and adds mocked-Gateway Playwright coverage. Merge readinessKeep open for explicit maintainer handling: the member-associated, Priority: P3 Review scores
Verification
How this fits togetherControl UI settings pages request data from the Gateway and render an interim state while responses are pending. The change replaces those temporary text states with row-shaped placeholders before settings content is available. flowchart LR
Gateway[Gateway settings requests] --> Pages[Control UI settings pages]
Pages --> Pending{Data pending?}
Pending -->|Yes| Skeletons[Accessible row skeletons]
Pending -->|No| Content[Loaded settings content]
Skeletons --> Browser[Operator browser]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +157, Tests +475. Total +632 across 19 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the shared settings skeleton pattern once exact-head CI is green, preserving the deliberate Config spinner and Custodian refresh-spinner exceptions. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect report: the PR's changed pending-data states are directly represented by the mocked-Gateway browser scenarios, including the prior Gateway-presence device case. Is this the best way to solve the issue? Yes. Centralizing accessible row markup in the settings UI primitive avoids duplicated loading layouts while preserving surfaces whose existing spinner behavior is intentional. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 09a71580645f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
* fix(ui): replace settings loading text with skeletons * test(ui): assert lazy settings skeleton * fix(ui): preserve device loading skeleton
Summary
Visual proof
Playwright-generated before/after captures were checked for every audited state:
Loading…empty stateLoading…rowLoading schema…descriptionLoading…empty stateLoading…divLoading plugins…divLoading plugins…divLoading…copyThe E2E captures the real rendered regions with animations disabled, rejects visible
Loadingcopy for skeleton states, verifies compact wrapping at 390px, and explicitly rejects a skeleton on the preserved Config spinner state.Validation
settings-loading-skeletons.e2e.test.ts: 16/16 passed with opt-in, per-test Playwright captures on2c17d59830be3309a2affd9738c3edf4fc758b11git diff --check: passed