Repository navigation
Replace the sidebar create dropdown with two direct action buttons - #19653
Conversation
Users can now reach New workspace and Add project with one click each, without navigating a menu. The frequent action (new workspace) is more discoverable at its rightmost position. Both controls are always visible in the sidebar header action cluster.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (12)
💤 Files with no reviewable changes (6)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe sidebar create dropdown was replaced with separate Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The sidebar now exposes direct Add project and New workspace actions, preserving project-dialog and workspace-composer behavior while improving access to both flows. No concrete current-head merge risk remains. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the motivation, implementation, deliberate behavior changes, and verification results. However, it does not follow the required template because it omits the ELI5, Linked Issue with a completed issue reference, Visual Proof attachments or an explicit N/A explanation, testing checklist, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. Resolution Complete the required description sections. Add the linked issue number after
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Sidebar create dropdown replaced with two direct buttons —
AddProjectButton(FolderPlus→openModal('add-repo')) andNewWorkspaceButton(Plus→openWorkspaceCreationComposerWithTourHandoff) render side-by-side in the header, each a one-click action. ThesetTimeout(0)Radix focus-restoration workaround is correctly dropped with the menu, and the shortcut (⌘N) moves into the New workspace tooltip. agentsViewActiverename —hideWorkspaceOptionsis now named for what it always carried, and in the agents view both the workspace options menu and Add project are hidden while New workspace remains.- Title truncation fix —
min-w-0 truncateon the section title span prevents long localized titles (es "Espacios de trabajo") from wrapping theh-8row into two lines. - Icon disambiguation — "New group from project" switches
FolderPlus→FolderTreesoFolderPlusmeans "Add project" consistently. - i18n — unused
SidebarHeader.createMenukey removed from all six locales. - Tests — unit suite rewritten around direct buttons; e2e helpers scoped to the new
data-sidebar-header-actionshook to avoid Playwright strict-mode collision with Landing's own "Add project" button.
The two deliberate removals are implemented correctly and read as sound tradeoffs: hiding Add project in the agents view is consistent with a view that lists activity, and the FolderPlus → FolderTree change is labeled so its cost is low. The e2e selectors in sidebar-project-dialog.ts and golden-core-flows.spec.ts match the rendered aria-labels and the scoping hook, so the not-yet-run Electron specs should pass as updated.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Why
#19375 unified the sidebar's two header buttons into one
+dropdown. That removed the width-dependent layout branching, but it charged the cost to the action people take constantly: New workspace went from 1 click to 2, and Add project didn't actually become more discoverable — a menu item is invisible until you open the menu.What
The
+performs an action again instead of opening one. Both controls sit in the header, one click each, always visible.sidebar-header-actions.tsx— dropdown removed.FolderPlus→openModal('add-repo'),Plus→openWorkspaceCreationComposerWithTourHandoff, with+kept rightmost so muscle memory holds. ThesetTimeout(…, 0)that worked around Radix's focus restoration on menu teardown goes with it — there's no menu to tear down. The tooltip now carries the shortcut (New workspace ⌘N), which the deleted menu row was the only place advertising.SidebarHeader.tsx—min-w-0 truncateon the title span (see below), andhideWorkspaceOptionsrenamed toagentsViewActive, which is what it was always being passed.repo-header-project-actions.tsx— "New group from project" moves toFolderTree, soFolderPlusmeans one thing in this sidebar.SidebarHeader.createMenu("Create") key removed from all six locales.The truncate fix isn't cosmetic
MIN_WIDTHis 220px. Four 24px buttons plus gaps is 108px, leaving the title 88px. The title span had nomin-w-0and notruncate, so it can't shrink:Projects(en)Workspaces(en)Espacios de trabajo(es)ワークスペース(ja)Measured live in the app at 220px: with the fix the Spanish title is 16px tall; with
truncate min-w-0stripped it is 32px tall — two lines filling the entire header row. This was already marginal at three buttons; the fourth makes it certain.Two deliberate removals — please sign off
FolderPlus→FolderTreefor "New group from project" is churn in a menu nobody complained about. It's labeled, so the cost is low.Verification
Attached over CDP to a dev instance from this worktree:
View activity · Workspace options · Add project · New workspace— four buttons, 32px row, atsidebarWidth: 220, the exact minimum.+opened the Create worktree composer; one click on the folder icon opened "Add a project".Gates: sidebar suite (299 files / 2523 tests), contextual-tour tests,
pnpm tc, changed-code quality gate, andverify:localization-{catalog,coverage,extraction}all pass.One e2e trap worth knowing about
Landing.tsxrenders its own button with the accessible name "Add project" whenever no workspace is open — exactly the state the sidebar e2e helpers run in. An unscopedgetByRole('button', { name: 'Add project', exact: true })matches twice and trips Playwright strict mode. The helpers are now scoped to adata-sidebar-header-actionshook. The oldname: 'Create'selector was accidentally protected from this; the rename removed that protection.Not yet run: the Electron e2e specs themselves. The updated selectors are reasoned and scoped, not executed.