3.3 KiB
3.3 KiB
APP-3648: Vertical Tabs Panel — Search + Control Bar
Overview
Add a fixed control bar at the top of the vertical tabs panel containing a search input and a "new tab" button. This bar sits above the scrollable tab groups and is always visible when the panel is open.
Milestone 1 Scope
- Search input: Renders as a full-width text field with placeholder text (e.g. "Search tabs...") and a magnifying glass icon. Non-functional — the input does not accept text and is not focusable. Hovering anywhere on the search input shows a tooltip: "Not yet implemented".
- Plus button: A single icon button (
+) to the right of the search input. Left-click creates a new tab (equivalent toWorkspaceAction::AddTab). Right-click opens the new session dropdown menu (equivalent toWorkspaceAction::ToggleNewSessionMenu). - Configs button: Out of scope for this milestone.
Behavior
Search Input
- Visually resembles a standard search field: magnifying glass icon on the left, placeholder text, themed background/border consistent with the panel.
- The field is inert — clicking it does nothing (no focus, no cursor, no text entry).
- On hover, a tooltip appears with the text "Not yet implemented".
- The search input stretches to fill all available horizontal space to the left of the plus button.
Plus Button
- Renders as a small icon button with a
+icon. - Left-click: Creates a new tab (same as the existing
AddTabaction — opens a welcome tab or terminal tab depending on feature flags). - Right-click: Opens the new session dropdown menu, anchored below the plus button at the bottom edge of the control bar.
- On hover, shows a tooltip with label "New Tab" and the keybinding for the new tab action (Cmd+Shift+T / Ctrl+Shift+T).
- The dropdown menu contains the same items as the existing new session menu (shell options, launch configs, tab configs).
Layout
- The control bar is a horizontal row at the top of the vertical tabs panel, above the scrollable tab group list.
- It is not scrollable — it stays fixed at the top as tab groups scroll.
- It has horizontal padding consistent with the rest of the panel (12px).
- Vertical padding provides comfortable spacing from the panel's top edge and the first tab group below.
Edge Cases
- Narrow panel widths: At the minimum panel width (200px), the search input text truncates but the plus button remains fully visible and usable. The plus button has a fixed size; the search input absorbs all remaining width.
- Tooltip clipping: The "Not yet implemented" tooltip and the new session dropdown menu must not clip outside the window bounds. Use window-aware positioning.
- Focus: Since the search input is inert, clicking it must not steal focus from the active terminal or editor. The control bar itself does not participate in focus management.
- Panel toggle: The control bar is only visible when the vertical tabs panel is open. No special behavior on open/close.
- Dropdown menu lifecycle: The new session dropdown menu follows the same open/close lifecycle as the existing top bar menu — it closes on item selection, clicking outside, or pressing Escape.
- Multiple windows: Each window's vertical tabs panel has its own independent control bar instance. Dropdown menus are scoped to their window.