Skip to content

fix(ui): replace settings loading text with skeletons - #134684

Merged
Patrick-Erichsen merged 3 commits into
mainfrom
codex/settings-loading-skeletons
Sep 1, 2026
Merged

Patrick-Erichsen merged 3 commits into
mainfrom
codex/settings-loading-skeletons

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • replace page-level settings placeholders that only displayed “Loading…” with shape-matched skeleton rows
  • keep the existing Config schema spinner and use a compact spinner when Custodian refreshes already-visible history
  • centralize accessible settings skeleton markup and cover every audited state with mocked-Gateway Playwright tests

Visual proof

Playwright-generated before/after captures were checked for every audited state:

Surface Before After / decision
Models centered Loading… empty state three model-setting skeleton rows
Channels pairing bare Loading… row two request-row skeletons
Channels schema Loading schema… description two configuration-row skeletons
Secrets centered Loading… empty state three secret-row skeletons
Devices duplicate summary and empty-state loading copy one inventory skeleton group
MCP settings Loading… div two server-row skeletons
Plugins catalog Loading plugins… div three plugin-row skeletons
Plugins MCP section Loading plugins… div two server-row skeletons
Profile identity identity loading text two identity-row skeletons
Agent Tools availability loading empty state two tool-row skeletons
Agent Tools catalog loading info callout three catalog-row skeletons
Custodian initial history loading status text three history-row skeletons
Custodian retained-history refresh loading status text below existing rows compact spinner; existing content remains visible
Approvals history loading copy inside the empty table three approval-row skeletons
Settings sidebar centered Loading… copy seven navigation skeletons
Config schema existing animated spinner spinner preserved unchanged

The E2E captures the real rendered regions with animations disabled, rejects visible Loading copy 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 on 2c17d59830be3309a2affd9738c3edf4fc758b11
  • focused Devices ordering proof (Gateway presence before inventory) and isolated Custodian spinner capture: passed
  • focused OXlint, Stylelint, Oxfmt, and git diff --check: passed
  • exact-head GitHub validation: 146 checks passed, 0 failed or pending across all five workflows
  • structured pre-publish review and exact-head ClawSweeper review: no findings; no unresolved review threads

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 11:36 PM ET / September 1, 2026, 03:36 UTC.

ClawSweeper review

What this changes

This PR replaces text-only loading states across Control UI settings pages with accessible skeleton layouts and adds mocked-Gateway Playwright coverage.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for explicit maintainer handling: the member-associated, maintainer-labeled PR has resolved the prior device-loading blocker, and this review found no remaining blocking correctness or security defect.

Priority: P3
Reviewed head: 2c17d59830be3309a2affd9738c3edf4fc758b11

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a coherent, tested Control UI refinement, and the previous concrete blockers are addressed.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository state identifies this as a member-associated PR, so the external-contributor proof gate does not apply; its supplied mocked-Gateway browser scenarios remain supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository state identifies this as a member-associated PR, so the external-contributor proof gate does not apply; its supplied mocked-Gateway browser scenarios remain supplemental validation.
Evidence reviewed 4 items Current-main behavior: Current main still has the text-only empty renderer and does not contain this PR's shared settings skeleton helper, so the PR remains a distinct contribution.
Prior device finding fixed: The head now renders a skeleton whenever inventory groups are absent during loading, independently of Gateway presence; this covers the prior missed state.
Regression coverage: The added browser scenario supplies Gateway presence, defers a device reload, and asserts the shared skeleton in the formerly missed loading condition.
Findings None None.
Security None None.

How this fits together

Control 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]
Loading

Before merge

  • Resolve merge risk (P1) - The patch adds 157 net production lines for loading-state polish; retain the shared helper as the single canonical pattern and avoid further per-page skeleton variants.
Agent review details

Security

None.

PR surface

Source +157, Tests +475. Total +632 across 19 files.

View PR surface stats
Area Files Added Removed Net
Source 17 226 69 +157
Tests 2 476 1 +475
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 19 702 70 +632

Review metrics

Metric Value Why it matters
Production versus test delta production +157 net (226 added, 69 removed); tests +475 net (476 added, 1 removed) The production growth is concentrated in one reusable skeleton primitive, its styles, and page adoption; the test growth exercises the affected routes in a browser.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the shared settings skeleton pattern once exact-head CI is green, preserving the deliberate Config spinner and Custodian refresh-spinner exceptions.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a low-risk Control UI loading-state polish change with no remaining confirmed functional regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository state identifies this as a member-associated PR, so the external-contributor proof gate does not apply; its supplied mocked-Gateway browser scenarios remain supplemental validation.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a low-risk Control UI loading-state polish change with no remaining confirmed functional regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Repository state identifies this as a member-associated PR, so the external-contributor proof gate does not apply; its supplied mocked-Gateway browser scenarios remain supplemental validation.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-01T02:58:35.456Z sha 473ed97 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T03:11:23.765Z sha 96f9a31 :: found issues before merge. :: [P2] Keep an inventory loading state beside Gateway presence | [P2] Create the output directory for the isolated spinner test | [P3] Use the suite’s isolated opt-in artifact directory

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 1, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit 8a89271 into main Sep 1, 2026
182 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/settings-loading-skeletons branch September 1, 2026 03:43
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
* fix(ui): replace settings loading text with skeletons

* test(ui): assert lazy settings skeleton

* fix(ui): preserve device loading skeleton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant