Skip to content

Dashboards gallery: framed cards with fading titles and run spinner - #194444

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/dashboards-card
Nov 9, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/dashboards-card

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Dashboard cards in the gallery ellipsize long titles, show a "Live" chip that repeats the run state, and split author and update time across a body and a footer.

User Impact

Each card shows the dashboard as a framed sheet. The title fades instead of ellipsizing and scrolls slowly on hover when it overflows (fade only with reduced motion). A running dashboard shows the session spinner at the end of the title row, in space that is always reserved. One meta row holds the author avatar and name (your own read "You") and "Updated 22h ago" on the right, which never clips.

Why This Change Was Made

Approved gallery redesign, card part. Builds on the existing session spinner, owner avatar chip and hover marquee. No data changes: title, author, run state and time come from the same sessions.list row.

Landing order: this PR, then the author filter PR (#194450), then the Display PR (#194455).

Evidence

Mock Gateway capture, same data on both sides.

Scenario Before After
Gallery · grid · desktop 1440 · light
Long title · card hover · desktop 1440 · light
Gallery · grid · desktop 1440 · dark
Gallery · phone 390 · light

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 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.

@blacksmith-sh

blacksmith-sh Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Blacksmith runners detected OOM events on the following jobs:

Job Details
checks-ui (3/3) View Job

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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: 🦐 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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR gives dashboard cards framed previews, fading titles, a run spinner, and one compact author-and-update row.

Example: The running “Community pulse” dashboard belongs to the signed-in Avery Quinn.

  • Before: The card shows a Live label, “By Avery Quinn,” and a separate update footer.
  • After: The card shows a title-row spinner, “You,” and “Updated 12m ago” beside the avatar.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong visual evidence supports the approved direction; localized test and loading-geometry defects prevent a clean review.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the rendered Control UI gallery with synthetic Gateway rows and demonstrate the changed card frame, author metadata, run spinner, and overflowing-title presentation.
Patch quality 🦐 gold shrimp (3/6) 3 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Long dashboard titles truncate, while separate author and update sections consume card space.
Reason: The maintainer-authored direction is approved, and the screenshots demonstrate a coherent, compact presentation using existing components.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep open: this maintainer-approved redesign has useful visual evidence, but two attributable test failures and a loading-layout regression need focused repairs.

Priority: P3
Reviewed head: 2839e8a2bda0a8102ea0f27e3057c6e06586e970

Before merge

  • Update the lazy-catalog test for the replacement dashboard key (P2) - Removing dashboardsPage.live leaves the existing lazy-English boundary test importing this view and expecting that key to resolve to “Live.” The exact-head checks-ui (2/3) annotation confirms it instead returns the raw key at optional-english-loading.test.ts:510. Change that test to exercise a retained or replacement dashboard key while preserving its before-import, after-import, and foreign-locale assertions.
  • Supply the avatar capabilities in the dashboard page fixtures (P2) - The new owner chip sends rows without creator metadata through an agent avatar. ParticipantAvatar then consumes app.agents and app.agentIdentity, but dashboards-page.test.tsx supplies no agentIdentity and gives agents no subscription contract. The missing identity owner reaches the shared projection’s WeakMap as undefined, matching the exact-head checks-ui (3/3) unhandled-error annotation. Extend the existing page fixture with valid avatar capability owners and rerun its consumers; avoid weakening the production owner contract.
  • Preserve card geometry while the gallery skeleton resolves (P2) - The skeleton renders .dashboard-card directly under .dashboards-grid, so narrowing the frame rule to .dashboards-grid__item > .dashboard-card removes its border and changes its inner preview width. Its title placeholder also remains 14px high while the loaded heading is now 22px. On an initially held gallery read, cards therefore change size when data arrives and move subsequent rows. Apply the shared frame to skeleton cards and reserve the loaded heading height; the existing phone-gallery geometry E2E already checks this invariant.

Findings

  • [P2] Update the lazy-catalog test for the replacement dashboard key — ui/src/i18n/locales/en-dashboards.ts:10-12
  • [P2] Supply the avatar capabilities in the dashboard page fixtures — ui/src/pages/dashboards/view.tsx:178
  • [P2] Preserve card geometry while the gallery skeleton resolves — ui/src/styles/dashboards.css:155-159
Agent review details

How this fits together

The Control UI dashboard gallery renders session-list metadata and passive board previews into cards that navigate to the owning dashboard session.

flowchart LR
  A[Session list rows] --> B[Dashboard gallery]
  C[Board preview owner] --> B
  D[Shared avatar and marquee] --> B
  B --> E[Dashboard card]
  E --> F[Dashboard session route]
Loading

Technical review

Best possible solution:

Retain the redesign while updating its existing consumer fixtures and restoring matching skeleton and loaded-card geometry.

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

The central request changes designed presentation rather than reporting an upstream bug; introduced test failures are confirmed by hosted annotations, and the loading mismatch is visible in source.

Is this the best way to solve the issue?

The change appropriately reuses the existing gallery, avatar, spinner, and marquee owners; the simplification review found no unnecessary production machinery.

Full review comments:

  • [P2] Update the lazy-catalog test for the replacement dashboard key — ui/src/i18n/locales/en-dashboards.ts:10-12
    Removing dashboardsPage.live leaves the existing lazy-English boundary test importing this view and expecting that key to resolve to “Live.” The exact-head checks-ui (2/3) annotation confirms it instead returns the raw key at optional-english-loading.test.ts:510. Change that test to exercise a retained or replacement dashboard key while preserving its before-import, after-import, and foreign-locale assertions.
    Confidence: 1
  • [P2] Supply the avatar capabilities in the dashboard page fixtures — ui/src/pages/dashboards/view.tsx:178
    The new owner chip sends rows without creator metadata through an agent avatar. ParticipantAvatar then consumes app.agents and app.agentIdentity, but dashboards-page.test.tsx supplies no agentIdentity and gives agents no subscription contract. The missing identity owner reaches the shared projection’s WeakMap as undefined, matching the exact-head checks-ui (3/3) unhandled-error annotation. Extend the existing page fixture with valid avatar capability owners and rerun its consumers; avoid weakening the production owner contract.
    Confidence: 0.99
  • [P2] Preserve card geometry while the gallery skeleton resolves — ui/src/styles/dashboards.css:155-159
    The skeleton renders .dashboard-card directly under .dashboards-grid, so narrowing the frame rule to .dashboards-grid__item > .dashboard-card removes its border and changes its inner preview width. Its title placeholder also remains 14px high while the loaded heading is now 22px. On an initially held gallery read, cards therefore change size when data arrives and move subsequent rows. Apply the shared frame to skeleton cards and reserve the loaded heading height; the existing phone-gallery geometry E2E already checks this invariant.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2ab781210c6f.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/i18n/optional-english-loading.test.ts src/pages/dashboards/dashboards-page.test.tsx src/pages/dashboards/view.test.tsx
  • pnpm test:ui:e2e ui/src/e2e/dashboard-gallery.e2e.test.ts
  • pnpm tsgo:ui
  • git diff --check

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit 12d6388 adds ui/src/styles/dashboards.css:109 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 12d6388d3ebb; files: ui/src/styles/dashboards.css)
  • Peter Steinberger: Raw commit e4749ab adds ui/src/pages/dashboards/view.tsx:294 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e4749abd4ec8; files: ui/src/pages/dashboards/view.tsx)

PR surface

Source +7. Total +7 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 167 160 +7
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 167 160 +7

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is an approved gallery presentation improvement with localized validation and loading-layout defects.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is an approved gallery presentation improvement with localized validation and loading-layout defects.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 6, 2026, 11:17 PM ET / November 7, 2026, 04:17 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 9, 2026 09:44
@vyctorbrzezowski

vyctorbrzezowski commented Nov 9, 2026 •

Copy link
Copy Markdown
Member Author

Preparation validation for 64f9a173125f035ae1fff9fc434e0fdc069db483:

  • Existing dashboard tests now use the real typed agent and identity capabilities. Their author assertion matches the approved copy. The lazy-English registration test now checks the replacement running-status key. No production changes or new test suites.
  • UI-pages TypeScript check passed; 13 dashboard route/view tests passed; the focused lazy-English boundary test passed. Independent P0–P2 reviews found no actionable issues. Formatting and diff checks passed.
  • The unchanged UI production build completed and verified 994 finalized sidecars. It reported advisory bundle overages of 0.2 KiB for largest JS, 0.8 KiB for Chat boot JS, and 1.1 KiB for New Session boot JS, and exited successfully. No budget override used.
  • Prior CI exposed the partial avatar fixture type error and an obsolete Live translation-key expectation. Both were corrected in this head; exact replacement-head CI remains required. The earlier auto-merge request was retired through native recovery before publication.

The approved visual design is unchanged. All eight existing before/after images were fetched and visually inspected successfully.

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 9, 2026 09:48
@vyctorbrzezowski
vyctorbrzezowski merged commit 2e73417 into main Nov 9, 2026
78 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/dashboards-card branch November 9, 2026 10:10
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
…penclaw#194444)

* Dashboards gallery: framed preview cards with fading titles and run spinner

* test(ui): align dashboard fixture with author avatars

* test(ui): use typed dashboard avatar fixtures and current copy
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 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant