Skip to content

feat: support dragging tabs into new split panes - #732

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/drag-drop-tab-new-tab-split
Apr 16, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/drag-drop-tab-new-tab-split

Conversation

@brennanb2025

Copy link
Copy Markdown
Contributor

Problem

Users could create split groups from header actions, but the tab strip itself could not drag tabs across groups or into new pane splits. That made tab management less direct, and the drag UI could still show a split affordance for a single-tab pane even when the store would reject the drop as a no-op.

Solution

Move tab drag handling into the split-layout DnD context so tabs can be reordered within a group, dropped into another group, or dropped on a pane body to create a new split. Add pane-body overlays and shared drag metadata for terminal, editor, and browser tabs, wire the store with a dropUnifiedTab path that collapses emptied groups correctly, and suppress same-pane single-tab split drops in both the UI and store. Add focused tests for the new drag-drop behavior and the no-op guard.

- fix: hide no-op single-tab split overlay

- Auto-review iteration 2: fix drag perf, CSS overlay, DndContext sensors, dead init

- WIP: Update review context for iteration 2

- WIP: Auto-review iteration 1 fixes

- WIP: Changes before auto-review fixes
- useTabDragSplit: include worktreeId in updateHoveredPane deps; skip
  no-op center drop onto the tab's own pane body
- TabGroupDropOverlay: mark decorative overlay aria-hidden
- useTabGroupWorkspaceModel: drop dead reorderTabBar plumbing
@brennanb2025
brennanb2025 merged commit 5c664fc into main Apr 16, 2026
1 of 2 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/drag-drop-tab-new-tab-split branch April 16, 2026 23:47
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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