Skip to content

Bug: issue #614 failed verification - call-order regression, multi-pane not implemented, and tests removed #738

Description

@JoshuaRowePhantom

Missing implementation

Original issue: #614 — Tab Alt+N shortcut numbers are wrong after drag-reorder

Verification gap: Behaviour not implemented (call-order regression + multi-pane deferred) and tests missing

Detail:

Gap 1 — Bug #1 call-order was re-introduced by a later commit

In Phantom.Workspaces/ViewModels/MainWindowViewModel.cs, the SubscribeToInnerDockChanges handler (lines 2082-2086) calls RefreshTabAltShortcutLabels BEFORE SyncPaneTabsFromDockChange. Commit 31fd4fc (original #614 fix) correctly swapped this, but commit dd8a973 (Fix #536) re-introduced the bug.

Gap 2 — Bug #2 multi-pane support never implemented

FindAllDocumentDocksInVisualOrder, ComputeGlobalTabOrder, and RefreshGlobalAltShortcutLabels are absent. FindDocumentDock (returns only the first dock) is still used, so tabs in secondary split panes never receive Alt+N labels.

Gap 3 — Required tests are missing from Phantom.Workspaces.Tests/MainWindowIntegrationTests.cs

Tests added by 31fd4fc but no longer present on features (removed by dd8a973):

  • DragReorder_WithinSinglePane_LabelsUpdateToReflectNewOrder
  • DragReorder_ThreeTabs_MoveMiddleToFirst_LabelsCorrect
  • SplitWorkspace_TwoPanesHorizontal_LeftPaneTabsNumberedFirst
  • SplitWorkspace_TwoPanesVertical_TopPaneTabsNumberedFirst

Tests never added:

  • SplitWorkspace_ThreePanes_OrderIsLeftToRightTopToBottom
  • SplitWorkspace_DragReorderInSecondaryPane_GlobalLabelsCorrect
  • SplitWorkspace_NewTabOpenedInSecondaryPane_ReceivesCorrectLabel
  • SplitWorkspace_TabClosedFromPrimaryPane_SecondaryPaneLabelsRenumbered
  • FloatedPane_ReceivesLabelAfterDockedPanes
  • TwoFloatedPanes_OrderedByScreenPositionLeftToRight
  • TwoFloatedPanes_SameX_OrderedTopToBottom
  • FloatedPane_DragToNewPosition_LabelsUpdate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfailed-verificationBug failed automated verification

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions