Add optional insert-card button between cards - #1211
Open
ibci wants to merge 1 commit into
Open
Conversation
Adds a hover "+" affordance in the gap between cards (and above the first / below the last) to insert a new card at that position, instead of only appending to the end of the list. Gated behind a new board setting "Show insert card button between cards" (off by default), so existing behavior is unchanged unless enabled. The inserter is marked data-ignore-drag so it does not interfere with drag-and-drop. Co-Authored-By: Claude Opus 4.7 <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.
Summary
Adds a hover
+affordance in the gap between cards (and above the first / below the last card) to insert a new card at that exact position, instead of only being able to append to the end of a list.The feature is gated behind a new board setting "Show insert card button between cards" (off by default), so it does not change behavior for existing users unless they opt in.
Details
boardModifiers.insertItemsflow (the same one powering the "Insert card before/after" context-menu items), so the new card opens in edit mode at the right index.data-ignore-drag— the same mechanism the card's menu button uses — so it does not interfere with drag-and-drop.Files changed
src/components/Item/Item.tsx—ItemInsertercomponent + inline rendering between cards, gated on the settingsrc/components/Lane/Lane.tsx— passeslaneIndexdown to<Items>src/Settings.ts— theshow-insert-card-buttonboard togglesrc/lang/locale/en.ts— setting label/description stringssrc/styles.less— inserter zone + button stylesTesting
eslint) and prettier pass on the changed files;npm run buildsucceeds.+between cards and inserts at the correct position; drag-and-drop continues to work; toggling off restores stock behavior.🤖 Generated with Claude Code