Skip to content

feat(tab-group): make the split pane landing rows outline buttons - #40469

Merged
AmoabaKelvin merged 1 commit into
mainfrom
split-pane-landing-buttons
Nov 9, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
split-pane-landing-buttons

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Files Added Deleted Net
Test 0 0 0 0
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​48 $\color{#cf222e}{\Huge{\mathbf{−}}}$​45 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3

What Changed

  • Each row (Terminal, Browser, Markdown, Go to file, Mobile emulator, Reopen closed tab) is an outline Button, size lg, with 8px between buttons. Icons, labels and key caps are unchanged.
  • The agent row is a split button in a 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.
  • "Close pane" is a small ghost Button instead of a hand-styled one.
  • LANDING_ROW_CLASS and 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 Button is 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

Before (#40113) After
rows-before (screenshot removed: contained real product data)

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.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The split-pane landing view now uses shared button and label components. The agent row uses a grouped main button and dropdown trigger for agent selection. The landing view’s heading padding, row spacing, and reopen separator margins also change.

Merge Risk: Minimal · up to 7dc50

No actionable merge-blocking issue is established for these landing controls. The change is mergeable after normal checks.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly describes the main change: split-pane landing rows become outline buttons.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is mostly complete. It explains the user-facing change, why it was made, the implementation, visual proof, testing, risks, and cross-platform considerations. The linked issue section s…
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 3 files.

Full details: Description check

Explanation

The description is mostly complete. It explains the user-facing change, why it was made, the implementation, visual proof, testing, risks, and cross-platform considerations. The linked issue section says “N/A” but references follow-up #40113; a direct issue link would better match the template.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5f56eecc-a5ec-4ff0-a6e8-c3295188fa75
Commits

Reviewing files that changed from the base of the PR and between 90a0748 and 7dc5032.

Files selected for processing: 3

  • src/renderer/src/components/tab-group/SplitPaneLanding.tsx
  • src/renderer/src/components/tab-group/SplitPaneLandingAgentRow.tsx
  • src/renderer/src/components/tab-group/split-pane-landing-row.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@AmoabaKelvin
AmoabaKelvin merged commit c66199a into main Nov 9, 2026
71 of 73 checks passed
AmoabaKelvin added a commit that referenced this pull request Nov 10, 2026
Reverts c66199a (#40469). The outline buttons didn't work out; the landing goes back to the plain list from #40113.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant