Skip to content

improve(ui): show running state with the accent across pages - #190383

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/standardize-status-states
Nov 2, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/standardize-status-states

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

"A run is in progress" looks different from page to page. Activity paints the same fact green in its header and terracotta on the avatar. Automations uses the theme's secondary accent. Dashboards and the Sessions details panel use green, which Sessions also uses for Done. Current Work and Live activity use the warning color. The sidebar, session rings and spinners already use the accent.

User Impact

A running session or automation now reads the same on Activity, Automations, Dashboards and Sessions: the theme accent, keeping each surface's label or spinner. Green stays for healthy, enabled or finished states, amber for waiting or queued, and red for failures. Labels, sizes and layout elsewhere do not change. Dashboards' "Live" moves to the shared status component, so its text is the same quiet weight as other status labels.

In forced-colors mode, the status dots on these surfaces are now painted instead of disappearing. The Activity run dot also gets an accessible name, using the existing "Live" string.

Why This Change Was Made

Every surface was judged against what its state means, and only instances of "a run is in progress" changed. Left alone on purpose:

  • Sidebar session row states.
  • Automations' active dot (enabled and waiting, not running).
  • Presence dots.
  • Unread dots, including the terracotta dot on Sessions rows, which means unread rather than running.
  • Pull request checks, which keep the amber pending convention.
  • Settings statuses.
  • Systems machine states.
  • Meetings' "Live" capture badge.

Chat panel running states are in a separate PR. Running uses one token, --status-running, which is the theme's accent. Three themes can't use it: Beacon's accent is the same amber as waiting, CRT's is neutral white and matches plain text, and Dash light's is close to its waiting rust. Those use the theme's blue. Every other theme follows its own accent. Every changed surface keeps a non-color signal: a label or a spinner, and on the Activity avatar, a pulse and a position separate from presence.

Evidence

Mock data at 1440px and 390px, in Absolutely dark and light, CRT and Beacon. Automations' running rows come from runningAtMs set in the mock's cron data, since the mock has no running job by default.

Automations, Absolutely dark

Live activity, Absolutely light

Dashboards, Absolutely light

Sessions details, Absolutely light

Automations, CRT

Activity, Beacon

Activity, 390px

Dashboards, After in Safari

Checks: oxfmt and stylelint on touched files, pnpm tsgo:ui, and ui:check-performance:base (no failure reported). Page tests for Activity, Dashboards, Sessions and Cron and the forced-colors browser test, which gains a case for these dots, pass except for two failures that also fail on main on this machine: view.invalidation.browser.test.tsx (undo shortcut) and cron-page.delivery-conversations.test.ts.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 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:feature 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:feature Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR uses the theme accent for running states across Control UI pages and preserves status dots in forced-colors mode.

Example: Open the details for session agent:main:main while it is running.

  • Before: The Live indicator is green, sharing the color used for completed work.
  • After: The Live indicator uses the theme accent while completed work remains green.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused, owner-directed UI polish with directly inspected visual proof, shared-component reuse, and no actionable defect found.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots exercise the actual Control UI presentation with synthetic data and show the intended running-color changes in Automations, Current Work, Dashboards, and Sessions details; forced-colors behavior has supporting browser-test evidence.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Running work uses different colors across pages and sometimes shares green with completed work.
Reason: The maintainer-authored direction improves an existing visual convention at low implementation cost while retaining labels and distinct state meanings.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides focused UI consistency improvements that current main does not include, with no introduced correctness or security defect found.

Priority: P3
Reviewed head: 4a478fc11bfe6441c2eac323810a669c84e957ff

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A red-on-base result for the added forced-colors browser regression is not supplied.
Agent review details

How this fits together

Control UI page renderers consume existing session and automation state and present labels, dots, and spinners using shared status components and theme tokens.

flowchart LR
  A[Gateway session and automation state] --> B[Existing UI state owners]
  B --> C[Activity and Current Work]
  B --> D[Sessions and Dashboards]
  B --> E[Automations]
  C --> F[Shared status components and theme CSS]
  D --> F
  E --> F
Loading

Technical review

Best possible solution:

Use existing accent tokens and shared status components for running work while preserving distinct queued, completed, failure, presence, and unread meanings.

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

The ordinary-color inconsistency is directly visible in the supplied before images and supported by current-main status mappings; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The change is appropriately small: it updates presentation at existing owners, reuses SettingsStatus, removes the replaced dashboard styling, and adds no state or parallel implementation.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Dashboard Live badge changes intended behavior with a stated reason (12d6388: The dashboard gallery introduced a distinct green Live badge; subsequent Solid and owner refactors preserved its appearance.)
  • Sessions status presentation changes intended behavior with a stated reason (refactor: fold single-consumer internal owners #181769: This refactor moved the existing badge from session-status.tsx into session-row.tsx without intending a behavior change; it does not establish the original color choice.)
  • Activity and Current Work status presentation changes intended behavior with a stated reason (refactor: migrate Usage and Activity pages to Solid #168788: The Solid migration preserved existing classes and presentation; this PR explicitly changes the running-color convention while retaining queued-state semantics.)
  • Automations running indicators changes intended behavior with a stated reason (f94f945: The Automations redesign separated operational states through markers and labels while preserving scheduling behavior; this PR changes only the running color.)
  • Activity pulse running indicator changes intended behavior with a stated reason (91b223b: The Today pulse introduced a running-now summary; this PR retains that summary and aligns its dot with the running-state accent.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced hunks change presentation only, preserve queued-state precedence, and replace the custom dashboard Live badge with SettingsStatus while removing its superseded CSS. (ui/src/pages/sessions/session-row.tsx:69, 4a478fc11bfe)
  • Current-main behavior: The relevant current-main paths retain the original running-state colors; the scoped comparison against the introduction base contains no intervening changes to those paths. (ui/src/styles/cron.css:289, 7c26e8cccd19)
  • Inspected visual evidence: The four prepared images are before/after comparisons showing accent-colored running indicators in Automations, Current Work, Dashboards, and Sessions details; the captures use synthetic UI data. (4a478fc11bfe)
  • Forced-colors behavior: The shared forced-colors rule paints affected dots with CanvasText and overrides later page backgrounds; the added browser case exercises actual CSS under forced-colors emulation. (ui/src/styles/components.css:3132, 4a478fc11bfe)
  • Related work has separate scope: improve(ui): show running processes with the accent #190391 changes the Processes panel's running indicator and explicitly follows this PR; it does not replace the page changes.
  • Discussion and merge state: The discussion contains only review-status bot comments, no substantive objections; GitHub reports the reviewed head as cleanly mergeable, and supplied checks contain no failures. (4a478fc11bfe)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 06a71d7 adds ui/src/styles/cron.css:270 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 06a71d75b01e; files: ui/src/styles/cron.css)
  • Patrick Erichsen: Raw commit 12d6388 adds ui/src/styles/dashboards.css:341 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 12d6388d3ebb; files: ui/src/styles/dashboards.css)

PR surface

Source -2, Tests +26. Total +24 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 30 32 -2
Tests 1 26 0 +26
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 56 32 +24

Labels

Label changes:

  • add P3: This is localized visual consistency and accessibility polish without changes to execution, delivery, configuration, or persisted state.
  • 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 localized visual consistency and accessibility polish without changes to execution, delivery, configuration, or persisted state.
  • 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 November 1, 2026, 9:19 AM ET / 14:19 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 7456336 into main Nov 2, 2026
12 of 13 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/standardize-status-states branch November 2, 2026 14:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
…w#190383)

Use a shared running-state token across Activity, Sessions, Dashboards and Automations. Keep queued, completed and failed states distinct, preserve accessible labels, and retain forced-colors coverage.

Maintainer-authorized landing with the performance-budget exception and without waiting for remaining checks.
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