feat: reorganize left sidebar#2100
Conversation
jschwxrz
commented
May 18, 2026
- remove add project button from left sidebar menu
- add "add project button" next to "PROJECTS" in the top sidebar
- add search button (cmd + k) in the left sidebar menu
Greptile SummaryThis PR reorganizes the left sidebar: the "Add Project" action moves from the footer into the Projects group header (next to the sort filter), the search button moves from the top of the sidebar content into the footer menu alongside Library and Settings, and per-project item rows gain a tooltip on the inline "Add Task" button.
Confidence Score: 5/5Safe to merge — the changes are purely presentational sidebar reorganization with no data mutation, no auth logic, and no new async paths. All four files contain UI restructuring only. The Base UI render-prop composition used to merge Tooltip and DropdownMenu behaviors into a single DOM node is the correct pattern for this library and directly addresses the nested-button concerns raised in prior review threads. No files require special attention.
|
| Filename | Overview |
|---|---|
| src/renderer/features/sidebar/left-sidebar.tsx | Removes "Add Project" from footer and moves SidebarSearchTrigger to the footer menu in place of it; wraps Library icon+text in a span for layout consistency. |
| src/renderer/features/sidebar/project-item.tsx | Wraps the inline "Add Task" button in a Tooltip using the Base UI render-prop pattern to avoid nested button elements; adds a ShortcutHint to the tooltip. |
| src/renderer/features/sidebar/projects-group-label.tsx | Adds "Add Project" button next to the sort filter in the header; refactors both buttons to use the Base UI render-prop chain (DropdownMenuTrigger → TooltipTrigger → native button) to collapse nested interactives into a single DOM element. |
| src/renderer/features/sidebar/sidebar-search-trigger.tsx | Replaces the bespoke styled button with SidebarMenuButton so the search entry matches the visual style of the other footer menu items. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
LS[LeftSidebar]
LS --> SC[SidebarContent]
LS --> SF[SidebarFooter]
SC --> SPT[SidebarPinnedTaskList]
SC --> SG[SidebarGroup]
SG --> PGL[ProjectsGroupLabel]
SG --> PI[SidebarProjectItem xN]
PGL --> SortBtn["Sort Filter button\nDropdownMenuTrigger + TooltipTrigger"]
PGL --> AddProjBtn["Add Project button\nTooltipTrigger, opens addProjectModal"]
PI --> ItemRow[SidebarMenuRow]
ItemRow --> AddTaskBtn["Add Task mini button\nTooltipTrigger, opens taskModal"]
SF --> SST["SidebarSearchTrigger\nSidebarMenuButton, opens commandPaletteModal"]
SF --> LibBtn[Library SidebarMenuButton]
SF --> SettingsBtn[Settings SidebarMenuButton]
Reviews (2): Last reviewed commit: "fix(sidebar): preserve task action butto..." | Re-trigger Greptile