Drag cards into sections on the board#55
Merged
Merged
Conversation
Make board agent cards draggable onto section columns to re-pin a session's section, mirroring the existing sidebar row → section-header drag. A dragstart stashes the session id in a dedicated draggingCardId (kept apart from the sidebar's draggingSessionId and the column-reorder's draggingColId so the three drag flows don't interfere); each column is a drop target that highlights in accent blue while a card hovers and calls move_to_section on drop — clearing the pin on the "No section" catch-all and short-circuiting a no-op drop on the card's current section. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds drag-and-drop to move agent cards between section columns in the Board view, with a blue hover preview of the section under the mouse while dragging.
How
.agent-cards are nowdraggable.dragstartstashes the session id in a dedicateddraggingCardIdmodule var — kept separate from the sidebar'sdraggingSessionIdand the column-reorder'sdraggingColIdso the three drag flows can't interfere.makeCardDropTarget):dragoverhighlights the whole column in accent blue,dropcalls the existingmove_to_sectioncommand. The "No section" catch-all clears the pin (section: null); dropping on the card's current section is a no-op..board-col.card-drop-target(2px--accentoutline + faint accent fill) for the hover preview, and.agent-card.dragging(0.5 opacity) for drag feedback, matching the existing sidebar/tab drag affordances.No backend changes — reuses the existing
move_to_sectionTauri command.Testing
npm run typecheck/npm run build— cleannpm test— 49 unit tests passnpm run test-iwft -- scenarios/board— 13 pass, including 4 new tests: re-pin to another section, clear pin via "No section", no-op guard on the current section, and the accent-blue hover preview.🤖 Generated with Claude Code