Add move to group sidecar menu
Description
Adds a Move to group sidecar menu to the tab right-click context menu. When the user hovers Move to group, a panel opens beside the parent menu listing every other tab group (ordered by visual position in the tabs panel). Selecting a group dispatches WorkspaceAction::MoveTabToGroup, moving the tab into that group and dismissing both menus. Mirrors the existing new-session worktree sidecar pattern.
Gated by FeatureFlag::GroupedTabs — when disabled, the entire tab-group section of the right-click menu (including this item) is hidden.
Changes
app/src/tab.rs: AddedMOVE_TO_GROUP_LABELconstant and threaded&HashMap<TabGroupId, TabGroup>through the tab menu builders sotab_group_menu_itemscan insert the submenu-parent item when other groups exist.app/src/workspace/view.rs: Added the sidecar menu view, and new helpers (build_move_to_group_sidecar_items,update_move_to_group_sidecar,hide_move_to_group_sidecar,handle_move_to_group_sidecar_event) that wire parent hover events into open/hide logic and render the sidecar as an overflow-aware positioned overlay.
Linked Issue
https://linear.app/warpdotdev/issue/APP-4620/render-sidecar-menu-for-tab-grouping-options
Testing
- [x] I have manually tested my changes locally with
./script/run
Screenshots / Videos
@johnturcoo
I'm starting a first review of this pull request.
You can view the conversation on Warp.
I completed the review and no human review was requested for this pull request.
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz