Repository navigation
fix(ui): center dashboard widget controls on hover - #126076
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 10:35 PM ET / August 19, 2026, 02:35 UTC. ClawSweeper reviewWhat this changesCenters 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 readinessNo 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 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherDashboard 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +10. Total +13 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
|
Final center-only proof for 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:
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. |
7ac7c01 to
1ea4409
Compare
353ef9a to
ea54bf2
Compare
ea54bf2 to
507e6fa
Compare
|
Merged via squash.
|
* 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
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
After — centered controls with iframe content preserved
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 canonicalselected private-local entrieswording; 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.git diff --check— passed.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.