Skip to content

fix: show dashboard keyboard moves and menu sizing while saving - #207137

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/opt-ui-widget-command-layout-4db0
Nov 28, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/opt-ui-widget-command-layout-4db0

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #207112 (pointer drops; independent change).

What Problem This Solves

On a session dashboard, pressing Alt+Arrow to move a widget or choosing a size from its menu leaves the old layout on screen until the Gateway replies. A successful keypress can look like a missed one, and the next arrow key navigates the old order.

User Impact

The widget moves or resizes as soon as you give the command. Focus stays with a moved card, and plain arrows follow the displayed order. Auto height uses the mounted widget’s reported height; without a measurement, the card keeps its saved row span. A refused change returns to the confirmed layout and shows the existing error. No setting or migration is required.

Why This Change Was Made

The board view previews only the changed layout entries. It does not publish a provisional board snapshot, replace the mounted document, or announce success before the write settles. A replacement snapshot takes precedence, even while a request is outstanding. Pointer drops, cross-tab transfers, removal, and permissions are unchanged.

Evidence

  • In Chromium, held the real dashboard’s outgoing board update after Alt+Left. On main, Sample inventory remained in the right column (x = 526 CSS px). With this change it moved to the left (x = 16) with focus intact. Rejection restored the right-hand position; an accepted retry kept the new order and ArrowRight focused its neighbor.
  • The LG menu preset immediately occupied eight columns rather than six. A newer snapshot changed it to three while the request was pending; a later refusal did not undo the newer layout. A mounted HTML widget test exercised the Auto menu with no measurement, then a 300 px content report and refusal, retaining the same iframe.
  • All three regression assertions failed against the unchanged base. On the PR head, 59 focused unit/browser tests and the keyboard/menu dashboard flow passed, as did UI type checking, scoped lint and formatting. The tree combined cleanly with fix: keep dashboard widgets where you drop them while saving #207112 at 68b3d2256075, and the combined keyboard/menu flow and pointer regression tests passed. Neither PR needs to land first. No merge or deployment was requested.
  • Screenshots use the real focused Control UI dashboard, synthetic report data and a held Gateway reply. Both frames show the same point after Alt+Left at 1040 × 600 CSS px, light theme and reduced motion. Before: 2777a471696e. After: 01ad19ccf157.

Clean comparison

Before

Before: Sample inventory stays on the right after Alt+Left

After

After: Sample inventory is focused in the left column while the save is pending

Annotated comparison

Before

The outline shows the focused widget still in its original column

After

The outline shows the same widget in its requested column before the reply

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 2 commits November 28, 2026 02:13
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 6e0ec2ec-483f-412f-8f17-a28c11382231
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR previews keyboard widget moves and menu size changes while saving, then reconciles with the confirmed dashboard layout.

Example: Press Alt+Left on Sample inventory while its dashboard save reply is held.

  • Before: The focused widget remains in the right column at x = 526 CSS px.
  • After: The focused widget immediately appears in the left column at x = 16 CSS px.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A worthwhile, focused repair with inspected product proof and no concrete findings; draft readiness and substantive CI remain part of landing.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Control UI screenshots show the pending keyboard move with focus retained; the public evidence describes refusal recovery, accepted retry, navigation, and menu sizing in Chromium, supported by base-failing regressions and focused checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A keyboard move or menu resize appears ignored until the save completes, and arrow navigation follows the old order.
Reason: Immediate feedback removes a concrete interaction failure, and the maintainer-authored direction preserves the existing dashboard contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR addresses a concrete dashboard feedback problem with a focused implementation and convincing visual evidence; no actionable correctness or security defects were found.

Reviewed head: 6eebdca226004e245f924937bbf4bc8373940a06

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI board view receives Gateway snapshots and user commands, calculates widget geometry, and sends existing board operations through the provider while retaining mounted widget content.

flowchart LR
  A[Keyboard and menu commands] --> B[Board presentation owner]
  B --> C[Temporary layout preview]
  C --> D[Retained widget cells]
  B --> E[Gateway board provider]
  E --> F[Confirmed board snapshot]
  F --> B
Loading

Technical review

Best possible solution:

Retain the view-local preview implementation while keeping Gateway snapshots authoritative and mounted widget bindings stable.

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

Current-main source renders keyboard and menu changes from confirmed snapshots until the provider replies; the supplied Chromium comparison demonstrates that delay without requiring a new reviewer-run reproduction.

Is this the best way to solve the issue?

The fix uses the existing board presentation owner, preserves synchronous admission and settled announcements, and leaves persistence, permissions, and widget content ownership intact.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Board keyboard navigation and presentation ownership keeps the original intent (2ade584: The Solid presentation refactor preserved keyboard focus, announcements, retained widget identity, and synchronous mutation admission.)
  • Widget binding and frame lifecycle keeps the original intent (123cb76: Dashboard frame effects were narrowed to meaningful binding changes to avoid redundant frame activity during unrelated updates.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 2ade584 adds ui/src/components/board/board-view-state.ts:65 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2ade584167ac; files: ui/src/components/board/board-view-state.ts)
  • RoboClaw: Raw commit 123cb76 adds ui/src/components/board/board-widget-cell.solid.tsx:104 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 123cb760dc8e; files: ui/src/components/board/board-widget-cell.solid.tsx)

PR surface

Source +48, Tests +47, Docs +4. Total +99 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 87 39 +48
Tests 2 63 16 +47
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 154 55 +99

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:

No label changes.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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 27, 2026, 9:31 PM ET / November 28, 2026, 02:31 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 28, 2026 06:19
@vyctorbrzezowski
vyctorbrzezowski merged commit 1f566c0 into main Nov 28, 2026
97 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/opt-ui-widget-command-layout-4db0 branch November 28, 2026 06:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…claw#207137)

* fix: show dashboard keyboard moves and menu sizing while saving

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix: show dashboard keyboard moves and menu sizing while saving

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 6e0ec2ec-483f-412f-8f17-a28c11382231

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
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 docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. 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: M 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.

2 participants