Skip to content

feat(desktop): add a sidebar toolbar with search, sort and filter - #3806

Merged
LHagfoss merged 1 commit into
mainfrom
feat/desktop-sidebar-toolbar
Nov 15, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
feat/desktop-sidebar-toolbar

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

The sidebar's view options could only be changed from ⌘K, nothing on screen pointed to search or New thread, and "Only this project" hid other projects' threads without saying so.

  • Toolbar under Needs you (ui/SidebarToolbar.tsx), on by default:
    • Search field: narrows the list by title, project folder and branch as you type; opens shut shelves and folders; ⏎ opens the first match, Esc clears.
    • Sort and filter menu: sort by Activity (today's order), Last updated or Title; Only this project, Group by project, Working at the top, Compact rows. An accent dot shows while anything differs from the default.
    • New thread (⌘N).
  • "Only " shows as a chip under the field, with a clear button.
  • Settings › Appearance: Sidebar toolbar (on/off) and Settle idle threads (Never, 1, 3, 7, 14 days; default 3, as before).
  • ⌘K: "Sidebar: Toolbar" and "Sidebar: Sort by …".
  • docs/design.md describes the sidebar as it now is.

Changelog

The sidebar has a toolbar again: search threads, sort and filter the list, and start a new thread. Idle threads can settle after a chosen number of days, or never.

Testing

bun run check; state/sidebarToolbar.test.ts covers the sorts, the search match and the settle rule. Checked in the mock window: the toolbar, a search narrowing to one row, the menu, and the project chip.

The sidebar's view options lived only in ⌘K, and Only this project hid other projects' threads with nothing on screen saying so. A toolbar under Needs you now holds a search field, a Sort and filter menu (Activity, Last updated, Title; the four view options) and New thread. An active project filter shows as a chip with a clear button. The toolbar can be turned off, and how many idle days settle a thread (or never) is a setting.
@github-actions github-actions Bot added the feature New feature or request label Nov 15, 2026
@LHagfoss
LHagfoss merged commit 35638c0 into main Nov 15, 2026
9 checks passed
@LHagfoss
LHagfoss deleted the feat/desktop-sidebar-toolbar branch November 15, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant