From 3966ddbb0d5ebdb1529c3073561526ec73374721 Mon Sep 17 00:00:00 2001 From: David Kaya Date: Sun, 22 Mar 2026 21:01:03 +0100 Subject: [PATCH] refactor: restyle filter chips as minimal dot toggles Replace rounded-full pill buttons with subtle text toggles that use a small colored dot indicator when active. Blends better with the sidebar aesthetic. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/renderer/components/Sidebar.tsx | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/renderer/components/Sidebar.tsx b/src/renderer/components/Sidebar.tsx index de0d837..9f8fa34 100644 --- a/src/renderer/components/Sidebar.tsx +++ b/src/renderer/components/Sidebar.tsx @@ -68,27 +68,32 @@ function relativeTime(iso: string): string { return new Date(iso).toLocaleDateString(undefined, { month: 'short', day: 'numeric' }); } -/* ── Filter chip ────────────────────────────────────────────── */ +/* ── Filter toggle ──────────────────────────────────────────── */ -function FilterChip({ +function FilterToggle({ label, active, - activeClass, + dotColor, onClick, }: { label: string; active: boolean; - activeClass: string; + dotColor: string; onClick: () => void; }) { return ( ); @@ -504,11 +509,11 @@ export function Sidebar({ )} -
- setFilterRunning(!filterRunning)} /> - setFilterErrored(!filterErrored)} /> - setFilterPinned(!filterPinned)} /> - setFilterIncludeArchived(!filterIncludeArchived)} /> +
+ setFilterRunning(!filterRunning)} /> + setFilterErrored(!filterErrored)} /> + setFilterPinned(!filterPinned)} /> + setFilterIncludeArchived(!filterIncludeArchived)} />