Skip to content

fix(ui): show emoji board icons in sidebar navigation instead of the plug - #174451

Merged
vyctorbrzezowski merged 4 commits into
openclaw:mainfrom
holgergruenhagen:fix/ui-board-emoji-nav-icons
Oct 22, 2026
Merged

vyctorbrzezowski merged 4 commits into
openclaw:mainfrom
holgergruenhagen:fix/ui-board-emoji-nav-icons

Conversation

@holgergruenhagen

@holgergruenhagen holgergruenhagen commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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 (NavigationLink in ui/src/plugins/control-ui-contributions.solid.tsx) only render names from the fixed icon registry and otherwise fall back to the parent's icon or plug. Board icons are session appearances, though: a registry glyph name or a single emoji, validated by the existing normalizeSessionIconValue. The link now renders a value that is not a registry name but passes that normalizer as an emoji (same session-glyph__emoji class the session rows use); registry names render as before, and any other unknown string (for example toString) 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.

Area Change
Production ui/src/plugins/control-ui-contributions.solid.tsx +18/−1
Tests ui/src/test-helpers/app-sidebar-cases/sidebar-zone.ts +26 (Pages row, pinned rail entry, fallback for a non-appearance string; runs in app-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, workboard plugin enabled, no channels) built from origin/main at bb642e181e1; real Control UI in Chrome (Noto Color Emoji font for the test browser), three neutral boards: Planning ⏰, Release tasks 🚀, Research (no icon); Planning and Research pinned. Before = base Control UI, after = Control UI built from this branch, same Gateway and state.

Destination Board page Pages / rail before Pages / rail after
Planning (⏰) ⏰ plug / plug ⏰ / ⏰
Release tasks (🚀) 🚀 plug / (not pinned) 🚀 / (not pinned)
Research (no icon) none kanban / kanban kanban / kanban (unchanged)

Before (board page shows ⏰, Pages and the highlighted rail pin show the plug):
before: plug icons for emoji boards

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

Tests (Linux VPS, Node 24, --maxWorkers=1):

  • pnpm test on 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.
  • Counter-check with only the production file reverted to bb642e181e1: the new case fails, the existing offers child destinations with their icons case (registry name → icon, toString → plug) passes on both.
  • pnpm tsgo:ui clean (exit 0, 323 s wall on a loaded host); oxfmt --check and oxlint --type-aware on both changed files clean.

Merged current main (b61b0809c63) to resolve conflicts; no behavior change. Main reorganized sidebar-zone.ts into top-level cases and removed some tests, so the emoji case was re-added unchanged next to keeps child icons and explicit unpins across registration; the import conflict only drops createEffect as main did. Re-run on head 3d0a9256830 (--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 --check and oxlint --type-aware on both changed files clean.

…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.
@clawsweeper

clawsweeper Bot commented Oct 16, 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. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Render 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.

  • Before: The board page shows ⏰, but Pages and the pinned rail show a plug.
  • After: The board page, Pages entry, and pinned rail all show ⏰.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused, useful rendering fix with directly inspected visual proof, a meaningful regression test, and no actionable findings; pending CI is not represented as passing.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the real Chrome Control UI against an isolated token-authenticated Gateway with Workboard enabled: Planning's ⏰ appears in Pages and its pinned rail, Release tasks shows 🚀, and Research retains kanban; the rendering hunks survive unchanged after main integration.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Boards with chosen emoji icons lose their visual identity in Pages and pinned navigation.
Reason: The fix restores consistency with the board's existing appearance through the shared navigation owner and preserves existing defaults and fallbacks.

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
Reviewed head: 3d0a9256830d44fe02a6459ae9399d16e2019b31

Before merge

None.

Findings

None.

Agent review details

How this fits together

Workboard 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]
Loading

Technical review

Best 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

  • Board navigation metadata keeps the original intent (feat(workboard): show boards in the sidebar and pin your own #164604: Expose individual boards as sidebar destinations with their board appearance and personal pinning.)
  • Shared navigation icon rendering changes intended behavior with a stated reason (939f740: The Solid port preserved existing rendering and SDK contracts; this PR explains why valid board emoji should bypass the generic fallback while unknown values retain it.)
  • Other pinned-diff changes keeps the original intent (b61b080: The branch merged main's detail-request simplification, restart-fixture tagging, and retired-session resource cleanup; these files match current main.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +14, Tests +122, Docs 0, Other +1. Total +137 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 49 35 +14
Tests 5 122 0 +122
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 15 173 36 +137

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This repairs visual destination identification without blocking navigation or changing saved board settings.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-16T17:06:40.709Z sha 3846feb :: needs maintainer review before merge. :: none

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
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts agents Agent runtime and tooling size: M and removed size: XS labels Oct 19, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 19, 2026
@holgergruenhagen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 19, 2026
…v-icons

# Conflicts:
#	ui/src/plugins/control-ui-contributions.solid.tsx
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label Oct 21, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed scripts Repository scripts agents Agent runtime and tooling size: M labels Oct 21, 2026
…v-icons

# Conflicts:
#	ui/src/plugins/control-ui-contributions.solid.tsx

@vyctorbrzezowski vyctorbrzezowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@vyctorbrzezowski
vyctorbrzezowski merged commit 66093c1 into openclaw:main Oct 22, 2026
86 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…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.
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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

2 participants