Skip to content

fix(ui): sidebar group headers read at the same weight as their sessions - #121372

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/sidebar-group-hierarchy
Aug 10, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/sidebar-group-hierarchy

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

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 project grouping 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:1718 are 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__label and .sidebar-recent-session__name were font-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, weight 650, 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 (--muted 90% → 35%) for dark-theme readability and pinned it with an assertion in ui/src/e2e/codex-sessions.e2e.test.ts:524 that the label must sit closer to --text than 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 — normalizeCatalogProjectGrouping defaults to "project" — and across all three grouping modes (project, custom group, person), since they share one template at ui/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, then CLAUDE CODE → peekaboo → its one session.

claw — dark and light

Sidebar catalog zone before and after, claw dark

Sidebar catalog zone before and after, claw light

openknot — dark and light

Sidebar catalog zone before and after, openknot dark

Sidebar catalog zone before and after, openknot light

dash — dark and light

Sidebar catalog zone before and after, dash dark

Sidebar catalog zone before and after, dash light

Full sidebar, claw dark — the change in context against the untouched sections above it:

Before After
Full sidebar before Full sidebar after

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-menu menuitemradio; that step fails identically on a pristine origin/main copy of layout.css in 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.
  • No theme token or color-mix value changed, so base-theme-contrast.node.test.ts needs no extension.
  • Final-head autoreview: clean, no accepted or actionable findings.

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), with font-size and font-weight edited in place. No test lines.

ClawSweeper rank-up moves

The review on 58b10072 raised 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 on 58b10072 was green at 75 passing, 0 failing, including checks-ui-e2e, and the head has moved only by that comment edit since.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 10, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 10, 2026 03:33
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 10, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/sidebar-group-hierarchy branch from 432b112 to 58b1007 Compare August 10, 2026 03:48
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 10, 2026
@clawsweeper

clawsweeper Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 9, 2026, 11:53 PM ET / August 10, 2026, 03:53 UTC.

ClawSweeper review

What this changes

The PR makes Control UI session-group headers smaller, heavier, and lightly tracked so sidebar containers are visually distinct from their session rows.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: 58b10072c2d176e8193d369ad25d2446a6554511

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The owner-level typography change is correct and focused; trimming the comment would remove the only material review concern.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labeled UI PR is exempt from the external-contributor proof gate; its body nevertheless describes mock-gateway before/after captures.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labeled UI PR is exempt from the external-contributor proof gate; its body nevertheless describes mock-gateway before/after captures.
Evidence reviewed 7 items Current-main behavior: Current main gives the project-group label 13px/500, matching the session-row name at 13px/500; the visual hierarchy issue remains present.
Shared rendering boundary: One template renders the same group-header class for project and person grouping, with all grouped session rows beneath it.
Existing behavioral coverage: The catalog E2E already exercises project and person labels and preserves the deliberate near-text label color contract, so the typography-only fix does not need to alter color behavior.
Findings 1 actionable finding [P3] Trim the CSS comment to the repository limit
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Trim the CSS comment to the repository limit (P3) - The added eight-line comment is PR-specific and exceeds the root policy’s 1–3 short-line limit; it also accounts for nearly all production growth. Keep only a compact, neutral statement of the hierarchy and authored-case invariant.
  • Resolve merge risk (P1) - The eight-line PR-specific CSS comment is avoidable production growth and conflicts with the repository’s compact, non-PR-lore comment guidance.

Findings

  • [P3] Trim the CSS comment to the repository limit — ui/src/styles/layout.css:1879-1886
Agent review details

Security

None.

PR surface

Source +9. Total +9 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 11 2 +9
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 11 2 +9

Review metrics

Metric Value Why it matters
Production vs test LOC production +9, tests +0 Eight added comment lines account for nearly all production growth; the visual declaration change itself is tightly scoped.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #121371
Summary: This PR is the focused candidate fix for the linked sidebar-hierarchy report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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:

  • [P3] Trim the CSS comment to the repository limit — ui/src/styles/layout.css:1879-1886
    The added eight-line comment is PR-specific and exceeds the root policy’s 1–3 short-line limit; it also accounts for nearly all production growth. Keep only a compact, neutral statement of the hierarchy and authored-case invariant.
    Confidence: 0.98

Overall correctness: patch is correct
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 592bf90b079c.

Labels

Label changes:

  • add P3: This is a contained sidebar legibility improvement with no functional, data, delivery, or security impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labeled UI PR is exempt from the external-contributor proof gate; its body nevertheless describes mock-gateway before/after captures.

Label justifications:

  • P3: This is a contained sidebar legibility improvement with no functional, data, delivery, or security impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labeled UI PR is exempt from the external-contributor proof gate; its body nevertheless describes mock-gateway before/after captures.

Evidence

What I checked:

Likely related people:

  • steipete: Introduced project grouping and later person grouping that share this header-rendering path. (role: feature owner; confidence: high; commits: dad377cb1f96, 360fe2317c27; files: ui/src/components/app-sidebar-session-catalog-render.ts, ui/src/lib/sessions/catalog-project-grouping.ts)
  • vincentkoc: Merged sidebar catalog and density refinements, including the related label-color behavior covered by the current E2E. (role: recent area contributor; confidence: high; commits: 87a66ddf2d1d, bb68389a663b, 14ffd4393e36; files: ui/src/styles/layout.css, ui/src/components/app-sidebar-session-catalog-render.ts, ui/src/e2e/codex-sessions.e2e.test.ts)
  • vyctorbrzezowski: Has a prior merged current-main typography fix in the same stylesheet in addition to this PR. (role: recent Control UI typography contributor; confidence: medium; commits: 0eeb1d80c341; files: ui/src/styles/layout.css)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Reduce the added CSS comment to one to three neutral invariant lines.
  • Wait for exact-head required CI before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

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
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/sidebar-group-hierarchy branch from 58b1007 to 57a6ad9 Compare August 10, 2026 04:01
@vyctorbrzezowski
vyctorbrzezowski merged commit 4354064 into main Aug 10, 2026
105 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/sidebar-group-hierarchy branch August 10, 2026 04:33
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Sidebar session-group headers render at the same weight as their session rows

1 participant