Skip to content

refactor(ui): share sidebar conversation menu rendering - #119452

Merged
steipete merged 1 commit into
mainfrom
codex/loc-0804-ui-luem8u
Aug 5, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/loc-0804-ui-luem8u

Conversation

@steipete

@steipete steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Control UI conversation sidebar repeated hidden dropdown anchors, accessible radio rows, and collaborator filters across its group, catalog, and sorting menus. Maintaining those copies independently made it easier for equivalent conversation controls to drift.

Why This Change Was Made

Use one owner-local renderer for sidebar menu triggers, checked radio choices, and collaborator-filter sections while preserving each menu’s existing actions, visibility rules, translations, and DOM structure. This removes 78 production lines without changing configuration, dependencies, or public contracts.

User Impact

No visual or behavioral changes. Conversation grouping, sorting, status and collaborator filters, owner avatars, separators, localization, keyboard navigation, focus restoration, accessible radio roles and checked states, and dropdown placement behave exactly as before.

Evidence

  • 254 baseline-versus-refactor DOM and action equivalence scenarios passed, covering visible element structure, hidden anchors, accessibility attributes, checked-state synchronization, owner avatars, filters, localization, separators, and selection dispatch.
  • Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/30971028532
  • 243 focused tests passed across three existing suites: 233 sidebar integration tests, 8 Web Awesome keyboard/focus/accessibility tests, and 2 real Chromium sidebar menu top-layer and divider hit-testing regressions.
  • Full unchanged pnpm check:changed passed remotely, including repository guards, dead-code scans, Control UI localization, core-test and UI typechecks, and changed-file lint with zero warnings or errors.
  • Structured autoreview with --engine codex --model gpt-5.6-sol --thinking xhigh passed with no actionable findings.
  • Production diff: 96 additions, 174 deletions; net 78 fewer lines. No test changes.

Real Browser Evidence (Exact PR Head)

Captured at 926e5476b29d589ff46e76a9183c658c710a0547 in Google Chrome 150.0.7871.187, using the actual production Lit sidebar renderers, Web Awesome dropdown custom elements, and checked-in Control UI styles:

  • Conversation group menu: visible rename/new/delete actions, keyboard focus ring, and destructive-action styling. SHA-256: ae5caed3721dd11a5a8cb13468e69eecd876e30025d30db3a001f2d45d39f153.
  • Catalog view menu: project/person/none grouping, People section, checked creator filter, accessible owner avatars, and Hide from sidebar. SHA-256: dc5511d88070c0c54a6f601964835a970c868aefb3c34d13e6009367dd09c080.
  • Conversation sort menu: grouping, created/updated sorting, active/archived/all status, People filtering, owner avatars, and checked automation toggle. SHA-256: dcb34702bd7ab4a35328961a32d76634e5d5702273c113cbd48b7af8c8a5c673.

Each screenshot uses a real open dropdown in the browser popover top layer. Hidden anchors remain aria-hidden="true", tabindex="-1", and pointer-events: none; actual radio rows expose role="menuitemradio" and the expected aria-checked values, and owner avatars retain descriptive accessible names.

Group, catalog, and sort browser captures

group-menu catalog-menu sort-menu

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 5, 2026
@steipete
steipete marked this pull request as ready for review August 5, 2026 03:15
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 4, 2026, 11:20 PM ET / August 5, 2026, 03:20 UTC.

ClawSweeper review

What this changes

This PR centralizes repeated hidden menu triggers, radio rows, and creator filters used by the Control UI conversation sidebar menus.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 3 items remain

Keep open: the refactor is source-clean and preserves the existing controller contracts, but it lacks contributor-provided observable after-fix browser proof required before merge.

Priority: P3
Reviewed head: 926e5476b29d589ff46e76a9183c658c710a0547

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused refactor reviews cleanly, but its evidence stops at reported automated results rather than observable after-fix UI behavior.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR reports automated Testbox and Chromium results, but provides no contributor-supplied observable after-fix browser artifact for the changed menus. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR reports automated Testbox and Chromium results, but provides no contributor-supplied observable after-fix browser artifact for the changed menus. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Shared helper preservation: The PR-head helpers retain the existing hidden trigger attributes, radio synchronization, optional owner chip, and two-or-more-creators condition while removing duplicate templates.
Caller contract: The controller adapters retain distinct grouping, sort, status, creator-filter, close, and focus callbacks; the renderer remains the appropriate local ownership boundary.
Existing behavior coverage: Current browser E2E coverage opens the sort menu, selects a creator, and verifies the resulting filtered session list; a browser test also covers menu top-layer behavior.
Findings None None.
Security None None.

How this fits together

The Control UI conversation sidebar opens group, catalog, and sorting dropdowns from user controls. Those menus render selectable filters and dispatch the selected action back through the sidebar controller.

flowchart LR
  A[Sidebar controls] --> B[Menu renderer]
  B --> C[Shared menu helpers]
  C --> D[Dropdown menus]
  D --> E[Grouping and filter actions]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR reports automated Testbox and Chromium results, but provides no contributor-supplied observable after-fix browser artifact for the changed menus. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Without a directly inspectable browser artifact, merge would lack observable proof that the shared helpers preserve menu anchoring, focus restoration, and selection behavior across all three menus.
  • Complete next step (P2) - The protected PR should remain open for normal maintainer handling; the remaining merge gate is contributor-provided real UI proof, not a mechanical code repair.
Agent review details

Security

None.

PR surface

Source -78. Total -78 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 96 174 -78
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 96 174 -78

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Add visible sidebar proof before merge (recommended)
    Attach redacted browser evidence showing the group, catalog, and sort menus open and dispatch correctly after the refactor.

Technical review

Best possible solution:

Keep the owner-local consolidation and add a redacted before/after Control UI browser recording or screenshots that visibly exercise each affected menu before merge.

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

Not applicable: this PR refactors existing menu rendering rather than reporting a current product defect.

Is this the best way to solve the issue?

Yes, conditional on the outstanding proof gate: keeping the helper local to the sidebar removes duplicate policy without creating a generic dropdown abstraction.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a focused behavior-preserving Control UI cleanup with no reported user-facing regression.
  • add merge-risk: 🚨 other: One shared renderer now controls three interactive menus, and the submitted evidence lacks an observable after-fix UI artifact.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR reports automated Testbox and Chromium results, but provides no contributor-supplied observable after-fix browser artifact for the changed menus. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P3: This is a focused behavior-preserving Control UI cleanup with no reported user-facing regression.
  • merge-risk: 🚨 other: One shared renderer now controls three interactive menus, and the submitted evidence lacks an observable after-fix UI artifact.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR reports automated Testbox and Chromium results, but provides no contributor-supplied observable after-fix browser artifact for the changed menus. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger introduced the sidebar renderer split and authored the connected creator, catalog, and avatar work. (role: feature-history owner; confidence: high; commits: dc7f167227ff, fc92b9fd91d8, 0b2b2c32092e; files: ui/src/components/app-sidebar-session-menu-renderers.ts, ui/src/components/sidebar-menus-render.ts, ui/src/components/session-owner-chip.ts)
  • Vincent Koc: The current checkout's visible blame boundary for the renderer and its controller callers is the latest integration commit. (role: recent area integrator; confidence: medium; commits: 6293b54250fc; files: ui/src/components/app-sidebar-session-menu-renderers.ts, ui/src/components/sidebar-menus-render.ts)

Rank-up moves

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

  • Attach a redacted browser recording or screenshots covering group, catalog, and sort menu interactions.
  • Update the PR body with that evidence; a fresh ClawSweeper review should then run automatically.

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.

@steipete
steipete merged commit c925634 into main Aug 5, 2026
225 of 236 checks passed
@steipete
steipete deleted the codex/loc-0804-ui-luem8u branch August 5, 2026 04:09
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor 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 maintainer Maintainer-authored PR merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant