Add archive search and project collapse#2758
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Adds client-side filtering for archived threads in Settings > Archive, including project-level matches and thread-level matches across title, branch, and worktree path. Adds local per-project collapse controls and focused unit/browser coverage while leaving archive data loading and server contracts unchanged.
255f391 to
014d46f
Compare
ApprovabilityVerdict: Needs human review This PR adds new user-facing features (archive search and project collapse) rather than being a simple bug fix or mechanical change. New interactive capabilities warrant human review even when well-tested and self-contained. You can customize Macroscope's approvability policy. Learn more. |
What Changed
Why
Archived threads can become hard to scan once several projects accumulate history. This keeps the fix small and UI-only by filtering the existing archived snapshot in the web app without changing server contracts, persistence, or archive loading.
UI Changes
This changes the Settings > Archive UI by adding a search field and per-project collapse button.
Before
After
Checklist
Verification
bun run --cwd apps/web test src/components/settings/SettingsPanels.logic.test.tsbun run --cwd apps/web test:browser src/components/settings/SettingsPanels.browser.tsxbun fmtbun lintbun typecheckNote
Low Risk
Low risk: changes are UI-only (client-side filtering and collapsible sections) and covered by new unit + browser tests; the main risk is minor layout regressions from the new
SettingsSectioncontentVisibleprop.Overview
Adds a search box to Settings → Archived threads that filters archived thread groups client-side across project name/path plus thread title/branch/worktree path, and shows an explicit no matches empty state.
Adds per-project collapse/expand controls (with thread counts) by extending
SettingsSectionwith acontentVisibleprop to hide section content, and includes new unit tests forfilterArchivedThreadGroupsplus a browser test covering search + collapse behavior.Reviewed by Cursor Bugbot for commit 014d46f. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add search and per-project collapse to ArchivedThreadsPanel
ArchivedThreadsPanelthat filters archived threads by project name, cwd, thread title, branch, and worktree path using token-based matching viafilterArchivedThreadGroups.aria-expandedlabels and thread counts in each section header.SettingsSectionwith an optionalcontentVisibleprop to conditionally hide section body content while keeping the header visible.filterArchivedThreadGroupsand browser tests for search filtering and collapse behavior inArchivedThreadsPanel.Macroscope summarized 014d46f.