warp icon indicating copy to clipboard operation
warp copied to clipboard

Basic vertical tab grouping

Open johnturcoo opened this issue 6 months ago • 1 comments

Description

Basic functionality for vertical tab grouping. Tabs in the vertical tabs panel can now be organized into collapsible groups with their own header, chevron, and action buttons. All behavior is gated behind FeatureFlag::GroupedTabs — with the flag off this PR is a no-op.

Features supported

  • New "New tab group" entry in the unified new-session menu (the + button dropdown in the vertical tabs panel). Selecting it creates a fresh group containing one new tab.
  • Group container rendering in the vertical tabs panel:
    • Header with chevron + group name + N tabs subtitle
    • Single-click anywhere on the header (or the chevron) toggles collapse/expand
    • Kebab + close action buttons appear on header hover
    • Closing a group closes all of its member tabs
  • Member tabs render indented inside the group container, with the group's hover/active background painting across the whole group instead of per-tab
  • Group-aware new tab placement: when the active tab is in a group, new tabs inherit the group's group_id and stay clustered with it. The user's NewTabPlacement setting is honored within the group's bounds — AfterCurrentTab lands immediately after the active member, and AfterAllTabs lands at the end of the group's contiguous run (not at the end of the panel)

Other features such as group renaming, dragging tabs into/out of groups, dragging groups, moving tabs between groups, and other menu options will be implemented in a follow up PR.

Figma designs: https://www.figma.com/design/yTHUBNWdYjQquFugM4qjA5/Tab-grouping?node-id=6001-10704&m=dev

Note there are some minor UI changes that are not completely up to spec, still reaching alignment and will update in follow up PR.

Linked Issue

https://linear.app/warpdotdev/issue/APP-4609/vertical-tab-grouping-basic-functionality

Testing

  • [x] I have manually tested my changes locally with ./script/run
  • [x] Creating a new tab group from the + menu creates the group + one member tab
  • [x] Adding new tabs from within the group keeps the group contiguous
  • [x] Single-click on the header toggles collapse; the chevron icon flips
  • [x] Closing the group (via the X) closes every member tab
  • [x] Confirmed flag-off behavior is unchanged (menu item hidden, no group rendering)

Screenshots / Videos

https://www.loom.com/share/dfb13128f5f34585bb54880274cbb84b

johnturcoo avatar May 27 '26 14:05 johnturcoo

@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

warp-for-oss[bot] avatar May 27 '26 14:05 warp-for-oss[bot]