feat(web): filter sidebar from thread menu - #8719
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe thread action menu now supports project filtering. The sidebar resolves a thread’s project group, displays a filter or reset action, and updates the project scope. The chat-header menu keeps project filtering disabled. ChangesProject filtering
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant User
participant Sidebar
participant ThreadActionMenu
User->>Sidebar: Open thread context menu
Sidebar->>ThreadActionMenu: Provide projectFilter
ThreadActionMenu-->>Sidebar: Show filter or reset action
User->>Sidebar: Select project-filter action
Sidebar->>Sidebar: Set or clear projectScopeKey
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The project-filter action is gated appropriately and toggles the selected thread’s project scope without affecting the chat-header menu. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
One finding: the new filter-by-project menu item is the only entry in the shared thread action menu without an icon, which misaligns its label in the web context-menu fallback. Details inline.
Posted via Macroscope — UI Consistency
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a new context-menu workflow that changes the persisted sidebar scope and which threads are visible. The implementation is compact, but it modifies shared production sidebar behavior and lacks direct integration coverage for the dispatch path. You can add or adjust custom eligibility rules. Learn more. |
Dismissing prior approval to re-evaluate c845a73
Dismissing prior approval to re-evaluate 723f161
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
b4477dc to
a352597
Compare
Add "Filter by <project>" to a sidebar thread's context menu, and "Show all projects" when the list is already scoped to that project. It reuses the persisted sidebar project scope and is omitted from the chat-header menu, which has no scoped list behind it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
a352597 to
44fa39e
Compare
|
Reviewed the existing bot feedback against the rebased patch:
No maintainer review requests were present. Upstream #9416, #8925 and #11315 do not supersede this shortcut; the branch retains their behavior and is rebased without merge commits. |
|
Latest-head follow-up ( Macroscope’s updated approvability note is accurate about automated coverage: the focused tests cover menu construction and sidebar logic, not a full rendered context-menu dispatch. The PR includes earlier full-client recordings exercising filter and reset, with the older header and untested current-head integration explicitly disclosed. I am retaining that limit for human review rather than adding a callback-wiring test that AGENTS.md expressly discourages. The neutral approvability result is not being presented as maintainer approval. No functional correctness finding or unresolved inline thread remains. |
Filtering to a thread’s project currently requires opening the project picker in the sidebar header. This adds “Filter by ” to the sidebar thread’s context menu, changing to “Show all projects” when that project is already selected.
The action reuses the existing persisted project scope and resolves projects by environment and project ID. It leaves the open thread in place and shares the project-group lookup with “Project settings”. The chat-header menu omits this sidebar-only action.
Rebased onto
mainatc542b781c6. Upstream project-scope persistence (#9416), thread-menu project settings (#8925), and the compact sidebar header (#11315) are retained; none supplies this shortcut. No new store, wire contract, or server behavior is needed.Verification
vp test run apps/web/src/components/threadActionMenu.logic.test.ts apps/web/src/components/Sidebar.logic.test.ts: 169 passed.vp run typecheckinapps/web: passed after refreshing local dependencies withvp i.vp lintandvp fmt --checkon the four changed files: passed; existing Sidebar lint warnings remain.Web and desktop share this menu. Native mobile uses a separate thread list and is unchanged. Desktop shell and remote/relay connections were not exercised; project matching includes the environment ID. The existing project picker remains another way to set or clear the same scope.
Before and after
These are earlier full-web-client recordings, using five threads across Harbor and cedar, light theme, at 1280×800. The GIFs focus on the sidebar. They show the same menu labels, icon, filter/reset actions and retained open thread as this patch. Upstream has since folded the project picker into the search row (#11315), so the surrounding header is older; these are not fresh captures of the rebased head. Both GIFs and linked MP4s were downloaded and decoded successfully during this update.
Before: the thread menu has no project-filter action.
After: “Filter by Harbor” hides the cedar thread; “Show all projects” restores it. The open Harbor thread stays selected.
Before recording · After recording
Coordination trace: T3 thread aaade76d-4ec0-4717-96ed-490d10a783a9
Updated with GPT-6 in the Codex harness (T3 Code). Independent review: Claude Fable 5 high via direct Claude Code CLI.
Summary by CodeRabbit
New Features
Tests