Repository navigation
improve(ui): calmer, tighter sidebar session rows - #188141
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis 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.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 65aa7f41642c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +157, Tests +43. Total +200 across 18 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 30, 2026, 2:42 AM ET / 06:42 UTC. |
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]>
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]>
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
99+. Healthy or settling cloud placement and the duplicate approval badge are hidden.+Nface.Evidence
Compared against the approved prototype by measuring computed styles element by element across all prototype states. Differences that remain on purpose:
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.Measured in the running mock:
Checks:
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, andpnpm ui:i18n:verify: all clean.Gaps:
session-row-tint.node.test.ts(idle, hover, active and selected paints in both themes) but are not in the 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
+Navatar 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.