Repository navigation
fix(ui): sidebar section chevrons after labels, collapsed-only counts - #110448
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 1:48 AM ET / 05:48 UTC. Summary PR surface: Source -2, Tests -1. Total -3 across 4 files. Reproducibility: yes. from source: both header renderers currently have a distinct count element whose visibility is governed by collapsed state in this patch. A full visual reproduction was not independently run in this read-only pass. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Confirm the supplied before/after evidence covers regular, catalog, and error headers, then land the focused visual consistency change if the collapsed-only count rule is the intended Control UI convention. Do we have a high-confidence way to reproduce the issue? Yes, from source: both header renderers currently have a distinct count element whose visibility is governed by collapsed state in this patch. A full visual reproduction was not independently run in this read-only pass. Is this the best way to solve the issue? Unclear pending maintainer confirmation: the patch is a narrow shared presentation rule and updates the adjacent E2E expectation, but hiding expanded counts is a deliberate UI-policy choice rather than a mechanically required bug fix. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cafa7606b757. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source -2, Tests -1. Total -3 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Merged via squash.
|
What Problem This Solves
Sidebar section headers (Threads, Groups, Coding, and native-session catalogs) rendered the collapse chevron before the label, so section labels sat indented relative to the session titles below them instead of sharing one left edge. Headers also always showed a row count, which is redundant noise while a section is expanded and its rows are visible.
Why This Change Was Made
Requested by the maintainer: chevron should follow the label so section labels and session titles align in one grid, and the counter should only appear when a section is collapsed (when the count is the only signal of hidden content).
User Impact
THREADS, then chevron).THREADS › 6); expanded sections show just the label and chevron.Before / after (expanded) and after (collapsed):
Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts— 107 tests pass.dev:ui:mock): expanded zones show label + chevron with no count; collapsed Threads/Coding showTHREADS › 6/CODING › 1; screenshots above are from that harness.ui/src/e2e/codex-sessions.e2e.test.tsupdated: the expanded catalog section now asserts the count element is absent (counts are collapsed-only).