Repository navigation
improve(ui): fill the current navigation item's icon - #199822
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesAdds section-specific navigation icons and filled variants for active entries. Example: Open Usage from a pinned sidebar entry.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +404, Tests +38. Total +442 across 19 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 15, 2026, 6:03 PM ET / 23:03 UTC. |
1b22fa4 to
a69435c
Compare
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.
|
Merged via squash.
|
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):
pnpm tsgo:uipasses at this PR's head.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:uipasses.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.
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.