Repository navigation
improve(ui): make online sidebar section collapsible - #125963
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 18, 2026, 6:59 PM ET / 22:59 UTC. ClawSweeper reviewWhat this changesThe PR renders the Control UI ONLINE roster as a shared collapsible sidebar disclosure with an avatar summary when collapsed and persisted state in the existing sidebar preference. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: the branch correctly reuses the sidebar collapse owner, but it changes ONLINE’s established default despite the linked request requiring it be retained. No independently attributable product-owner decision supporting that override appears in the supplied discussion. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherThe Control UI sidebar projects Gateway presence into the ONLINE roster. The session organizer owns collapsed-section state in localStorage, and the renderer uses it to select person links or a compact avatar summary. flowchart LR
A[Gateway presence] --> B[ONLINE roster projection]
B --> C[Sidebar renderer]
D[Stored collapsed sections] --> E[Session organizer]
E --> C
C --> F[Expanded person links]
C --> G[Compact avatar summary]
F --> H[Activity navigation]
Decision needed
Why: The code intentionally redefines a persisted UI default; the supplied author assertion of approval is not an independently attributable maintainer decision. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +88, Tests +73. Total +161 across 10 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared disclosure and persistence, but retain Do we have a high-confidence way to reproduce the issue? Yes—source inspection gives a high-confidence path: start with no collapsed-sections value, or malformed JSON; current main returns only Is this the best way to solve the issue? No: reusing the shared owner is right, but changing the fallback default exceeds the linked request unless a product owner explicitly chooses that behavior. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d39a24c687f6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
ClawSweeper finding reviewed. The default-state observation is factually correct, but the compact default is intentional and owner-approved in this thread: ONLINE should start as the one-line avatar summary, then expand to the named list. I am therefore not restoring the old expanded default. The implementation now also addresses the visual follow-up by rendering ONLINE through the same shared section-header owner as Sessions/Research, preserving identical chevron/label geometry while keeping ONLINE non-draggable. Compact state shows exactly two avatars plus a single +N overflow badge at the right edge. The branch was rebased onto current main after GitHub reported a real conflict. Exact rebased head: 5b7fd79. Remote post-rebase proof passed on AWS Crabbox run run_03ef4aad2cd4: formatter, 281 focused tests, mocked-browser E2E, Control UI build, and performance budgets. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
81bf4b5 to
5b7fd79
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
CI failures from the prior head are addressed:
Remote focused proof passed on AWS Crabbox run |
|
ClawSweeper P1 accepted and resolved: ONLINE now preserves the existing expanded default when the collapsed-sections preference is absent or malformed. Compact mode begins only after an explicit user collapse and then persists through the canonical shared preference. Updated proof covers first-visit open, user-collapsed @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
b965305 to
4f3d639
Compare
|
The prior exact-head lint failure was caused by The branch was rebased once onto that corrected |
|
Merged via squash.
|
* improve(ui): make online sidebar section collapsible * improve(ui): show online avatars in compact state * improve(ui): align online section heading * fix(ui): satisfy sidebar CI gates * fix(ui): keep online expanded on first visit
Closes #125765
What Problem This Solves
Resolves a problem where the Control UI's ONLINE sidebar section always consumes multiple vertical rows and does not follow the exact disclosure-heading grammar used by session sections such as Research and Sessions.
Why This Change Was Made
ONLINE now renders through the same shared section-header owner as session groups, with the same hierarchy, spacing tokens, chevron position, label alignment, native button semantics, keyboard triggers, collapsed-state set, and localStorage persistence. The first visit preserves the existing expanded default. After the user collapses it, the compact state places two avatars plus a
+Noverflow badge at the right edge and persists that choice across reloads. Expanding shows the normal vertical person list. The header preserves shared geometry without making ONLINE draggable.User Impact
Operators initially see the full ONLINE list as before. They can collapse it to a compact
2 avatars +Nsummary, retain that preference across reloads, and expand it again. ONLINE aligns exactly with adjacent section headings.Evidence
tsgo:uichecks passed.+2, Enter/Space activation,aria-expanded, persisted state after reload, and re-expansion.run_b26205daa0c7; CI-blocker runrun_8fe64e674505.Light Theme
First visit: ONLINE remains expanded by default
After user collapse: two avatars plus
+2at rightDark Theme
Reload: user-collapsed preference is restored
After user expansion: normal vertical person list