Skip to content

fix: wire tab drag-and-drop reordering to editor context (fixes PlatformNetwork/bounty-challenge#21924)#12

Closed
echobt wants to merge 0 commit intomainfrom
fix/issue-21924
Closed

fix: wire tab drag-and-drop reordering to editor context (fixes PlatformNetwork/bounty-challenge#21924)#12
echobt wants to merge 0 commit intomainfrom
fix/issue-21924

Conversation

@echobt
Copy link
Copy Markdown
Contributor

@echobt echobt commented Feb 27, 2026

Fix

Wires tab drag-and-drop reordering to the editor context's reorderTabs() function, making tab reordering functional.

Changes

  • TabBar.tsx: Added drag event handlers (handleDragStart, handleDragOver, handleDrop, handleDragEnd) that call editor.reorderTabs(sourceFileId, targetFileId, groupId)
  • EditorTabs.tsx: Same drag-and-drop wiring for the alternative tab component
  • tabOperations.ts: reorderTabs implementation splices the tab array correctly

Root Cause

The CortexEditorTabs component accepted an onTabReorder prop but the actual TabBar and EditorTabs components used in the editor (via MultiBuffer) were not wired to the editor.reorderTabs() context method.

Fixes PlatformNetwork/bounty-challenge#21924

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.

[BUG] [alpha] Tab drag-and-drop reordering is completely non-functional — shows disabled cursor when dragging tabs (TabBar.tsx)

1 participant