Repository navigation
fix: keep dashboard widgets where you drop them while saving - #207112
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 01551cfe-cd4b-473d-8214-a1b12eb5dd4f
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesRetains 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +12, Tests +125, Docs +2. Total +139 across 5 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 27, 2026, 9:13 PM ET / November 28, 2026, 02:13 UTC. |
…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]>
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
board.updateresponse. 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.1f0332980951; after:612a21fff68b.Clean comparison
Before
After
Annotated comparison
Before
After
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.