Skip to content

improve(ui): restore PR and worker colors on session rows - #189526

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/session-pr-icon-colors
Oct 31, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/session-pr-icon-colors

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

What Problem This Solves

Session rows in the sidebar stopped coloring pull request icons, so open, merged and closed look alike at a glance. Rows also stopped showing that a session runs on a worker unless the worker had a problem.

User Impact

PR state reads from color again in the sidebar, and sessions running on a worker are marked again.

Why This Change Was Made

  • PR icons: open uses --ok, merged --pr-merged, closed --danger. Draft stays muted.
  • Worker icon: it shows again in every worker state, in --accent instead of the earlier green and accent mix. Failed still uses --danger; low disk and workspace conflicts keep their existing colors.
  • Badge limit: rows still show two badges. A healthy worker now ranks below the PR, so a draft, a PR and a healthy worker keep the draft and the PR. A failed worker still outranks the PR, as it does today.
  • Selectors: the color rules use the bare data attributes to stay within the CSS size budget. Only session row badges set these attributes. .session-row-badge left the muted rule because it inherits that color from its group.

Evidence

Real components rendered from data at the mock Gateway layer, in Chromium. Nothing was inserted into or hidden in the rendered page.

  • Rows and worker states: extra rows with a placement in the session-design fixture's sessions.list data, not committed.
  • PR states: the fixture's controlUi.sessionPullRequests.subscribe response, not committed. Its handler was also changed locally to answer passiveSessionKeys, which the sidebar uses and the fixture ignored.
  • Theme: applied by loading the theme stylesheet and setting the theme attributes on the document after load.

Before and after, Absolutely

Dark Light
Before
After
After, 390 px

After, CRT and Beacon

CRT dark CRT light Beacon dark Beacon light

Computed icon color

State Absolutely dark Absolutely light CRT dark CRT light Beacon dark Beacon light
Open, and open with a count of 2 rgb(34, 197, 94) rgb(22, 101, 52) rgb(34, 197, 94) rgb(22, 101, 52) rgb(94, 232, 138) rgb(12, 80, 36)
Merged rgb(167, 139, 250) rgb(124, 58, 237) rgb(167, 139, 250) rgb(124, 58, 237) rgb(167, 139, 250) rgb(124, 58, 237)
Closed rgb(248, 113, 113) rgb(185, 28, 28) rgb(248, 113, 113) rgb(185, 28, 28) rgb(255, 171, 171) rgb(140, 15, 15)
Worker active, provisioning, syncing rgb(217, 119, 87) rgb(204, 125, 93) rgb(232, 232, 232) rgb(31, 31, 31) rgb(255, 194, 51) rgb(110, 74, 0)
Worker failed rgb(248, 113, 113) rgb(185, 28, 28) rgb(248, 113, 113) rgb(185, 28, 28) rgb(255, 171, 171) rgb(140, 15, 15)

Draft resolves to the muted color in every theme. Colors at 390 px match desktop in Absolutely.

Checks

Run on the final code:

Check Result
session-row-badges, app-sidebar-session-pr-indicators, app-sidebar-session-row-render, app-sidebar-session-navigation-logic 87 passed
All src/components/app-sidebar* tests 831 passed, 5 failed (app-sidebar.stress.browser, same 5 fail on the base commit)
E2E cloud-session-placement-identity, session-management.trailing-state, chat-flow.sidebar-presentation 12 passed
tsgo:ui, lint:ui:styles, oxfmt, oxlint pass
ui:check-performance:base pass

Full suites were not run.

Known gaps

  • In Absolutely dark, a failed worker (rgb(248, 113, 113)) and a healthy one (rgb(217, 119, 87)) are close in hue and share the same globe icon.
  • CRT's accent is neutral, so its healthy worker icon reads white or black rather than tinted.
  • Low disk and workspace conflict colors, and the badge limit with a real draft or attention count, were not captured; the limit is covered by unit tests.
  • app-sidebar.stress.browser.test.ts fails 5 of 8 tests both with and without this change.
  • Hover and selected rows, RTL, WebKit and real devices were not checked.
  • The first page load of one capture logged the fixture's own "Session design queue requires the same-origin mock Gateway" error; the rows rendered normally.

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

clawsweeper Bot commented Oct 31, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR restores state colors to pull request badges and shows healthy worker badges while preserving the two-badge limit.

Example: A sidebar session has an open pull request and an active worker.

  • Before: The PR icon is muted and the healthy worker badge is hidden.
  • After: The PR icon is green and an accent-colored worker badge appears beside it.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused, owner-directed presentation changes with directly inspected visual proof, meaningful badge-selection coverage, and successful exact-head CI.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium screenshots exercise the real Control UI badge renderer and CSS with Gateway-layer fixtures, showing PR state colors and worker visibility before and after in light and dark themes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Users cannot distinguish PR state by color or see healthy worker placement directly in a session row.
Reason: The earlier behavior was intentional, but this maintainer-authored PR records a clear adjustment by the same recent area contributor and demonstrates the resulting visual improvement.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored presentation adjustment remains absent from main, has clear visual evidence, and introduces no actionable defect.

Priority: P3
Reviewed head: 2a81fd8176466d3e575be72fc32dcfb4d759ed1a

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No red-on-base run of the changed badge tests is recorded; the inspected browser captures establish the visible before/after behavior.
Agent review details

How this fits together

The Control UI converts session placement and pull request facts into ranked badges, then renders their icons and applies theme colors.

flowchart LR
  A[Gateway session facts] --> B[Sidebar presentation]
  B --> C[Badge resolver]
  C --> D[Two badge selection]
  D --> E[Session row renderer]
  F[Theme tokens] --> E
Loading

Technical review

Best possible solution:

Use the existing badge resolver and theme tokens to restore recognizable PR and worker signals without adding another presentation path.

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

Current main explicitly hides healthy placements and mutes PR badges; the inspected before screenshots independently show both behaviors.

Is this the best way to solve the issue?

The change is focused: it updates the existing visibility filter, badge ranking, and CSS cascade while retaining urgent signals, child suppression, and the two-badge cap.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • PR colors and healthy-worker visibility changes intended behavior with a stated reason (a1d62cf: Reduce sidebar noise by muting passive badges and hiding expected healthy placement.)
  • Badge selection priority keeps the original intent (a1d62cf: Keep at most two badges, favor actionable signals, and preserve reading order.)
  • Worker failure, disk, and workspace-conflict colors keeps the original intent (21d59e1: Surface worker health warnings before filesystem exhaustion disrupts work; the existing warning precedence remains intact.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned change and current main: The introduced diff changes badge visibility, ranking, colors, and their existing tests; the touched files are unchanged between the merge base and fetched main. (ui/src/components/session-row-badge-presentation.ts:85, cb06c051a505)
  • Earlier design and owner direction: improve(ui): calmer, tighter sidebar session rows #188141 intentionally muted PR badges and hid healthy workers to reduce sidebar noise; its author also authored this PR and explicitly explains restoring those signals. (ui/src/components/session-row-badge-presentation.ts:85, a1d62cfc56c1)
  • Inspected visual proof: Downloaded before/after Chromium screenshots show muted versus colored PR states, restored active/provisioning/syncing worker icons, preserved red failures, and combined PR/worker rows in light and dark themes. (2a81fd817646)
  • Existing rendering owner: SessionRowBadges already emits the state attributes consumed by the CSS; source searches found no competing production emitter for these attributes. (ui/src/components/solid/session-presentation.tsx:199, 2a81fd817646)
  • Exact-head checks and mergeability: GitHub reports the reviewed head mergeable and clean; its CI gate, UI shards, UI E2E, lint, typechecks, and performance check succeeded, with no failed checks reported. (2a81fd817646)
  • Inspection limits: An older creation-commit inspection encountered unavailable lazy-fetched objects, and the installed Solid cheat sheet was absent; the pinned diff, recent redesign, current source, earlier-name history, and supplied screenshots were readable.

PR surface

Source +15, Tests +20. Total +35 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 36 21 +15
Tests 2 25 5 +20
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 61 26 +35

Labels

Label changes:

  • add P3: This is a bounded sidebar readability improvement; session execution and navigation remain available.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a bounded sidebar readability improvement; session execution and navigation remain available.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • 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 31, 2026, 12:15 PM ET / 16:15 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit e8621de into main Oct 31, 2026
101 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/session-pr-icon-colors branch October 31, 2026 17:49
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 31, 2026
…189696)

* test(ui): align disk badges and Review loading checks

Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file.

* test(ui): keep Review request assertions type-safe

* fix(test): allow offline placement recovery reload

* fix(test): retain automation row contract after reload
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
…penclaw#189696)

* test(ui): align disk badges and Review loading checks

Update the disk-pressure scenario for healthy worker badges restored in openclaw#189526. Keep Environment summary reads separate from the deferred Review patch request introduced in openclaw#189571, and assert the rendered patch after opening its file.

* test(ui): keep Review request assertions type-safe

* fix(test): allow offline placement recovery reload

* fix(test): retain automation row contract after reload
tideclaw-bot pushed a commit that referenced this pull request Nov 3, 2026
…189696)

* test(ui): align disk badges and Review loading checks

Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file.

* test(ui): keep Review request assertions type-safe

* fix(test): allow offline placement recovery reload

* fix(test): retain automation row contract after reload

(cherry picked from commit 01ac91c)
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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.

1 participant