Repository navigation
fix(ui): align sidebar controls and respect status filters - #178980
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR extends automatic empty-group hiding to status filters after the initial session list loads. Example: All owners, Active status, and Hide empty groups set to When filtering, with an archived-only Completed work group.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep this maintainer-authored PR open: the focused policy change is useful, but existing consumer tests fail and the macOS documentation claims behavior the native implementation does not provide. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThe Control UI sidebar projection receives filtered session rows, group definitions, loading state, and personal display preferences, then produces visible sections for the renderer. flowchart TD
A[Gateway session roster] --> B[Session navigation projection]
C[Status and owner filters] --> B
B --> D[Sidebar section projection]
E[Personal empty group preference] --> D
D --> F[Visible sidebar groups]
Technical reviewBest possible solution: Keep the existing projection change, adapt empty-destination consumer fixtures to explicit All or Never, and restore accurate owner-only native macOS documentation. Do we have a high-confidence way to reproduce the issue? Current main's owner-only predicate establishes the reported empty-heading behavior, and the supplied before screenshots show it in the browser; this review ran no target code. Is this the best way to solve the issue? Extending the existing projection predicate is the smallest complete implementation of the approved policy, with loading and section-owner boundaries preserved. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c622b70b2b4c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +2, Tests +130, Docs 0. Total +132 across 6 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 20, 2026, 11:34 PM ET / October 21, 2026, 03:34 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…178980) * fix(ui): hide empty sidebar groups when filtering by status * fix(ui): align sidebar filter with close control * test(ui): honor empty-group visibility in sidebar fixtures
Closes #178972
What Problem This Solves
With All owners, Active status, and Hide empty groups set to When filtering, the sidebar kept blank headings for archived or snoozed sessions. Filter & sort also sat apart from the Close sidebar control.
User Impact
When filtering applies to Active, Snoozed, and Archived status. Choose All status or Never to keep empty destinations available. On desktop, Filter & sort now sits next to Close sidebar with the existing 6px gap; All owners stays on the left. Mobile keeps the filter on the right without adding a close control.
Why This Change Was Made
The existing projection uses both owner and status filters and waits for the initial list before deciding a group is empty. One scoped CSS rule removes the close button's competing automatic margin. Icons, keyboard order, handlers, catalog and team sections remain unchanged.
Evidence
Risk and coverage
Active is the default, so empty native headings now hide with When filtering. All/Never recovery, initial loading, collapsed groups, owner filters and partial rosters are covered. Validation uses source-server Chromium with synthetic Gateway data. Native macOS behavior is outside this change.
Status filtering: before and current result
Same synthetic roster and viewport. The current result also includes the header alignment.
Header alignment: before and after
Both sides already use the status-filter fix. The comparison isolates the header placement.
CI baseline attribution
Run39544378225 failed four test-type jobs on the same existing error:
overlay-registry.ts:32cannot seeDocument.openClawModalLayersin the extension and root tooling/script/E2E type graphs. The actual tested merge and its main parent contain identical overlay source, modal declaration, affected type configs and dependency files; this PR changes none of those inputs or their imports. The selected sidebar UI type graphs and all browser/unit jobs passed. The native pre-existing-failure landing route retains these failures and their source/checkout evidence rather than reporting CI as green.