Skip to content

fix: keep dashboard widgets where you drop them while saving - #207112

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

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/opt-ui-boards-4db0

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

While you drag a dashboard widget, the grid previews its new position or size. Releasing the pointer used to put the widget back where it started until the Gateway replied. On a slower connection, it looked as if the drop had failed.

User Impact

A move or resize within the current tab now stays visible while it saves. If the save fails, the board shows the saved layout and its existing error, and you can retry. No migration or setting changes are needed.

Why This Change Was Made

The board retains the geometry it already calculated for the drop. It does not reorder the underlying documents, persist an unconfirmed result, or announce success until the write settles. Switching tabs or sessions, leaving the board, or receiving a replacement snapshot retires the preview. Cross-tab transfers, removal, and permission decisions are unchanged.

Evidence

  • In Chromium, dragged a report from 6 columns to 9 and held its board.update response. The stock Control UI snapped back to 443 px at pointer release; the changed UI stayed at the requested 671 px (rounded). Rejecting the write restored the original width and showed the board error. Retrying, accepting, and opening the widget menu succeeded.
  • On a narrow, stacked board, a reordered card held its new position. A replacement snapshot took precedence while the write was still pending. The focused board unit/browser suites passed (53 tests) and the resize end-to-end test passed. No broad CI run, merge, or deployment was requested.
  • Screenshots use the actual Control UI with synthetic reports and a held Gateway acknowledgement at 1240 × 740 CSS px, reduced motion. Before: 1f0332980951; after: 612a21fff68b.

Clean comparison

Before

Before: the release schedule snaps back beside Verification

After

After: the wider schedule stays put and Verification stays below it

Annotated comparison

Before

The pending resize snapped back to six columns

After

The same pending resize stays at nine columns

Worked on by

Work sessions

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

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 01551cfe-cd4b-473d-8214-a1b12eb5dd4f
@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: S labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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

Retains a dashboard widget’s dropped position or size while its save is pending, then reconciles with the saved layout.

Example: Resize Release schedule from six columns to nine while holding the Gateway response.

  • Before: The widget returns to roughly 443 px wide at pointer release.
  • After: The widget remains roughly 671 px wide while saving and restores its saved width if the write fails.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with inspected browser evidence, distinct regression coverage, and no identified correctness defects; broad CI validation is not established.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium screenshots exercise the actual Control UI board with synthetic reports and a held Gateway acknowledgement, showing retained nine-column geometry after release; the public account also records rejection rollback and retry, and the screenshot revision has no source difference from the reviewed head.
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 completed drag appears to fail because the widget returns to its previous geometry while its save is pending.
Reason: The maintainer-authored direction improves immediate interaction feedback without changing confirmed layout, settings, permissions, or cross-tab transfers.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR fixes a visible dashboard interaction defect that remains on main; no actionable patch defects were found.

Reviewed head: 68b3d22560755d66f23e2da8a529de1dc4de3532

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI board presentation owner converts pointer gestures and authoritative Gateway snapshots into widget geometry; the existing provider sends layout operations and publishes their confirmed results.

flowchart LR
  Pointer[Pointer gesture] --> Presentation[Board presentation owner]
  Presentation --> Grid[Widget grid]
  Presentation --> Provider[Board provider]
  Provider --> Gateway[Gateway board update]
  Gateway --> Snapshot[Confirmed snapshot]
  Snapshot --> Presentation
Loading

Technical review

Best possible solution:

Retain temporary geometry in the existing board presentation owner while leaving saved layout and write reconciliation with the provider.

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

Current-main source exposes the pointer-release snapback path, corroborated by the supplied baseline capture with a held save response.

Is this the best way to solve the issue?

The change is focused: it reuses calculated geometry, preserves document identity and mutation admission, and introduces no competing persistence or reconciliation path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Board presentation, pointer settlement, and mutation feedback keeps the original intent (2ade584: The prior refactor moved presentation into Solid while preserving synchronous gesture admission, same-turn pointer-up geometry, and retained widget identity; the later mutation-feedback refactor preserved separate busy publication and settled-error observation.)
  • Narrow-board drag regression keeps the original intent (c489d57: Mobile stacking required pointer targets to resolve to visible cards and preserve logical order through release.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 28855b0 adds ui/src/components/board/board-view.tsx:72 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 28855b0a266e; files: ui/src/components/board/board-view.tsx)
  • RoboClaw: Raw commit 91614b5 adds ui/src/components/board/board-view.tsx:75 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 91614b5c3778; files: ui/src/components/board/board-view.tsx)
  • ToToKr: Raw commit c489d57 adds ui/src/components/board/board-view.browser.test.ts:131 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: c489d57759e7; files: ui/src/components/board/board-view.browser.test.ts)

PR surface

Source +12, Tests +125, Docs +2. Total +139 across 5 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 17 5 +12
Tests 2 127 2 +125
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 147 8 +139

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:13 PM ET / November 28, 2026, 02:13 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 28, 2026 06:18
@vyctorbrzezowski
vyctorbrzezowski merged commit 861216a into main Nov 28, 2026
100 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/opt-ui-boards-4db0 branch November 28, 2026 06:18
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…w#207112)

* fix: keep dashboard widgets where you drop them while saving

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

* fix: keep dashboard widgets where you drop them while saving

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 01551cfe-cd4b-473d-8214-a1b12eb5dd4f

---------

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. 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.

2 participants