From d0ef5fe4ec36c1dc04485e69f962f6ba5539ddde Mon Sep 17 00:00:00 2001
From: Neil <4138956+nwparker@users.noreply.github.com>
Date: Sat, 18 Apr 2026 22:53:23 -0700
Subject: [PATCH] feat(sidebar): consolidate group-by + filter controls (#818)
* feat(sidebar): move group-by control into view options menu
Consolidates the standalone Group by segmented control into the view
options dropdown alongside Sort by and Show properties, and opens the
menu to the right of the trigger so it no longer covers the worktree
list.
* feat(sidebar): combine active + repo filter into single filter control
Replaces the separate Active toggle and repo dropdown trigger in the
search bar with a single ListFilter icon button that opens a unified
dropdown covering Status (Active only) and Repositories. The button
expands with an inline summary and accent background when any filter
is applied, making the active state obvious, and exposes a Clear
filters action.
---
.../src/components/sidebar/GroupControls.tsx | 46 -----
.../src/components/sidebar/SearchBar.tsx | 194 ++++++++++--------
.../src/components/sidebar/SidebarHeader.tsx | 38 +++-
src/renderer/src/components/sidebar/index.tsx | 2 -
4 files changed, 147 insertions(+), 133 deletions(-)
delete mode 100644 src/renderer/src/components/sidebar/GroupControls.tsx
diff --git a/src/renderer/src/components/sidebar/GroupControls.tsx b/src/renderer/src/components/sidebar/GroupControls.tsx
deleted file mode 100644
index 90e58a1e844..00000000000
--- a/src/renderer/src/components/sidebar/GroupControls.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-import React from 'react'
-import { useAppStore } from '@/store'
-import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group'
-
-const GroupControls = React.memo(function GroupControls() {
- const groupBy = useAppStore((s) => s.groupBy)
- const setGroupBy = useAppStore((s) => s.setGroupBy)
-
- return (
-
- {
- if (v) {
- setGroupBy(v as typeof groupBy)
- }
- }}
- variant="outline"
- size="sm"
- className="h-6 flex-1 justify-start"
- >
-
- All
-
-
- PR Status
-
-
- Repo
-
-
-