Skip to content

feat(ui): grid picker for session icons - #124335

Merged
steipete merged 3 commits into
mainfrom
steipete/session-icon-grid-picker
Aug 16, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/session-icon-grid-picker

Conversation

@steipete

@steipete steipete commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Related: #124034

What Problem This Solves

#124034 shipped Set icon as a single column of menu rows; the intended design is a compact grid. One emoji per row wastes space and scales poorly.

Why This Change Was Made

This is the maintainer-requested design pass: a 6x2 grid of 12 emoji (all RGI-valid), roving-tabindex arrow-key navigation, accent highlighting on the active emoji, and a conditional Remove icon row. This is presentation-only; the set-icon action contract, gateway field, and agent tool are unchanged from #124034.

User Impact

The Set icon submenu is now a compact grid, and the available emoji choices grew from 8 to 12.

Evidence

Session icon grid picker

grid-picker.mp4
  • Session-menu tests: 34/34 passed.
  • Focused session-menu and Web Awesome ownership tests after the CI repair: 37/37 passed.
  • check-changed: exit 0 on the original implementation (local fallback; remote providers unavailable).
  • Autoreview: clean (0.99) on the implementation and the CI repair.
  • LOC: +233/-47 across 3 files, all in the Control UI.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 16, 2026
@steipete steipete self-assigned this Aug 16, 2026
@steipete
steipete marked this pull request as ready for review August 16, 2026 01:40
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Aug 16, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 10:35 PM ET / August 16, 2026, 02:35 UTC.

ClawSweeper review

What this changes

This PR replaces the session-icon submenu’s single-column emoji choices with a 12-choice keyboard-navigable action grid while preserving the existing set/remove icon action.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for maintainer handling. The prior radio-semantics finding is fixed on the current head, and this remains a bounded Control UI refinement with direct visual proof; exact-head CI and the Web Awesome submenu integration still need maintainer confirmation.

Priority: P2
Reviewed head: ec72c9f9fc98818f2408c32fb1c569e725c75471

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A clean, bounded UI refinement with direct visual proof and focused behavior coverage; the remaining task is exact-head integration confirmation.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (recording): The PR body supplies after-fix screenshot and recording evidence for the visible compact picker; the reviewer could not retrieve the media because DNS was unavailable, which does not make contributor proof insufficient.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (recording): The PR body supplies after-fix screenshot and recording evidence for the visible compact picker; the reviewer could not retrieve the media because DNS was unavailable, which does not make contributor proof insufficient.
Evidence reviewed 7 items PR-head implementation: The head replaces submenu radio rows with a labelled button grid, preserves the existing set-icon action, and handles keyboard focus within the grid.
Existing action consumers: Both the sidebar and Sessions page map set-icon to their existing session patch calls, so the PR does not add a second persistence path.
Prior finding resolved: The reviewed-head diff removes the radio implementation and uses pressed-state buttons, matching the earlier review’s action-grid alternative without selecting on Arrow-key focus.
Findings None None.
Security None None.

How this fits together

The Control UI session menu lets an operator choose a persistent session icon, then forwards that choice through the existing session-update action to the Gateway. The sidebar and Sessions page share this menu component and continue to consume the same action contract.

flowchart LR
A[Operator opens session menu] --> B[Session icon action grid]
B --> C[Click or keyboard selection]
C --> D[Existing session update action]
D --> E[Gateway session patch]
E --> F[Sidebar and Sessions display]
Loading

Before merge

  • Resolve merge risk (P1) - The new custom submenu content and submenu-opening listener rely on Web Awesome behavior that could not be independently inspected because the dependency source was unavailable; confirm the supplied real UI recording or an exact-head browser run before merge.
  • Complete next step (P2) - A protected maintainer-handled PR needs real-menu integration confirmation and exact-head CI, not an automated repair.
Agent review details

Security

None.

PR surface

Source +145, Tests +40. Total +185 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 181 36 +145
Tests 1 53 13 +40
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 234 49 +185

Review metrics

Metric Value Why it matters
Production versus test LOC production +181/-36 (net +145); tests +53/-13 (net +40) The production growth implements the requested grid, focus navigation, and visual treatment while test growth covers choices, removal visibility, and grid movement.

Stored data model

Persistent data-model change detected: serialized state: ui/src/components/session-menu.test.ts, serialized state: ui/src/components/session-menu.ts, unknown-data-model-change: ui/src/components/session-menu.test.ts, unknown-data-model-change: ui/src/components/session-menu.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Verify the real submenu integration (recommended)
    Before merging, play the supplied recording or run the built Control UI to confirm that Web Awesome opens the custom submenu and focuses its selected button.

Technical review

Best possible solution:

Retain the existing Gateway action contract and merge the compact action grid once exact-head CI and real Web Awesome submenu focus behavior are confirmed.

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

Not applicable: this is a presentation feature PR rather than a report of broken existing behavior; its visible result is demonstrated by the supplied screenshot and recording.

Is this the best way to solve the issue?

Yes. Reusing the shared session-menu owner and existing set-icon action avoids a new Gateway, configuration, or persistence path; action-grid semantics correctly avoid persisting selection on every Arrow key movement.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 289a9cabc877.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies after-fix screenshot and recording evidence for the visible compact picker; the reviewer could not retrieve the media because DNS was unavailable, which does not make contributor proof insufficient.
  • add proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The PR body supplies after-fix screenshot and recording evidence for the visible compact picker; the reviewer could not retrieve the media because DNS was unavailable, which does not make contributor proof insufficient.
  • 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 (recording): The PR body supplies after-fix screenshot and recording evidence for the visible compact picker; the reviewer could not retrieve the media because DNS was unavailable, which does not make contributor proof insufficient.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded Control UI feature refinement with limited blast radius.
  • merge-risk: 🚨 other: A custom interactive grid is inserted into a third-party dropdown submenu, so real-menu focus behavior remains material before merge.
  • 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 (recording): The PR body supplies after-fix screenshot and recording evidence for the visible compact picker; the reviewer could not retrieve the media because DNS was unavailable, which does not make contributor proof insufficient.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies after-fix screenshot and recording evidence for the visible compact picker; the reviewer could not retrieve the media because DNS was unavailable, which does not make contributor proof insufficient.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The PR body supplies after-fix screenshot and recording evidence for the visible compact picker; the reviewer could not retrieve the media because DNS was unavailable, which does not make contributor proof insufficient.

Evidence

What I checked:

  • PR-head implementation: The head replaces submenu radio rows with a labelled button grid, preserves the existing set-icon action, and handles keyboard focus within the grid. (ui/src/components/session-menu.ts:289, ec72c9f9fc98)
  • Existing action consumers: Both the sidebar and Sessions page map set-icon to their existing session patch calls, so the PR does not add a second persistence path. (ui/src/components/sidebar-menus-render.ts:234, 289a9cabc877)
  • Prior finding resolved: The reviewed-head diff removes the radio implementation and uses pressed-state buttons, matching the earlier review’s action-grid alternative without selecting on Arrow-key focus. (ui/src/components/session-menu.ts:304, ec72c9f9fc98)
  • Current-main comparison: No touched UI file changed between the PR base and current main, so current-base drift does not create a competing implementation on this surface. (ui/src/components/session-menu.ts:275, 289a9cabc877)
  • Feature provenance: The merged persistent-session-icon feature was introduced by the prior feature commit; this PR is a presentation refinement of that established action. (ui/src/components/session-menu.ts:275, d2be00e171f6)
  • Real behavior evidence: The PR body includes an after-fix screenshot and recording of the compact picker, plus focused session-menu test results. (ec72c9f9fc98)

Likely related people:

  • steipete: The prior merged session-icon feature and this PR head are both attributable to Peter Steinberger; current-line blame also points to his recent maintenance of the menu surface. (role: feature owner and recent area contributor; confidence: high; commits: d2be00e171f6, ec72c9f9fc98, 715e32448e2d; files: ui/src/components/session-menu.ts, ui/src/components/sidebar-menus-render.ts, ui/src/pages/sessions/sessions-page.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let exact-head CI finish and confirm the supplied recording shows opening and keyboard focus in the real Web Awesome menu.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

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

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-16T02:23:43.648Z sha 0672131 :: needs changes before merge. :: [P2] Align radio semantics with Arrow-key behavior

ClawSweeper: menuitemradio/radio semantics promise arrow-key selection, but arrows here only move focus (selection persists server-side, so select-on-focus would patch per keypress). Plain buttons with aria-pressed match the click/Enter-only contract.
@steipete

Copy link
Copy Markdown
Contributor Author

Accepted the ClawSweeper radio-semantics finding and fixed it in ec72c9f. The icon picker now uses a labelled action grid (role="group") with aria-pressed buttons and no radio roles. This follows the review's suggested alternative while avoiding select-on-arrow behavior, which would send a Gateway patch on every arrow-key press.

Proof: the focused session-menu test suite passes 34/34.

@clawsweeper clawsweeper Bot added proof: 🎥 video Contributor real behavior proof includes video or recording evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@steipete
steipete merged commit b170c2c into main Aug 16, 2026
320 of 322 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the steipete/session-icon-grid-picker branch August 16, 2026 02:44
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 16, 2026
* feat(ui): add session icon grid picker

* fix(ui): use radio semantics for icon grid

* fix(ui): use pressed-state action-grid semantics for the icon picker

ClawSweeper: menuitemradio/radio semantics promise arrow-key selection, but arrows here only move focus (selection persists server-side, so select-on-focus would patch per keypress). Plain buttons with aria-pressed match the click/Enter-only contract.
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 merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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