Skip to content

fix(ui): center dashboard widget controls on hover - #126076

Merged
steipete merged 6 commits into
mainfrom
steipete/centered-dashboard-hover-anchor-89237c
Aug 19, 2026
Merged

steipete merged 6 commits into
mainfrom
steipete/centered-dashboard-hover-anchor-89237c

Conversation

@steipete

@steipete steipete commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where dashboard widget controls were anchored at the left edge whenever they appeared, distracting from widget content.

Why This Change Was Made

The existing compact control pill is centered on normal-width cards while retaining the established whole-widget hover intent, keyboard/focus paths, and full iframe pointer ownership. There is no transparent hover layer or reserved interaction strip.

Wide cards reserve at least 88px in both top corners for widget-owned actions. At intermediate widths from 265px through 376px, display-only pill fields are hidden so the required move and menu controls remain centered, contained, and clear of both corners. At 264px and below, where centered dual-corner clearance is impossible, the pill uses the prior left placement and top-right reservation.

This follows the ownership boundary documented by #114012 / 36404ea: the host positions its existing compact chrome while iframe content keeps its pointer surface.

User Impact

Normal dashboard cards show centered controls without intercepting widget content. Intermediate cards keep the actionable controls compact and centered. Very narrow cards retain the previous left-biased layout so functional corner clearance takes priority over visual centering.

Evidence

Before — controls anchored at the left edge

Before: dashboard widget controls visible at the left edge

After — centered controls with iframe content preserved

After: centered dashboard widget controls while iframe content remains interactive

Final proof:

  • node scripts/run-vitest.mjs src/plugins/contracts/plugin-sdk-subpaths.test.ts — 18/18 passed. This is a test-only current-main repair aligning the stale documentation assertion with the canonical selected private-local entries wording; it changes no product behavior.
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/board-fixture.e2e.test.ts — 6/6 passed.
  • pnpm --dir ui test src/components/board/board-view.browser.test.ts — 15/15 passed in real Chromium, covering wide centering, intermediate compaction and 88px corner clearance, and the narrow left fallback.
  • pnpm --dir ui test src/components/board --project unit --project unit-node — 73/73 passed.
  • The three-file changed gate passed guards, formatting, core/UI/extension typechecks, core lint, and UI style lint. Extension lint stalled without a finding on the overloaded local host and was stopped after 269.6 seconds; hosted exact-head CI is the publication gate for that lane.
  • git diff --check — passed.
  • Independent source-blind validation passed the final center-only contract: normal hover reveal, centered pill where space permits, iframe hit target preserved, and no invisible strip.
  • Final full-branch Codex autoreview through P2 was clean, with no accepted or actionable findings.
  • Production LOC: +19/-17 (net +2). Tests: +28/-12 (net +16).

Blacksmith Testbox proof was unavailable because the local Blacksmith CLI was not authenticated. No alternate paid provider was used; local real-Chromium proof is green, and hosted exact-head CI is the publication gate.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 18, 2026 23:28
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 10:35 PM ET / August 19, 2026, 02:35 UTC.

ClawSweeper review

What this changes

Centers the dashboard widget control pill on wide fine-pointer cards, keeps the prior left-aligned geometry on cards up to 264px wide, and updates real-browser layout assertions.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking code finding: the final head replaces only the wide-card pill geometry and preserves the existing hover/focus ownership model. Keep this maintainer-owned PR open for normal exact-head CI completion rather than auto-closing it.

Priority: P2
Reviewed head: 1ea4409ede5d8dcaeb3153e4adf6afd1a0ddfcb5

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong visual and reported real-browser evidence support a small, source-consistent UI correction with no remaining code finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR supplies direct before/after dashboard screenshots and reports after-fix real-Chromium layout results; hosted media could not be fetched during this review because the network was unavailable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR supplies direct before/after dashboard screenshots and reports after-fix real-Chromium layout results; hosted media could not be fetched during this review because the network was unavailable.
Evidence reviewed 6 items Current-main baseline: Current main deliberately positions the fine-pointer control pill at the left edge and reserves only the right action corner, establishing the behavior this PR changes.
Final implementation: The PR head centers the existing absolute control pill only on sufficiently wide cards, reserves 88px in both corners, and restores the prior left placement at the narrow breakpoint.
Interaction boundary: The component renders the control pill as its own header and the widget body separately; this patch changes no event handlers or iframe/body ownership path.
Findings None None.
Security None None.

Live Verification

Command: pnpm --dir ui test src/components/board/board-view.browser.test.ts

Result: FAIL (failed) — execution before step 1 run: live-proof package manager pnpm is unavailable after its official installer (curl -fsSL https://get.pnpm.io/install.sh | sh -): command failed without output

live-proof package manager pnpm is unavailable after its official installer (curl -fsSL https://get.pnpm.io/install.sh | sh -): command failed without output

Assertions:

  • FAIL expect_output: passed

How this fits together

Dashboard widget cards combine host-owned move/menu controls with embedded widget content. The board view renders both, while the stylesheet positions the host control pill without adding a separate hover-capturing layer over widget content.

flowchart LR
  A[Dashboard widget card] --> B[Hover or keyboard focus]
  B --> C[Host control pill]
  C --> D[Wide-card centered layout]
  C --> E[Narrow-card left fallback]
  A --> F[Embedded widget content]
  D --> G[Host controls visible]
  E --> G
  F --> H[Widget-owned actions]
Loading

Before merge

  • Resolve merge risk (P1) - Several exact-head UI checks remain in progress; retain the normal merge gate until they complete.
  • Complete next step (P2) - No actionable repair remains; this maintainer-owned PR should proceed through ordinary exact-head CI and merge review.
Agent review details

Security

None.

PR surface

Source +3, Tests +10. Total +13 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 15 12 +3
Tests 1 18 8 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 33 20 +13

Review metrics

Metric Value Why it matters
Production versus test delta production +3 net (15 added, 12 removed); tests +10 net (18 added, 8 removed) The small production increase is the two-sided corner-clearance rule and narrow-card fallback; browser assertions cover both layouts.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the centered CSS-only pill on wide fine-pointer cards and retain the explicit narrow-card fallback so host controls do not occupy widget-owned corners.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the centered CSS-only pill on wide fine-pointer cards and retain the explicit narrow-card fallback so host controls do not occupy widget-owned corners.

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

Yes—current main's left-anchored geometry is directly contrasted with the PR head's centered wide-card rule and focused browser layout assertions, although this read-only review did not execute the test.

Is this the best way to solve the issue?

Yes—the control pill is the existing host-owned overlay, so changing its CSS position while preserving the narrow fallback is narrower and safer than reintroducing a hover trigger or forwarding pointer events.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 23da04ba8af4.

Labels

Label changes:

  • 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 PR supplies direct before/after dashboard screenshots and reports after-fix real-Chromium layout results; hosted media could not be fetched during this review because the network was unavailable.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This is a bounded user-visible dashboard interaction correction with limited blast radius.
  • 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 PR supplies direct before/after dashboard screenshots and reports after-fix real-Chromium layout results; hosted media could not be fetched during this review because the network was unavailable.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR supplies direct before/after dashboard screenshots and reports after-fix real-Chromium layout results; hosted media could not be fetched during this review because the network was unavailable.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR supplies direct before/after dashboard screenshots and reports after-fix real-Chromium layout results; hosted media could not be fetched during this review because the network was unavailable.

Evidence

What I checked:

Likely related people:

  • steipete: History attributes the current dashboard control geometry and the prior merged widget-hover ownership repair to Peter Steinberger; the PR context maps that author to this handle. (role: feature owner and recent area contributor; confidence: high; commits: 1ea4409ede5d, 36404eaa3b48, 8195cf8707a1; files: ui/src/styles/board.css, ui/src/components/board/board-view.browser.test.ts, ui/src/components/board/board-widget-cell.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the remaining exact-head UI checks before merge.

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-08-18T23:35:01.873Z sha 4b8b1da :: found issues before merge. :: [P2] Gate the resize handle with the centered trigger
  • reviewed 2026-08-19T00:50:35.987Z sha 7ac7c01 :: found issues before merge. :: [P1] Preserve iframe clicks under the hover trigger

@steipete

steipete commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Final center-only proof for 507e6fa2948067eb704336e79ba42e601d71c043.

Exact-head hosted CI is green: https://github.com/openclaw/openclaw/actions/runs/32215499961

All prior ClawSweeper findings are resolved in the final deletion-first design: the transparent overlay path was removed, iframe click delivery and the existing whole-widget hover owner are preserved, wide cards reserve at least 88px for actions in both corners, cards at 265–376px compact display-only fields while keeping move/menu centered and contained, and cards at 264px or below retain the prior left fallback.

Local proof:

  • Plugin SDK documentation contract: 18/18 passed. The one-line test-only repair aligns the stale current-main assertion with the canonical selected private-local entries wording.
  • Board fixture E2E: 6/6 passed.
  • Real Chromium board layout: 15/15 passed, including wide centering, intermediate compaction/containment, dual 88px clearance, and narrow fallback.
  • Board unit/unit-node: 73/73 passed.
  • Guards, formatting, core/UI/extension typechecks, core lint, and UI style lint passed; git diff --check passed.
  • Extension lint stalled without a finding on the overloaded local host and was stopped after 269.6 seconds; hosted exact-head CI is the publication gate.
  • Independent source-blind center-only validation passed.
  • Final full-branch Codex autoreview through P2 was clean, with no accepted or actionable findings.
  • Production LOC: +19/-17 (net +2); tests: +28/-12 (net +16).

Visual evidence: before, left-aligned · after, centered with iframe content preserved

Blacksmith Testbox was unavailable because the local CLI was not authenticated. No alternate paid provider was used; local real-Chromium proof and hosted exact-head CI are green. Known product gaps: none. Validation gaps are limited to unavailable local Testbox and the host-stalled local extension-lint wrapper; the hosted exact-head matrix passed that surface.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Aug 19, 2026
@steipete
steipete force-pushed the steipete/centered-dashboard-hover-anchor-89237c branch from 7ac7c01 to 1ea4409 Compare August 19, 2026 02:30
@clawsweeper clawsweeper Bot added 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 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. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 19, 2026
@steipete
steipete force-pushed the steipete/centered-dashboard-hover-anchor-89237c branch 2 times, most recently from 353ef9a to ea54bf2 Compare August 19, 2026 03:18
@steipete
steipete force-pushed the steipete/centered-dashboard-hover-anchor-89237c branch from ea54bf2 to 507e6fa Compare August 19, 2026 04:21
@steipete
steipete merged commit a89c568 into main Aug 19, 2026
239 checks passed
@steipete
steipete deleted the steipete/centered-dashboard-hover-anchor-89237c branch August 19, 2026 04:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* fix(ui): center dashboard widget hover controls

* fix(ui): gate resize handle with centered hover

* fix(ui): preserve iframe clicks with centered controls

* fix(ui): preserve corner actions when centering controls

* fix(ui): compact centered controls at intermediate widths

* test(plugins): align SDK subpath docs contract wording
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 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: 🐚 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