Skip to content

fix: keep empty dashboard previews inside gallery cards - #183298

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/visual-07-dashboard-previews-20261025
Oct 25, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/visual-07-dashboard-previews-20261025

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Empty dashboard previews inherited the full-page minimum height and clipped their hint. Scope their height and padding to the thumbnail so the message fits on desktop and narrow screens, and simplify resting card frames.

Visual comparison

Before: main at 387c3bf3f12e890b422f54dc8208edbe8945c575. After: this PR alone at 21e851e0575e360b60394fbff6dad91ea5c9322a. Captured on 2026-10-25 from each clean source checkout with identical synthetic Gateway data, viewport (1280 × 900), scale (2×), and Claw light/dark. No other PR is applied.

The same populated and empty dashboard previews are shown on both sides. The empty-preview hint is clipped on main and fits in the PR; the surrounding card and avatar contours are quieter.

dark gallery: main versus current PR

light gallery: main versus current PR

Validation

Independent source review completed. Browser evidence uses synthetic Gateway data and the real Control UI; it does not exercise a live model. Exact-head CI results are available in Checks.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
@clawsweeper

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

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 25, 2026 05:39
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR fits empty dashboard messages inside gallery previews and softens gallery borders and shadows.

Example: View an empty dashboard card at a 1280px viewport in Dash dark mode.

  • Before: The thumbnail clips the hint below “A clear board, ready for work.”
  • After: The complete hint fits inside the thumbnail.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Direct visual evidence supports a useful local repair, but the introduced CSS budget failure blocks merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual Control UI gallery and passive board renderer in Dash dark and light at 1280px with a mock Gateway; the after images show the complete empty-state hint. This proves the changed CSS behavior without requiring a live model. Additional mobile images and video were unavailable to this reviewer, which does not invalidate the inspected desktop evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Empty dashboard thumbnails cut off their explanatory hint.
Reason: The repair restores readable previews with local CSS; the maintainer-authored PR also supplies direction for the accompanying visual simplification.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this useful, maintainer-authored PR open; the visual fix is supported, but its CSS growth fails the required performance gate.

Priority: P2
Reviewed head: 7dc27df4861fb62c5660d7e1f435c0a9d92cfcb2

Before merge

  • Reduce the CSS growth to pass the required asset budget (P2) - The added thumbnail rules make control-ui-performance fail on this head: its annotation reports 1558.3 KiB raw CSS against 1558.2 KiB allowed. Although the base already exceeds the fixed cap, the gate compares against that measured base plus 64 bytes and still rejects this head, so this is additional growth rather than merely an inherited failure. Simplify or consolidate the gallery CSS while preserving containment, then verify the existing base-comparison gate passes.

Findings

  • [P2] Reduce the CSS growth to pass the required asset budget — ui/src/styles/dashboards.css:199-204

Tests

  • Low-value test ui/src/e2e/dashboard-gallery.e2e.test.ts: Remove the added membership/request assertions at lines 145–147: sessions.list is explicitly stubbed with prefiltered rows, so these assertions cannot establish server-side hasBoard filtering; retain the browser geometry regression.
Agent review details

How this fits together

The Control UI gallery turns dashboard session rows and board snapshots into linked cards containing passive board previews.

flowchart LR
  A[Gateway session inventory] --> B[Dashboard gallery]
  B --> C[Gallery card]
  D[Board snapshot] --> E[Passive board document]
  E --> C
  F[Gallery CSS] --> C
Loading

Technical review

Best possible solution:

Retain the gallery-scoped height repair while simplifying its CSS enough to satisfy the existing performance budget.

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

The full-page empty state has a 260px minimum height inside a clipped 16:9 preview; inspected before images show the resulting truncation, and the PR reports a failing-base browser regression.

Is this the best way to solve the issue?

The existing gallery stylesheet is the appropriate owner for thumbnail sizing, and the change preserves full-dashboard and passive-preview contracts.

Full review comments:

  • [P2] Reduce the CSS growth to pass the required asset budget — ui/src/styles/dashboards.css:199-204
    The added thumbnail rules make control-ui-performance fail on this head: its annotation reports 1558.3 KiB raw CSS against 1558.2 KiB allowed. Although the base already exceeds the fixed cap, the gate compares against that measured base plus 64 bytes and still rejects this head, so this is additional growth rather than merely an inherited failure. Simplify or consolidate the gallery CSS while preserving containment, then verify the existing base-comparison gate passes.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Gallery preview sizing keeps the original intent (af54ce5: Render saved dashboard content through the canonical passive board document inside gallery cards.)
  • Gallery borders and resting shadows changes intended behavior with a stated reason (12d6388: Introduce responsive preview cards; this PR explicitly explains reducing redundant frames while preserving hover affordance.)
  • Existing gallery browser coverage keeps the original intent (6ea0cbc: Consolidate test scaffolding while preserving distinct behavioral contracts; the existing widget-retention scenario remains in place.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/dashboard-gallery.e2e.test.ts
  • pnpm lint:ui:styles
  • pnpm ui:check-performance:base
  • git diff --check

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit 12d6388 adds ui/src/styles/dashboards.css:147 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 0557efa adds ui/src/styles/dashboards.css:154 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0557efae069e; files: ui/src/styles/dashboards.css)

PR surface

Source +15, Tests +158. Total +173 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 22 7 +15
Tests 1 158 0 +158
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 180 7 +173

Labels

Label changes:

  • add P2: Clipped decorative dashboard previews are a limited user-facing layout defect.
  • 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:

  • P2: Clipped decorative dashboard previews are a limited user-facing layout defect.
  • 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 October 25, 2026, 1:55 AM ET / 05:55 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 44666a2 into main Oct 25, 2026
95 of 99 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/visual-07-dashboard-previews-20261025 branch October 25, 2026 19:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
)

Keep empty dashboard preview hints inside gallery thumbnails on desktop and narrow screens. Preserve widget navigation and hover behavior while simplifying resting card frames.
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 P2 Normal backlog priority with limited blast radius. 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: S 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