Skip to content

fix(shell): persist drag-and-drop pane reorder across navigation#26

Merged
DannyNs merged 1 commit intomainfrom
bug/shell-dnd-reorder-persistence
Mar 19, 2026
Merged

fix(shell): persist drag-and-drop pane reorder across navigation#26
DannyNs merged 1 commit intomainfrom
bug/shell-dnd-reorder-persistence

Conversation

@DannyNs
Copy link
Copy Markdown
Collaborator

@DannyNs DannyNs commented Mar 19, 2026

Summary

  • The frontend emitted state:reorder-panes on drag-and-drop but the server had no socket handler, so dashboardState.panes was never reordered
  • When navigating away and returning to the Shell view, the snapshot restored the original (pre-drag) order
  • Added a server-side state:reorder-panes handler in shell-socket.ts that validates the incoming order, reorders the panes array, and broadcasts to other clients

Test plan

  • Open Shell view, create 3+ terminal panes
  • Drag-and-drop to reorder panes
  • Navigate to another module (e.g. Kanban) and back to Shell
  • Verify pane order is preserved
  • Open a second browser tab and verify reorder syncs across clients

🤖 Generated with Claude Code

The frontend emitted state:reorder-panes on drop but the server had no
handler, so dashboardState.panes was never reordered. When the user
navigated away and returned, the snapshot restored the original order.

Add a server-side socket handler that validates the incoming order array,
reorders dashboardState.panes to match, and broadcasts the new order to
other connected clients.
@DannyNs DannyNs merged commit b7ecd14 into main Mar 19, 2026
1 check passed
@DannyNs DannyNs deleted the bug/shell-dnd-reorder-persistence branch March 19, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant