Repository navigation
feat(tab-group): make the split pane landing rows outline buttons - #40469
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
The empty split pane's options looked like plain text rows. They're now real buttons with an outline, so they look clickable and are easier to hit.
What Changed
Button, sizelg, with 8px between buttons. Icons, labels and key caps are unchanged.ButtonGroup. The main button starts the default agent, and a separate chevron button opens the + menu's agent list, now right-aligned under the chevron.Buttoninstead of a hand-styled one.LANDING_ROW_CLASSand the stretched-button overlay on the agent row are gone, because the primitives handle hover, focus and the split.Why
Jingjing asked for the landing options to read as buttons that are good to click. The outline
Buttonis the style guide's pattern for standalone clickable controls, so the page now uses it instead of custom row styling.Linked Issue
N/A, follow-up to #40113.
Visual Proof
Dark, with keyboard focus on the agent button, and the agent picker open:
(screenshot removed: contained real product data) (screenshot removed: contained real product data)
Testing
Ran a hidden dev build on macOS and split a pane. The landing rendered in light and dark, the chevron opened the agent list, and clicking Markdown opened a file in the landing's own pane. I didn't test Linux, Windows or SSH.
No new tests: this is a styling change on existing actions.
Risk
Styling only. Every button calls the same handler as before. The thing to watch is the agent split button: if the group's layout broke, the chevron could wrap under the main button in a very narrow pane. A plain revert backs it out.
Level: Low
AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Shortcut labels still come from
useShortcutKeyDetails, so Windows and Linux show their own bindings.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)