Skip to content

fix(ui): preview dashboard gallery while loading - #148652

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
codex/claw-708-dashboard-skeleton
Sep 15, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
codex/claw-708-dashboard-skeleton

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Dashboards page shows a mostly blank loading card while its gallery request is pending.

User Impact

Users now see a responsive preview of the gallery toolbar and cards while dashboards load, with an accessible loading status and reduced-motion support.

Why This Change Was Made

The loading view reuses the shared skeleton animation and existing gallery geometry. Loaded cards, filters, navigation, and empty/error states keep their existing behavior.

Evidence

Captured through the real Control UI route with a held mock Gateway request and synthetic data. Before: 7425f0a29761d8714dda877864b887ca87730903; after: d0f887ae54d6b507a60ab759104573b9de41a3a7. Both use dark theme and matching viewports.

Before (1440 × 900) After (1440 × 900)
Before: plain loading card After: gallery skeleton
Before (390 × 844) After (390 × 844)
Before on mobile After on mobile
Tablet and resolved gallery

Tablet skeleton at 768 × 1024

Resolved gallery with the same fixture

  • Three new regression cases fail against the original loading view and pass with this change; all 11 focused Dashboards tests pass.
  • Real-browser matrix passes 16 scenarios at 1440, 1366, 768, and 390 pixels: gallery, empty, error, and long-title content. Verified shared shimmer, reduced motion, hidden decorative placeholders, no fake controls, no horizontal overflow, filters, and loaded/skeleton geometry (under 4px difference for grid start and card height).
  • Existing dashboard gallery E2E passes, including card navigation and reload into its owning dashboard.
  • pnpm ui:build passes. Fresh Codex review reports no actionable P0–P2 findings.
  • Changed-file gates pass, including UI/core-test types, formatting, lint, i18n, and dead-export scans.
Validation commands
node scripts/run-vitest.mjs ui/src/pages/dashboards/view.test.ts ui/src/pages/dashboards/dashboards-page.test.ts ui/src/pages/dashboards/route.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/dashboard-gallery.e2e.test.ts
node scripts/check-changed.mjs -- ui/src/pages/dashboards/view.ts ui/src/pages/dashboards/view.test.ts ui/src/styles/dashboards.css
pnpm ui:build
git diff --check

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 15, 2026 00:31
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 8:39 PM ET / September 15, 2026, 00:39 UTC.

ClawSweeper review

What this changes

The Dashboards page replaces its plain loading card with responsive toolbar and gallery placeholders, with focused coverage for loading-to-result transitions.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a focused, visually demonstrated improvement that current main does not provide. No actionable correctness or security defects were found, and the maintainer label protects it from automatic closure.

Priority: P3
Reviewed head: d0f887ae54d6b507a60ab759104573b9de41a3a7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with convincing visual evidence and useful transition coverage; no actionable defect was found.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The inspected desktop and mobile before/after screenshots show the changed dashboard view through the real Control UI route while a mock Gateway request is held; they directly demonstrate the new visible loading layout. Reported browser and transition checks supplement that visual proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The inspected desktop and mobile before/after screenshots show the changed dashboard view through the real Control UI route while a mock Gateway request is held; they directly demonstrate the new visible loading layout. Reported browser and transition checks supplement that visual proof.
Evidence reviewed 8 items Introduced change is presentation-only: The complete pinned merge-base-to-head patch changes the dashboard loading template, its CSS, and transition tests. The verified test merge contains the same three paths; unrelated endpoint drift is not attributed to this PR.
Current main still uses the plain loading card: The fetched main implementation renders the existing text-only busy card when neither results nor an error are available. The proposed gallery skeleton therefore remains distinct useful work.
Existing state owner and resolved behavior preserved: The full page controller and route retain ownership of session requests, cached rows, request generations, and filters. The changed view only substitutes the pending branch, leaving success, empty, stale-result, and error handling intact.
Findings None None.
Security None None.

How this fits together

The Control UI Dashboards page receives dashboard session results from the shared session store. Its view displays loading feedback until those results resolve into cards, an empty state, or an error.

flowchart TD
  A[Open Dashboards] --> B[Shared session request]
  B --> C{Results available?}
  C -->|Pending| D[Gallery placeholders]
  C -->|Success| E[Dashboard cards or empty state]
  C -->|Failure| F[Error message]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +67, Tests +50. Total +117 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 69 2 +67
Tests 1 50 0 +50
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 119 2 +117

Review metrics

None.

Technical review

Best possible solution:

Keep loading presentation in the dashboard view, reusing shared skeleton styles and the existing session-state lifecycle.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a correctness bug: this is loading-state polish, and current-main source plus the before screenshots establish the existing plain-card presentation.

Is this the best way to solve the issue?

Yes: the patch changes the existing view at its pending-state branch and reuses shared animation and gallery geometry without introducing another data owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9c8de0d92894.

Labels

Label changes:

  • add P3: This improves loading feedback without changing requests, navigation, persisted settings, or resolved dashboard behavior.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The inspected desktop and mobile before/after screenshots show the changed dashboard view through the real Control UI route while a mock Gateway request is held; they directly demonstrate the new visible loading layout. Reported browser and transition checks supplement that visual proof.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The inspected desktop and mobile before/after screenshots show the changed dashboard view through the real Control UI route while a mock Gateway request is held; they directly demonstrate the new visible loading layout. Reported browser and transition checks supplement that visual proof.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The inspected desktop and mobile before/after screenshots show the changed dashboard view through the real Control UI route while a mock Gateway request is held; they directly demonstrate the new visible loading layout. Reported browser and transition checks supplement that visual proof.

Label justifications:

  • P3: This improves loading feedback without changing requests, navigation, persisted settings, or resolved dashboard behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The inspected desktop and mobile before/after screenshots show the changed dashboard view through the real Control UI route while a mock Gateway request is held; they directly demonstrate the new visible loading layout. Reported browser and transition checks supplement that visual proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The inspected desktop and mobile before/after screenshots show the changed dashboard view through the real Control UI route while a mock Gateway request is held; they directly demonstrate the new visible loading layout. Reported browser and transition checks supplement that visual proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The inspected desktop and mobile before/after screenshots show the changed dashboard view through the real Control UI route while a mock Gateway request is held; they directly demonstrate the new visible loading layout. Reported browser and transition checks supplement that visual proof.

Evidence

What I checked:

  • Introduced change is presentation-only: The complete pinned merge-base-to-head patch changes the dashboard loading template, its CSS, and transition tests. The verified test merge contains the same three paths; unrelated endpoint drift is not attributed to this PR. (ui/src/pages/dashboards/view.ts:233, d0f887ae54d6)
  • Current main still uses the plain loading card: The fetched main implementation renders the existing text-only busy card when neither results nor an error are available. The proposed gallery skeleton therefore remains distinct useful work. (ui/src/pages/dashboards/view.ts:256, 9c8de0d92894)
  • Existing state owner and resolved behavior preserved: The full page controller and route retain ownership of session requests, cached rows, request generations, and filters. The changed view only substitutes the pending branch, leaving success, empty, stale-result, and error handling intact. (ui/src/pages/dashboards/dashboards-page.ts:166, d0f887ae54d6)
  • Shared animation and accessibility contracts: Decorative placeholders are inert and hidden from accessibility APIs, with a separate localized loading status. The skeleton uses the existing shared shimmer and global reduced-motion rules rather than adding another animation implementation. (ui/src/styles/base.css:1098, d0f887ae54d6)
  • Direct visual proof inspected: Inspected all four prepared screenshots linked in the captured PR body: desktop and mobile before/after pairs show the plain card replaced by responsive gallery placeholders. The body identifies the production Control UI route, a held mock Gateway request, synthetic data, and the exact before/after commits. Additional tablet and resolved-gallery links were not included in the prepared manifest and are not relied upon. (d0f887ae54d6)
  • Transition coverage reviewed: Three new parameterized cases verify noninteractive hidden placeholders and their removal when gallery, empty, or error content resolves. Existing route and page tests cover managed requests, scope changes, filtering, sorting, and pagination. The body reports focused tests, browser scenarios, and build checks passing; this read-only review did not execute them. (ui/src/pages/dashboards/view.test.ts:25, d0f887ae54d6)

Likely related people:

  • Patrick Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • 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.

@Patrick-Erichsen
Patrick-Erichsen merged commit c920944 into main Sep 15, 2026
187 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/claw-708-dashboard-skeleton branch September 15, 2026 01:02
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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