[task-board] add column reordering - #2
Open
jayporta wants to merge 2 commits into
Open
Conversation
Columns can be dragged by a grip in their header, or moved with the arrow keys while the grip has focus. Order is layout only — tasks join their column on status, so search and every task listing read the same either way. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The column root was armed as draggable by its grip, but a press that released off the grip left it armed. An armed root caught a card's own dragstart as it bubbled and stapled a column payload onto it, so dropping that card moved the task and reordered the board at once. Making the grip the drag source removes the latch, the bubbling guard it needed, and the stale state behind both. setDragImage keeps the column, not the grip icon, under the cursor. Also ignore dragleave between a column's own children, and put the column's position in the grip's label so an arrow-key move is announced. Co-Authored-By: Claude Opus 5 <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.
Drag and drop column reordering. Applies to all columns (including default columns todo, in progress, and done, which cannot be deleted).