Skip to content

improve(ui): fill the current navigation item's icon - #199822

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/side-rail-02-nav-icons
Nov 17, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/side-rail-02-nav-icons

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Several navigation sections have no icon of their own, and the current item is hard to spot in the rail.

User Impact

Every navigation section has an icon, and the current one shows filled. Plugin pages (Knowledge, Workboard, X, ClawRouter, OpenClaw ID) declare a filled variant too.

Why This Change Was Made

Adds the section icons and a filled variant the rail and menus use for the current route; the bundled plugins that contribute navigation pass their filled icon. Touches plugin-owned files, so their owners review those lines.

Evidence

Screenshots come from the Control UI mock at the end of the series, so the after image can show later parts too.

Rail before and after (left: main, right: after):

Rail before and after

  • pnpm tsgo:ui passes at this PR's head.
  • The unit tests of the files this PR touches pass at its head; the full UI unit suite passes at the end of the series (one failure also on main: a Workboard German relative-time string, "vor 1min", from the local ICU).
  • Local autoreview (Codex) over the whole series; its three findings are fixed in this series.
  • The full UI e2e suite was not run locally.

Update: Automations icon

Automations is now a clock: the outline at rest, and a filled disc with cut-out hands on its own page. The bolt badge is gone. Only the icon data changed; pnpm tsgo:ui passes.

Side rail series, part 1 of 16. Based on main.

Maintainer verification

Reviewed the rebased navigation stack while preserving the maintainer-approved design. Removed the added test that asserted SVG implementation details; the useful SVG ID-isolation and navigation tests remain. The focused icon/navigation run passed 36 tests. The integrated stack passed 558 unit/browser tests and 20 bundled browser E2E cases, and the independent code review found no actionable P0–P2 issues. The integrated runs preceded only the final removal of unused wiring and fixtures, which received focused checks.

Approved JS byte ceilings

Vyctor approved adjusting only the measured JavaScript byte ceilings for this navigation stack. Each cap adds this layer's paired feature cost to the original main cap, preserving the headroom that main already had without adding another margin.

Metric Paired feature cost (gzip bytes) Previous main cap New cap
Largest JS asset +2,369 572,440 574,809
Chat boot JS +2,371 1,325,580 1,327,951
New Session boot JS +2,371 816,632 819,003

The measurements use paired base 1d82bed0a7fef79012c38ea7e6184911aba27e63. All 50 existing budget-verifier tests and focused lint pass. CSS ceilings, request counts, startup limits and gate logic are unchanged.

@clawsweeper

clawsweeper Bot commented Nov 15, 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 the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds section-specific navigation icons and filled variants for active entries.

Example: Open Usage from a pinned sidebar entry.

  • Before: Usage uses the coins icon regardless of selection.
  • After: Usage uses an outlined gauge when inactive and a filled gauge when current.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The source change is coherent and has no definite correctness finding, but the changed visual behavior and focused validation remain unproven; draft status itself does not lower the rating.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Several navigation sections reuse generic artwork, and current destinations lack a distinct filled-icon cue.
Reason: Distinct navigation artwork and selection cues have clear usability value, and maintainer authorship supplies the direction decision.

Merge readiness

✅ Ready for maintainer review

Keep open as a maintainer-authored navigation improvement in an active draft stack; source review found no definite introduced bug.

Priority: P3
Reviewed head: 1b22fa4d8d4f5b0a21733a4929fc274d72550fdf

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply sanitized before/after screenshots from the built Control UI showing active and inactive built-in and plugin navigation, preserving emoji appearances and redacting credentials, IPs, and non-public endpoints.
Agent review details

How this fits together

The Control UI combines route presentation and plugin navigation descriptors with current selection state, then renders sidebar SVG icons through the shared Icon component.

flowchart TD
  A[Route presentation] --> C[Sidebar navigation]
  B[Plugin descriptors] --> C
  D[Current selection] --> C
  C --> E[Shared Icon renderer]
  F[Outline and filled artwork] --> E
  E --> G[Sidebar SVG]
Loading

Technical review

Best possible solution:

Keep variant selection in the shared Icon renderer and reuse each navigation owner's existing active state.

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

This proposes a visual enhancement rather than a reproduced functional failure; the existing outline-only selection behavior is visible in pinned-main source, and no target code was executed.

Is this the best way to solve the issue?

The implementation is a focused use of existing owners: artwork belongs in the registry, selection remains with navigation, and per-instance SVG identifiers support repeated masked icons without a parallel renderer.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Holger Gruenhagen: Raw commit 66093c1 adds ui/src/plugins/control-ui-contributions.solid.tsx:125 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 66093c13e3fa; files: ui/src/plugins/control-ui-contributions.solid.tsx)

PR surface

Source +404, Tests +38. Total +442 across 19 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 15 440 36 +404
Tests 4 42 4 +38
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 19 482 40 +442

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves visual navigation cues without establishing a broken workflow, lost state, or urgent regression.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 15, 2026, 6:03 PM ET / 23:03 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-02-nav-icons branch from 1b22fa4 to a69435c Compare November 16, 2026 07:05
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nostr Channel integration: nostr channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo labels Nov 16, 2026
vyctorbrzezowski and others added 6 commits November 17, 2026 11:21
Add outline and filled variants for the navigation sections (dashboards,
usage, automations, sessions, systems, meetings, customize, portals,
workboard, clawrouter, knowledge, at-sign, access) plus a filled users
icon, ported unchanged from the approved rail design. Nothing uses them
yet.

The filled forms cut details out with SVG masks. Icon now suffixes each
id and url(#id) reference per rendered instance, so repeated icons no
longer share document-wide ids; this also covers the lobster gradient.
Navigation icons follow one rule: outline at rest, filled while their
page is current. Icon takes a `filled` flag and swaps to the filled form
when one exists. Route links, plugin tabs and plugin navigation links
fill when active, and the rail's People view fills while it is open, so
the rule holds for rail pins and the Pages list alike.

Section routes move to the new icon set: Dashboards, Usage, Cron
(automations), Sessions, Systems, Meetings, Plugins (customize),
Portals and Workboard. Bundled plugins register the matching icons for
Workboard, ClawRouter, Knowledge, X (at-sign) and Access.
@vyctorbrzezowski

Copy link
Copy Markdown
Member 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 channel: x extensions: clawrouter Extension: clawrouter P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: knowledge plugin: openclaw-id-access plugin: workboard rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: M 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