Repository navigation
feat(tab-drag): VS Code-style blue insertion bar + cross-group drag ghost - #872
Merged
Merged
Conversation
brennanb2025
force-pushed
the
brennanb2025/drag-tabs-across-groups
branch
from
April 20, 2026 22:31
798d61f to
92328ed
Compare
Adds a blue vertical bar at the hovered tab's left/right edge during a tab drag, matching VS Code's tab.dragAndDropBorder cue. The pre-existing dnd-kit sortable animation slides neighbors apart; the bar is the final snap indicator that shows exactly where the tab will land.
brennanb2025
force-pushed
the
brennanb2025/drag-tabs-across-groups
branch
from
April 23, 2026 05:21
ef21966 to
d4389cc
Compare
…oups Adds a DragOverlay chip (icon + label + optional color dot) so a tab being dragged stays visible under the cursor after it leaves its source tab strip. The source tab strip uses overflow-hidden, which clipped the sortable element the moment the cursor crossed into another group. Also freezes sibling tabs during a drag (no SortableContext strategy, no transform/transition/opacity on the active tab), so only the blue insertion bar and the overlay chip respond to drag movement.
Adds unit coverage for the new pure logic in the tab-drag feature: - drop-indicator: verify before:/after: pseudo-element class output for each indicator side, and that null returns ''. - tab-insertion: cover resolveTabInsertion's null-result branches (no over, non-tab data, self-drop, no cursor center), left/right midpoint selection, and edge cases for resolveTabIndicatorEdges (null input, empty list, unknown tab id, single-tab strip). Also adds tests/e2e/AGENTS.md documenting the --mode e2e build requirement for window.__store, and guidance to prefer store-slice unit tests over E2E specs that just call store actions via page.evaluate (they pay an Electron-launch tax for no extra coverage).
…s-across-groups # Conflicts: # src/renderer/src/components/tab-bar/EditorFileTab.tsx
9 tasks done
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
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
Two UX improvements to tab drag-and-drop, backed by pure-logic unit tests.
before:/after:) on the two tabs adjacent to the insertion slot render as one continuous 2px cue, matching VS Code'stab.dragAndDropBorderwithout shifting layout.DragOverlay) that follows the cursor across tab groups. The source tab strip isoverflow-hidden, which clipped the sortable element the moment the cursor crossed into another group — the overlay chip (icon + label + optional color dot) keeps the drag visible everywhere. Sibling tabs are frozen during the drag (noSortableContextstrategy, no transform/transition/opacity on the active tab) so only the insertion bar and ghost respond to movement.Test plan
pnpm test— 962 renderer unit tests pass, including the newdrop-indicator.test.ts(4 tests) and expandedtab-insertion.test.ts(16 tests coveringresolveTabInsertionandresolveTabIndicatorEdgesedge cases).Notes for reviewers
tests/e2e/AGENTS.md(new) documents theelectron-vite build --mode e2erequirement forwindow.__storeand guidance to prefer store-slice unit tests over E2E specs that just invoke store actions viapage.evaluate.drop-indicator.ts,tab-insertion.ts) are fully unit-tested. No E2E test was added: the new behavior is pointer-driven UI that a store-level E2E could not meaningfully verify, and real-pointer headful coverage is out of scope here.