Skip to content

fix(ui): stroke new-session target icons instead of black fills - #106193

Merged
steipete merged 1 commit into
mainfrom
new-session-target-icons
Jul 13, 2026
Merged

steipete merged 1 commit into
mainfrom
new-session-target-icons

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The start-screen ("New session") target row chips — agent, workspace folder, and gateway/device — rendered their Lucide icons as solid black blobs. ui/src/styles/new-session.css sized the SVGs but never set stroke: currentColor; fill: none, so the path-only icon templates fell back to the SVG default (black fill, no stroke). In dark mode the icons were nearly invisible; in light mode they read as filled blobs instead of the outline icon style used everywhere else in the Control UI.

Why This Change Was Made

The icon templates in ui/src/components/icons.ts carry bare paths and rely on each consumer to apply the shared stroke rules (see .session-menu__icon svg in ui/src/styles/layout.css). The new-session page missed that rule for its three icon containers.

User Impact

Agent/workspace/gateway chips on the start screen, plus the folder-browser icons (back arrow, close, device and folder rows), now render as proper outline icons that follow currentColor — muted by default, text color on hover — in both light and dark themes.

Before (dark):

before dark

After (dark):

after dark

After (light):

after light

Evidence

  • CSS-only change: consolidated .new-session-page__trigger-chevron svg, .new-session-page__target-icon svg, and .new-session-page__browser-nav svg into one rule with stroke: currentColor; fill: none; stroke-width: 1.7px (matching the shared .session-menu__* icon rules); the chevron keeps its 12px override.
  • Verified in the mock Control UI harness (pnpm dev:ui:mock) on /new in dark and light color schemes: trigger chips, the "Where" menu, and the folder browser all render outline icons (screenshots above).
  • git diff --check clean; autoreview (Codex gpt-5.6-sol) clean: "no accepted/actionable findings".

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 13, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 5:09 AM ET / 09:09 UTC.

Summary
The PR adds shared SVG stroke styling for new-session target, chevron, and browser-navigation icons so they render as current-color outlines instead of default black fills.

PR surface: Source +4. Total +4 across 1 file.

Reproducibility: yes. The supplied before-dark screenshot shows the black-fill symptom, and the dark/light after screenshots from the same mock Control UI /new flow show the corrected outlines.

Review metrics: none identified.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Refresh the branch against current main and confirm the same /new screenshots still represent the final merge result.

Risk before merge

  • [P1] GitHub reports the branch is behind current main, so the final merged stylesheet should be refreshed and visually rechecked for intervening new-session styling changes.

Maintainer options:

  1. Decide the mitigation before merge
    Refresh the branch onto current main and land the shared consumer-side SVG rule after the Control UI owner confirms the supplied dark/light screenshots still match the merge result.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No automated repair is needed; the patch has no actionable defect and only needs routine base refresh and Control UI owner review.

Security
Cleared: The single stylesheet change adds no dependency, execution, permission, secret, network, or supply-chain surface.

Review details

Best possible solution:

Refresh the branch onto current main and land the shared consumer-side SVG rule after the Control UI owner confirms the supplied dark/light screenshots still match the merge result.

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

Yes. The supplied before-dark screenshot shows the black-fill symptom, and the dark/light after screenshots from the same mock Control UI /new flow show the corrected outlines.

Is this the best way to solve the issue?

Yes. Applying the established stroke contract at the three new-session icon consumer containers is narrower and safer than changing shared icon templates, which could alter unrelated consumers.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 22daf8f23424.

Label changes

Label changes:

  • add P3: This is a low-risk, narrowly scoped visual polish fix for incorrect icon rendering with no runtime or data impact.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR includes direct before-and-after Control UI screenshots from the changed /new flow in dark and light themes, clearly showing the observed visual improvement.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR includes direct before-and-after Control UI screenshots from the changed /new flow in dark and light themes, clearly showing the observed visual improvement.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR includes direct before-and-after Control UI screenshots from the changed /new flow in dark and light themes, clearly showing the observed visual improvement.

Label justifications:

  • P3: This is a low-risk, narrowly scoped visual polish fix for incorrect icon rendering with no runtime or data impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR includes direct before-and-after Control UI screenshots from the changed /new flow in dark and light themes, clearly showing the observed visual improvement.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR includes direct before-and-after Control UI screenshots from the changed /new flow in dark and light themes, clearly showing the observed visual improvement.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR includes direct before-and-after Control UI screenshots from the changed /new flow in dark and light themes, clearly showing the observed visual improvement.
Evidence reviewed

PR surface:

Source +4. Total +4 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 14 10 +4
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 14 10 +4

What I checked:

  • Current-main defect path: At current main, the new-session stylesheet sizes the affected SVGs but does not set stroke or fill, allowing path-only icon templates to use the SVG default black fill. (ui/src/styles/new-session.css:109, 22daf8f23424)
  • Focused fix: The PR head consolidates the three affected SVG containers under one rule that applies currentColor strokes, no fill, rounded joins/caps, and the established 14px sizing while retaining the chevron's 12px override. (ui/src/styles/new-session.css:109, fba0093b2fd1)
  • Sibling styling contract: Existing Control UI icon consumers apply stroke: currentColor, fill: none, stroke width, line caps, and line joins to the same path-based icon templates, supporting this local consumer-side fix. (ui/src/styles/layout.css, 22daf8f23424)
  • Real behavior proof: The PR body supplies a before-dark screenshot and after screenshots for both dark and light themes from the mock Control UI /new flow, directly demonstrating the corrected icon appearance. (fba0093b2fd1)
  • Validation state: The Control UI check, lint, production types, build artifacts, security checks, QA smoke profiles, and real behavior proof checks completed successfully on the reviewed head. (fba0093b2fd1)
  • UI contribution policy: The repository contribution guide requests before-and-after screenshots for visual UI changes, and this PR provides that evidence; it also identifies @velvet-shark with Control UI ownership. (CONTRIBUTING.md, 22daf8f23424)

Likely related people:

  • velvet-shark: The repository contribution guide explicitly assigns Radek Sienkiewicz responsibility for Control UI work, making this the clearest routing owner for the visual styling change. (role: Control UI owner; confidence: high; files: ui/src/styles/new-session.css, ui/src/styles/layout.css, ui/src/components/icons.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 8e0c82b into main Jul 13, 2026
139 of 149 checks passed
@steipete
steipete deleted the new-session-target-icons branch July 13, 2026 09:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 maintainer Maintainer-authored PR 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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