Skip to content

fix(ui): use semantic foregrounds for secondary and selected controls - #183401

Merged
vyctorbrzezowski merged 8 commits into
mainfrom
brzezowski/visual-05-foreground-roles-20261025
Oct 25, 2026
Merged

vyctorbrzezowski merged 8 commits into
mainfrom
brzezowski/visual-05-foreground-roles-20261025

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Give secondary controls consistent resting foregrounds and clear active states. Header and composer controls use shared text/icon roles, selected Settings icons use the active neutral foreground, and destructive actions retain their semantic color.

Visual comparison

Before: main at 866f693e95e4d0bf8779b18ddd722ea51cb72459. After: this PR at 49448f5f54831cd422138d5fba7523f10a72afb4. The same native Claw themes and fixtures are used on both sides, with no style overrides. These comparisons show foreground color and emphasis.

Header and composer

Light header and composer foregrounds
Dark header and composer foregrounds

Selected Settings item

Light selected Settings foreground
Dark selected Settings foreground

Mobile light at the final PR head

Final mobile foregrounds

Validation

Four focused screenshot scenarios passed on each source tree, covering Claw light/dark chat and Settings; the After run also captured an unobscured mobile composer. The Claw light/dark desktop and mobile action-state cases and the sharing-directory scroll case passed (3/3), with no review findings. The raw CSS build is 1,595,382 bytes, below the 1,595,719-byte cap. Gzip CSS is 307,880 bytes versus 307,482 on the base; only the 64-byte growth allowance is exceeded. Final-head GitHub checks remain required.

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

clawsweeper Bot commented Oct 25, 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 25, 2026
@clawsweeper

clawsweeper Bot commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR gives secondary icons shared foreground roles and makes selected controls use strong neutral colors.

Example: Open Details in the Claw light theme.

  • Before: The selected Details icon uses an accent-tinted foreground.
  • After: The selected icon uses the theme’s strong neutral foreground.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused styling work with inspected desktop media, but an existing consumer test contract is broken and the acknowledged mobile dependency remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Partial
User problem: Adjacent controls use inconsistent visual emphasis, and selected controls compete with status and accent colors.
Reason: The maintainer-author supplies the direction for changing the previous visual hierarchy, and existing token owners accommodate it without new runtime machinery.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR provides a useful visual consistency improvement, but existing catalog tests contradict the new opacity contract and the author explicitly retains a dependency hold.

Priority: P3
Reviewed head: 596ab12f354c6f3ae154de51bc1a28252a99136e

Before merge

  • Update the existing catalog tests for the new opacity contract (P2) - The new token makes revealed group actions and enabled toolbar buttons render with opacity 1, but ui/src/e2e/claude-sessions.e2e.test.ts still requires both values to be 0.55 in its desktop-hover case at lines 175/183 and touch case at lines 254/259. Those assertions now contradict the CSS and will fail when the existing suite runs. Update these consumer expectations while retaining the hidden-state, keyboard-focus, touch visibility, and matching-color checks, then run that suite alongside the new foreground coverage.

Findings

  • [P2] Update the existing catalog tests for the new opacity contract — ui/src/styles/layout.css:1647

Tests

  • Low-value test ui/src/e2e/control-foreground.e2e.test.ts: Remove the assertion that the theme-editor href equals its unchanged static destination; it catches no foreground regression.
  • Missing end-to-end proof: After the icon-inheritance dependency is integrated, show mobile Chat and New Session microphone and attachment foregrounds through the real UI; the current body explicitly leaves that scenario unproven.
Agent review details

How this fits together

Control UI theme tokens feed shared styles for navigation, session headers, panels, the composer, and settings, determining their rendered text and SVG colors.

flowchart LR
  A[Appearance selection] --> B[Theme tokens]
  B --> C[Shared foreground roles]
  C --> D[Navigation and headers]
  C --> E[Panels and composer]
  B --> F[Semantic status colors]
  D --> G[Rendered controls]
  E --> G
  F --> G
Loading

Technical review

Best possible solution:

Retain the shared foreground roles, update the existing catalog affordance tests, and complete mobile inheritance through the already-owned dependency.

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

Current-main CSS independently assigns accent colors and opacity across these controls, and the inspected screenshots corroborate the visible differences; no target code was executed during this review.

Is this the best way to solve the issue?

Shared tokens in the existing stylesheet owners are a focused solution, with explicit exceptions preserving Public, warning, and destructive semantics.

Full review comments:

  • [P2] Update the existing catalog tests for the new opacity contract — ui/src/styles/layout.css:1647
    The new token makes revealed group actions and enabled toolbar buttons render with opacity 1, but ui/src/e2e/claude-sessions.e2e.test.ts still requires both values to be 0.55 in its desktop-hover case at lines 175/183 and touch case at lines 254/259. Those assertions now contradict the CSS and will fail when the existing suite runs. Update these consumer expectations while retaining the hidden-state, keyboard-focus, touch visibility, and matching-color checks, then run that suite alongside the new foreground coverage.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Sidebar rail and shared header foregrounds changes intended behavior with a stated reason (d9a9cae: Rail unification deliberately used quieter resting controls; the new shared hierarchy preserves that purpose while changing its color mechanism.)
  • Shared rail selected-action colors changes intended behavior with a stated reason (f73b436: The rail refactor centralized header geometry and interaction colors; this PR retains that owner and deliberately replaces accent selection with strong neutral ink.)
  • Sidebar group action opacity changes intended behavior with a stated reason (92cf1e5: Group actions were dimmed to match neighboring toolbar actions; shared translucent foregrounds now replace the separate dimming.)
  • Composer and startup style extraction changes intended behavior with a stated reason (debc712: The earlier extraction moved styles while preserving behavior; this PR keeps those owners and intentionally changes their foreground roles.)
  • Settings selected navigation and import links changes intended behavior with a stated reason (9269a27: Settings takeover established grouped navigation and active states; the current change retains those interactions while adopting neutral selected icons.)
  • Page title accent changes intended behavior with a stated reason (48279dc: UI: apply accent color to Settings page header and content headings #52606 deliberately applied the theme accent to settings titles; the current maintainer-directed foreground change returns page titles to strong neutral text.)
  • Session panels and empty states keeps the original intent (43ff445: Shared opt-in presentation primitives prevented duplicated panel styling; the patch continues using those owners and preserves destructive Stop coloring.)
  • Global anchor foreground changes intended behavior with a stated reason (9fbee08: The earlier design refresh used the signature accent for anchors; this PR adopts the existing readable link token already used by transcript links.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test:ui:e2e ui/src/e2e/claude-sessions.e2e.test.ts ui/src/e2e/control-foreground.e2e.test.ts ui/src/e2e/subagents-panel.e2e.test.ts
  • git diff --check

What I checked:

PR surface

Source +73, Tests +399. Total +472 across 16 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 14 122 49 +73
Tests 2 399 0 +399
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 521 49 +472

Review metrics

Metric Value Why it matters
Production versus test LOC Production +122/-49; tests +399/-0 Production growth introduces shared CSS roles and state-specific consumers; browser coverage and opt-in capture scaffolding exercise the cascade, although an existing consumer suite still needs adjustment.

Labels

Label changes:

  • add P3: This is visual hierarchy and consistency work without an established blocked messaging, setup, or recovery flow.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is visual hierarchy and consistency work without an established blocked messaging, setup, or recovery flow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rank-up moves

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

  • Demonstrate mobile Chat and New Session foreground inheritance after the linked dependency is integrated.

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 25, 2026, 3:54 AM ET / 07:54 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 25, 2026 13:37
@vyctorbrzezowski
vyctorbrzezowski merged commit dafa0f3 into main Oct 25, 2026
83 of 86 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/visual-05-foreground-roles-20261025 branch October 25, 2026 22:56
vyctorbrzezowski added a commit that referenced this pull request Oct 25, 2026
Keep hover, keyboard focus, touch, and pointer-event checks while allowing the approved icon color treatment from #183401. Main CI 40244957654 failed on obsolete opacity expectations. All 7 catalog browser tests pass with this change.
vyctorbrzezowski added a commit that referenced this pull request Oct 26, 2026
…183972)

Keep hover, keyboard focus, touch, and pointer-event checks while allowing the approved icon color treatment from #183401. Main CI 40244957654 failed on obsolete opacity expectations. All 7 catalog browser tests pass with this change.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…openclaw#183401)

Apply consistent foreground roles to controls while preserving active, disabled, and destructive states. Consolidate repeated desktop selectors without changing their styling.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…penclaw#183972)

Keep hover, keyboard focus, touch, and pointer-event checks while allowing the approved icon color treatment from openclaw#183401. Main CI 40244957654 failed on obsolete opacity expectations. All 7 catalog browser tests pass with this change.
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL 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