Skip to content

improve(ui): calmer, tighter sidebar session rows - #188141

Merged
vyctorbrzezowski merged 17 commits into
mainfrom
brzezowski/sidebar-session-row-rhythm
Oct 30, 2026
Merged

vyctorbrzezowski merged 17 commits into
mainfrom
brzezowski/sidebar-session-row-rhythm

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Sidebar session rows (and the Pages sidebar, which reuses them) are dense and noisy: thin rows, tinted titles, a colored stripe, up to five trailing badges, healthy-state chrome and an emoji draft marker all compete with the title.

User Impact

User impact: session and Pages rows share one calmer rhythm. Titles are easier to scan, and color and badges show up only when something needs attention or is live.

Why This Change Was Made

  • Rhythm: 32px rows with a 30px fill and no list gap. Titles keep the 13px size from main with a 20px line height, and the leading glyph and title share fixed columns. The virtual window no longer adds 2px between rows.
  • Color: a session tag tints the whole row instead of drawing a stripe. An open tagged row keeps its color one step stronger. Titles keep one tone for attention and unread; the leading icon carries the state. Red marks only a session's own failure, using the theme's danger token, and a failure inherited from a subagent stays neutral.
  • Trailing signals: badges are 14px muted icons, capped at two by urgency (attention > approval > cloud > draft > PR > incognito) and shown in reading order. Counts above 99 read 99+. Healthy or settling cloud placement and the duplicate approval badge are hidden.
  • Presence: when more than three people are viewing, the third slot becomes a stacked +N face.
  • Snooze: the snooze trail is compact (moon + time today, "Tomorrow", weekday or date); the full wake time stays in the tooltip.
  • Draft and children: a draft shows a dashed circle in an empty lead instead of 👻. Finished children drop their stale duration. A child-load failure reads inline in the child column.
  • Pages: page links and pinned sessions use the same 30/32 rhythm, the same 15px muted icons and the same title column. Hover and selection fill without hairline borders.
  • Smaller pieces: an 8px unread dot, a lighter progress ring track, a thinner title skeleton, a 24px truncation fade, and a straight 2px drop line.

Evidence

Compared against the approved prototype by measuring computed styles element by element across all prototype states. Differences that remain on purpose:

  • A failed cloud badge stays red. The prototype's cascade muted it by accident.
  • Elapsed time on a tagged row keeps the readable muted tone, so it stays above AA contrast.
  • Rows are 32px with a 30px fill and no list gap, so the virtual window no longer adds 2px between rows.
  • Running and failed child toggles are muted, matching the prototype.

Captured on the mocked Control UI (pnpm dev:ui:mock), with main on the left and this branch on the right. The flow is "All owners", then pin a session through the row action.

Before After
Sessions · dark
Sessions · light
Pages · dark
Pages · light
Row hover · dark

Measured in the running mock:

  • Session rows: 32px tall with a 30px fill, 10px squircle, glyph center x=30, title x=48.
  • Pages links and pinned sessions: 30px on a 32px step, icon center x=27, title x=45, both kinds aligned.

Checks:

  • Focused tests: session-row-tint.node, session-row-badges, viewer-facepile, session-hovercard, app-sidebar-rail, app-sidebar-session-row-render, session-snooze (132 passed).
  • pnpm tsgo:ui, oxlint and oxfmt on the touched files, stylelint on the touched CSS, and pnpm ui:i18n:verify: all clean.

Gaps:

  • The mock has no tagged sessions, and its color submenu could not be driven headlessly. Tagged-row fills are covered by session-row-tint.node.test.ts (idle, hover, active and selected paints in both themes) but are not in the captures.
  • Snooze, draft and badge-cap states are covered by unit tests, not captures.

Landing verification

The follow-up repair keeps a pending approval visible when an older child question owns the leading icon, keeps an active tagged Pages row tinted while hovering its pin, and preserves readable +N avatar counters in every theme. Duplicate CSS declarations were consolidated without changing the approved row dimensions.

Validation: 121 focused unit tests, 18 form-control cases, 5 glyph geometry cases, 98 owner-avatar browser cases, and 3 cloud-placement/Workboard E2E cases passed. The new mixed-attention regression failed before the repair and passed after it. Existing overflow checks demonstrated the counter defect; all 98 now pass. UI production/test typechecks, touched-file lint/format, stylelint, and the test-line budget passed. Independent review found no remaining P0–P2 issues in the repair.

The CSS-only asset budget remains exceeded after consolidation (302.1 KiB gzip against a 301.6 KiB base allowance; 1561.0 KiB raw against 1560.2 KiB). The maintainer authorized this CSS-only exception; no limit was raised. All other required checks remain required.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as draft October 30, 2026 06:25
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR adjusts sidebar row spacing, colors, icons, badges, viewer overflow, and snooze labels across Sessions and Pages.

Example: A sidebar row has 140 messages needing attention, an unsent draft, two pull requests, and Incognito enabled.

  • Before: All four trailing indicators appear with the full attention count.
  • After: Only attention and draft indicators appear, with attention displayed as 99+ and its accessible label retaining 140.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful browser evidence supports the redesign, but a hidden approval signal and confirmed diff-caused CI failures prevent a clean verdict.
Proof confidence 🐚 platinum hermit (4/6) The ordinary contributor proof gate does not apply to this maintainer-authored PR; inspected running-UI screenshots demonstrate Sessions, Pages, and hover presentation, while tagged, snooze, draft, and badge-cap states remain uncaptured.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Competing colors, glyphs, badges, and spacing make sidebar session titles harder to scan.
Reason: Maintainer authorship establishes direction approval, and inspected screenshots demonstrate a coherent presentation improvement using existing owners.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep this maintainer-authored draft open; its approved direction has useful visual evidence, but the patch needs correctness and CI repairs.

Priority: P2
Reviewed head: c03af2ffad1456a59501d849791c7cafa2cefef5

Before merge

  • Preserve approval badges when a child's question owns the leading icon (P2) - For a list-mode parent with its own approval request and an older question from a child, tree projection sets ownAttention to approval but aggregated attention to question. The leading renderer uses aggregated attention, while this rule uses ownAttention and now returns no approval badge. The question tooltip filters out approval requests, so the parent's pending approval loses its visible signal. Deduplicate only when the rendered leading state actually represents the approval, and cover this mixed parent/child case.
  • Update the cloud-placement E2E for hidden healthy badges (P2) - An active placement without disk warnings now has no cloud badge, but cloud-session-placement-identity.e2e.test.ts:83 still waits for that badge's aria-label. The exact-head hosted check fails with a 30-second locator timeout at this assertion. Update the consumer test to expect the hidden healthy badge while retaining its placement-menu and hovercard identity checks.
  • Consolidate the added CSS within the existing asset allowance (P2) - The stylesheet additions make the exact-head control-ui-performance check fail: total CSS gzip is reported as 301.8 KiB against the permitted 301.6 KiB. The base already exceeds the fixed ceiling, so the existing policy allows only 64 bytes of build variance rather than further growth. Fold and deduplicate the new styling within its existing owners until the base-comparison check passes; raising the budget would require separate owner approval.
  • Keep the tag fill when hovering the Pages pin (P3) - For an active tagged session in Pages, hovering the row applies the new colored active-hover fill. Moving onto its sibling pin stops the row's :hover selector, while this parent-hover rule applies the neutral surface-selected-hover fill. With the stripe removed, the tag color disappears while the pointer remains inside the same painted entry. Make parent and row hover consume the same colored active surface.

Findings

  • [P2] Preserve approval badges when a child's question owns the leading icon — ui/src/components/session-row-badge-presentation.ts:26-29
  • [P2] Update the cloud-placement E2E for hidden healthy badges — ui/src/components/session-row-badge-presentation.ts:87-93
  • [P2] Consolidate the added CSS within the existing asset allowance — ui/src/styles/layout.css:1074-1078

Tests

  • Missing end-to-end proof: The supplied captures do not exercise mixed parent/child attention or tagged Pages pin-hover behavior, and no base-red/head-green regression for those cases is shown.
Agent review details

How this fits together

The Control UI projects Gateway session, attention, placement, and presence facts into shared sidebar renderers that produce Session and Pages rows.

flowchart LR
  Gateway[Gateway session facts] --> Projection[Sidebar projection]
  Presence[Presence facts] --> Rows[Shared row renderer]
  Projection --> Badges[Badge presentation]
  Projection --> Rows
  Badges --> Rows
  Rows --> Sidebar[Sessions and Pages sidebar]
Loading

Technical review

Best possible solution:

Keep the existing presentation owners, preserve necessary approval and tag signals, update the cloud E2E, and consolidate CSS within the existing budget.

Do we have a high-confidence way to reproduce the issue?

The mixed-attention failure follows directly through the tree, leading-icon, and badge owners; hosted annotations independently establish the cloud E2E and CSS-budget failures, without executing target code.

Is this the best way to solve the issue?

The redesign appropriately reuses existing renderers and presentation helpers, but approval deduplication must follow the icon actually shown and affected consumers must adopt the intended behavior.

Full review comments:

  • [P2] Preserve approval badges when a child's question owns the leading icon — ui/src/components/session-row-badge-presentation.ts:26-29
    For a list-mode parent with its own approval request and an older question from a child, tree projection sets ownAttention to approval but aggregated attention to question. The leading renderer uses aggregated attention, while this rule uses ownAttention and now returns no approval badge. The question tooltip filters out approval requests, so the parent's pending approval loses its visible signal. Deduplicate only when the rendered leading state actually represents the approval, and cover this mixed parent/child case.
    Confidence: 0.99
  • [P2] Update the cloud-placement E2E for hidden healthy badges — ui/src/components/session-row-badge-presentation.ts:87-93
    An active placement without disk warnings now has no cloud badge, but cloud-session-placement-identity.e2e.test.ts:83 still waits for that badge's aria-label. The exact-head hosted check fails with a 30-second locator timeout at this assertion. Update the consumer test to expect the hidden healthy badge while retaining its placement-menu and hovercard identity checks.
    Confidence: 1
  • [P2] Consolidate the added CSS within the existing asset allowance — ui/src/styles/layout.css:1074-1078
    The stylesheet additions make the exact-head control-ui-performance check fail: total CSS gzip is reported as 301.8 KiB against the permitted 301.6 KiB. The base already exceeds the fixed ceiling, so the existing policy allows only 64 bytes of build variance rather than further growth. Fold and deduplicate the new styling within its existing owners until the base-comparison check passes; raising the budget would require separate owner approval.
    Confidence: 0.99
  • [P3] Keep the tag fill when hovering the Pages pin — ui/src/styles/sidebar-rail.css:479-480
    For an active tagged session in Pages, hovering the row applies the new colored active-hover fill. Moving onto its sibling pin stops the row's :hover selector, while this parent-hover rule applies the neutral surface-selected-hover fill. With the stripe removed, the tag color disappears while the pointer remains inside the same painted entry. Make parent and row hover consume the same colored active surface.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 65aa7f41642c.

Provenance checked

  • Session colors and row surfaces changes intended behavior with a stated reason (01b7ffe: Tinted row surfaces made session tags easier to scan; subsequent inset painting preserved separation between neighboring fills.)
  • Pages hover and selection changes intended behavior with a stated reason (a9787f1: The session row owns the surface extended across the Pages pin so tag and selection paint remain unified.)
  • Badge facts and cached presentation keeps the original intent (58a6f9d: Shared badge facts preserve sidebar presentation through cached-to-live handoff.)
  • Cloud placement indicators changes intended behavior with a stated reason (4f0e131: Sidebar placement indicators expose cloud session location and lifecycle state.)
  • Viewer facepile keeps the original intent (5c99169: Viewer avatars and overflow expose who else is watching a shared session.)
  • Snooze labels keeps the original intent (d63df96: Wake labels explain when parked sessions return; the patch retains full timing in tooltips and existing callers.)
  • Draft marker changes intended behavior with a stated reason (cbf94c0: Draft styling distinguishes private drafts, including administrator views of another owner's draft.)
  • Naming placeholder keeps the original intent (bad3d63: A stable skeleton bar replaced a distorted placeholder while preserving naming lifecycle and reduced-motion behavior.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/components/app-sidebar-session-row-render.test.tsx ui/src/components/session-row-badges.test.ts --maxWorkers=1
  • pnpm test ui/src/styles/session-row-tint.node.test.ts --maxWorkers=1
  • pnpm test:ui:e2e ui/src/e2e/cloud-session-placement-identity.e2e.test.ts
  • pnpm ui:check-performance:base 2ab9447
  • pnpm tsgo:ui

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 58a6f9d adds ui/src/components/session-row-badge-presentation.ts:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 58a6f9d5b964; files: ui/src/components/session-row-badge-presentation.ts)

PR surface

Source +157, Tests +43. Total +200 across 18 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 14 322 165 +157
Tests 4 52 9 +43
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 374 174 +200

Labels

Label changes:

  • add P2: The patch can hide a pending approval signal and has focused, repairable UI validation failures.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The patch can hide a pending approval signal and has focused, repairable UI validation failures.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 2:42 AM ET / 06:42 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 30, 2026 08:56
@vyctorbrzezowski
vyctorbrzezowski merged commit a1d62cf into main Oct 30, 2026
89 of 92 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/sidebar-session-row-rhythm branch October 30, 2026 10:26
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
Apply the approved sidebar session-row presentation while preserving pending approval signals, tagged Pages pin-hover paint, and readable owner counters.

Validated with focused unit, browser and E2E coverage, production/test typechecks, scoped lint/format and independent review. All other applicable checks on 20fe67c passed. The maintainer approved the CSS-only budget exception; no asset limits were changed.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 17, 2026
Narrow backport of a1d62cf (#188141): select aggregate row attention without redesigning rows or changing team rendering. Added regression fails on base; all nine snapshot-owner tests pass. Before/after screenshots remain a qualification gap.

Co-authored-by: RomneyDa <[email protected]>
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant