Repository navigation
fix(ui): sidebar group headers read at the same weight as their sessions - #121372
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
432b112 to
58b1007
Compare
|
Codex review: found issues before merge. Reviewed August 9, 2026, 11:53 PM ET / August 10, 2026, 03:53 UTC. ClawSweeper reviewWhat this changesThe PR makes Control UI session-group headers smaller, heavier, and lightly tracked so sidebar containers are visually distinct from their session rows. Merge readinessKeep open. Current main still renders the group label at the same 13px/500 weight as session names, and the branch changes the owning selector; only a small comment-policy cleanup is needed before normal maintainer review. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI groups catalog sessions by project or person, renders each group as a collapsible header, then renders its session rows beneath it. This CSS selector controls the readable hierarchy in that sidebar list. flowchart LR
A[Session catalog data] --> B[Project or person grouping]
B --> C[Collapsible group header]
C --> D[Group-header typography]
D --> E[Sidebar hierarchy]
B --> F[Session rows]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +9. Total +9 across 1 file. 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 direct selector-level typography change, but reduce the comment to at most three neutral lines stating the hierarchy invariant and why label case remains authored. Do we have a high-confidence way to reproduce the issue? Yes—current main directly shows identical 13px/500 typography for group labels and session names, and the linked issue supplies a mock-gateway sidebar scenario; this read-only review did not run the harness. Is this the best way to solve the issue? Yes, after the comment is shortened: the shared header template already reaches all grouping modes, so changing its owning CSS rule is narrower and safer than adding markup or mode-specific styling. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 592bf90b079c. LabelsLabel changes:
Label 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
|
The session-catalog project/group aggregator header rendered at the same 13px/500 as the session rows nested inside it, so a group read as just another session. Bring the label into the sidebar's existing structural-label family at one reduced step (smaller, heavier, lightly tracked) and keep the case as authored, since these labels carry project, custom-group, and person names. The head's color is deliberately left alone: #115646 raised it for dark-theme readability, so type carries the whole separation. Closes #121371
58b1007 to
57a6ad9
Compare
|
Merged via squash.
|
…121372) The session-catalog project/group aggregator header rendered at the same 13px/500 as the session rows nested inside it, so a group read as just another session. Bring the label into the sidebar's existing structural-label family at one reduced step (smaller, heavier, lightly tracked) and keep the case as authored, since these labels carry project, custom-group, and person names. The head's color is deliberately left alone: openclaw#115646 raised it for dark-theme readability, so type carries the whole separation. Closes openclaw#121371
Closes #121371
What Problem This Solves
Fixes an issue where users browsing the Control UI sidebar would see a session group and the sessions inside it at the same visual weight, so the list read as one flat run of similar rows with no clear container level. The affected surface is the sidebar session organizer, specifically the collapsible aggregator rows (chevron + name + count) that the default
projectgrouping produces for every session catalog.Why This Change Was Made
The sidebar already has a settled idiom for structural labels — the section eyebrows at
ui/src/styles/layout.css:1718are small, heavy, tracked, uppercase, and muted — but the project/group header ignored that family and copied the session row instead: both.sidebar-session-catalog-project__labeland.sidebar-recent-session__namewerefont-size: 13px; font-weight: 500, leaving a single faint color shift as the only separation between a container and its children.The label now joins the same structural-label family one step down in intensity:
12px, weight650,letter-spacing: 0.03em. Case stays as authored, because these labels carry project basenames, custom group names, and person names, where the uppercase transform used one level up would be destructive and would also collapse the distinction against the host row above.Type carries the whole separation on purpose. The first draft of this change also muted the header row's color, but #115646 had deliberately raised that value (
--muted90% → 35%) for dark-theme readability and pinned it with an assertion inui/src/e2e/codex-sessions.e2e.test.ts:524that the label must sit closer to--textthan to--muted. That premise is correct — the defect was never that the header was too legible — so the color is left exactly as #115646 set it and the fix stays purely typographic. The comment at the rule records that constraint so the next person does not re-litigate it.Non-goals: no markup, no logic, no new tokens, no layout or spacing changes, no test changes, and no change to the session rows themselves. The whole change is three declarations in one rule.
User Impact
Group headers now read as wayfinding and session names read as content, so scanning the sidebar for "which rows are containers" no longer depends on spotting a small chevron and a trailing count. It applies on the out-of-box path —
normalizeCatalogProjectGroupingdefaults to"project"— and across all three grouping modes (project, custom group, person), since they share one template atui/src/components/app-sidebar-session-catalog-render.ts:337.Evidence
Captured headless (Chromium, 2x DPR, 1280x900) against the Control UI mock-gateway harness (
pnpm dev:ui:mock,scripts/control-ui-mock-dev.ts) using only its fixture roster. Every name shown is fixture data. Before and after are the same harness at the same scroll position, with only the stylesheet differing.The catalog zone shows
CODEX(section eyebrow) →openclaw(group header) → its two sessions, thenCLAUDE CODE→peekaboo→ its one session.claw — dark and light
openknot — dark and light
dash — dark and light
Full sidebar, claw dark — the change in context against the untouched sections above it:
Checks
node scripts/run-vitest.mjs ui/src/styles/base-theme-contrast.node.test.ts ui/src/styles/base-theme-tokens.node.test.ts— 2 files, 3 tests passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts ui/src/e2e/codex-sessions.e2e.test.ts— the project-label tone assertion at line 524 passes with this change. The run then stops later in the same test at line 545 waiting on a view-menumenuitemradio; that step fails identically on a pristineorigin/maincopy oflayout.cssin this local environment, so it is not caused by this change. Hosted CI is the authority for that file.oxfmt --check ui/src/styles/layout.css,stylelint --config config/stylelint.config.mjs ui/src/styles/layout.css,git diff --check— all clean.color-mixvalue changed, sobase-theme-contrast.node.test.tsneeds no extension.Production LOC
ui/src/styles/layout.css: +6 / -2, all in one rule. Three of the added lines are the comment recording the hierarchy contract; the net declaration delta is one line (letter-spacing), withfont-sizeandfont-weightedited in place. No test lines.ClawSweeper rank-up moves
The review on
58b10072raised one actionable finding — the CSS comment ran to eight lines and carried PR-specific lore, against the root guide's 1-3 short lines. Applied: the comment is now three lines stating the invariant (structural label vs content), the reason type carries the split (head color stays near--text), and the authored-case rule, with the PR reference dropped. That was the only item; hosted CI on58b10072was green at 75 passing, 0 failing, includingchecks-ui-e2e, and the head has moved only by that comment edit since.