Repository navigation
fix(ui): show emoji board icons in sidebar navigation instead of the plug - #174451
vyctorbrzezowski merged 4 commits into
Conversation
…plug Workboard registers each board as a plugin navigation destination with the board's appearance icon. Plugin navigation links only drew icon-registry names, so an emoji board icon fell back to the generic plug in Pages and in pinned rail entries while the board page showed the emoji. Render a valid single-emoji appearance in the navigation link; other unknown names keep the fallback icon.
|
🦞👀 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 changesRender valid emoji board icons in sidebar Pages and pinned entries while preserving registry icons and unknown-value fallbacks. Example: The Planning board uses ⏰ and is pinned.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a visible inconsistency still present on current main, with convincing before/after screenshots and no actionable findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherWorkboard registers board icons as plugin navigation metadata; the shared Control UI navigation renderer turns that metadata into Pages, pinned-rail, and child links. flowchart LR
A[Board appearance] --> B[Workboard navigation registration]
B --> C[Shared navigation renderer]
C --> D[Registry icon or validated emoji]
D --> E[Pages entry]
D --> F[Pinned rail entry]
Technical reviewBest possible solution: Land the shared navigation rendering fix with its focused sidebar regression after the existing merge gates pass. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically sends an emoji board icon through the plug fallback, matching the contributor's inspected before screenshot; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair: the existing shared renderer consumes the existing appearance validator, preserving registry handling without adding state, configuration, or a competing renderer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 50520de188dd. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +14, Tests +122, Docs 0, Other +1. Total +137 across 15 files. Added test files: 0. View PR surface stats
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 HistoryReview history (1 earlier review cycle)
Reviewed October 19, 2026, 6:46 PM ET / 22:46 UTC (Revision 2). |
…v-icons # Conflicts: # ui/src/plugins/control-ui-contributions.solid.tsx # ui/src/test-helpers/app-sidebar-cases/sidebar-zone.ts
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…v-icons # Conflicts: # ui/src/plugins/control-ui-contributions.solid.tsx
…v-icons # Conflicts: # ui/src/plugins/control-ui-contributions.solid.tsx
vyctorbrzezowski
left a comment
There was a problem hiding this comment.
Reviewed the shared navigation renderer, Workboard icon registration, appearance normalization, and the sidebar regression coverage. The change renders validated emoji as text in Pages and pinned entries while preserving registry icons and the existing fallback for unsupported values. No actionable issue found in the reviewed diff.
Automated code review complete. No further changes are requested from the author at this stage. Final product and design review will be handled by the responsible maintainer before the PR is considered for merge.
|
Merged via squash.
|
…plug (openclaw#174451) Workboard registers each board as a plugin navigation destination with the board's appearance icon. Plugin navigation links only drew icon-registry names, so an emoji board icon fell back to the generic plug in Pages and in pinned rail entries while the board page showed the emoji. Render a valid single-emoji appearance in the navigation link; other unknown names keep the fallback icon.
What Problem This Solves
Fixes: a Workboard board with an emoji icon (for example ⏰ or 🚀, chosen in the board's appearance picker) shows that emoji on its board page, but the generic plug icon in the sidebar Pages list and on its pinned rail entry. A board without an icon shows the kanban glyph everywhere, so the same kind of destination gets two unrelated icons depending on where you look.
User Impact
Affects every Control UI user who gives a board an emoji icon, with default settings: the Workboard plugin registers each board as a navigation destination with
icon: board.icon ?? "kanban"(extensions/workboard/browser/index.ts), and the appearance picker offers emoji as the first choice set. In Pages and in the pinned rail the board is then indistinguishable from other plugin destinations (both draw the plug), which is exactly where users look for it.Why This Change Was Made
Plugin navigation links (
NavigationLinkinui/src/plugins/control-ui-contributions.solid.tsx) only render names from the fixed icon registry and otherwise fall back to the parent's icon orplug. Board icons are session appearances, though: a registry glyph name or a single emoji, validated by the existingnormalizeSessionIconValue. The link now renders a value that is not a registry name but passes that normalizer as an emoji (samesession-glyph__emojiclass the session rows use); registry names render as before, and any other unknown string (for exampletoString) keeps the fallback icon. SVG data URLs are left on the fallback path because board icons are limited to 40 characters and cannot carry one.ui/src/plugins/control-ui-contributions.solid.tsx+18/−1ui/src/test-helpers/app-sidebar-cases/sidebar-zone.ts+26 (Pages row, pinned rail entry, fallback for a non-appearance string; runs inapp-sidebar.sessions.test.ts)The fix is in the shared link, so it covers Pages, rail pins, and nested child links alike. No plugin API change.
Evidence
Isolated test Gateway (loopback, token auth,
workboardplugin enabled, no channels) built fromorigin/mainatbb642e181e1; real Control UI in Chrome (Noto Color Emoji font for the test browser), three neutral boards:Planning⏰,Release tasks🚀,Research(no icon);PlanningandResearchpinned. Before = base Control UI, after = Control UI built from this branch, same Gateway and state.Planning(⏰)Release tasks(🚀)Research(no icon)Before (board page shows ⏰, Pages and the highlighted rail pin show the plug):

After (Pages and rail show the board's emoji):

Tests (Linux VPS, Node 24,
--maxWorkers=1):pnpm teston the 8 files that use plugin contributions (control-ui-view,control-ui-contributions,control-ui-dashboard,control-ui-navigation,chat-view.plugin-identity,chat-view.plugin-questions,app-sidebar-pages-identity,app-sidebar.sessions) → 161 passed, 40 s wall.bb642e181e1: the new case fails, the existingoffers child destinations with their iconscase (registry name → icon,toString→ plug) passes on both.pnpm tsgo:uiclean (exit 0, 323 s wall on a loaded host);oxfmt --checkandoxlint --type-awareon both changed files clean.Merged current main (
b61b0809c63) to resolve conflicts; no behavior change. Main reorganizedsidebar-zone.tsinto top-level cases and removed some tests, so the emoji case was re-added unchanged next tokeeps child icons and explicit unpins across registration; the import conflict only dropscreateEffectas main did. Re-run on head3d0a9256830(--maxWorkers=1):app-sidebar.sessions,app-sidebar-pages-identity,control-ui-contributions,control-ui-navigation,control-ui-dashboard,control-ui-view→ 6 files, 159 passed, 26.7 s wall;oxfmt --checkandoxlint --type-awareon both changed files clean.