Repository navigation
refactor(ui): retire Web Awesome theme and registrations - #173520
Conversation
…kboard-recompute # Conflicts: # ui/src/components/menu-surface.browser.test.ts
…kboard-recompute # Conflicts: # ui/src/components/select-picker.browser.test.tsx
…-final-wa-workboard-recompute # Conflicts: # ui/src/components/web-awesome-theme.browser.test.tsx
…-final-wa-workboard-recompute # Conflicts: # ui/src/e2e/app-chrome-interaction.e2e.test.ts # ui/src/pages/new-session/new-session-page.test.ts # ui/src/styles/base.css
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR removes retired Web Awesome registrations, adapters, styles, and fixtures while preserving owned controls and their keyboard behavior. Example: Hover opens a submenu, then the user presses ArrowRight.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it completes useful, maintainer-directed UI cleanup, with no concrete introduced defect found; GitHub reports a merge conflict. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI preferences and user input feed shared theme and overlay owners, which render palettes, menus, pickers, tabs, focus, and dismissal behavior. flowchart LR
Preferences --> ThemeOwner
ThemeOwner --> ControlTokens
ControlTokens --> OwnedControls
UserInput --> OverlayOwner
OverlayOwner --> OwnedControls
OwnedControls --> Browser
Technical reviewBest possible solution: Complete the retirement through the existing native owners while preserving the separately planned dependency-removal boundary. Do we have a high-confidence way to reproduce the issue? Source confirms current main retains the obsolete registrations and legacy selectors; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The change uses existing theme and overlay owners, removes superseded adapters, and replaces vendor-specific fixtures with native-control contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against be12b599e17b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -622, Tests -2307, Other -7. Total -2936 across 48 files. Added test files: 1. View PR surface stats
LabelsLabel 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 October 15, 2026, 6:51 PM ET / 22:51 UTC. |
Hourly main CI 38810511907 failed check-dependencies after owner migrations left unused exports behind. Live scans on 19752be also found the native completed-turn parser export and the now-unreferenced safe-record module. Keep WikiPageNotUtf8Error and readCodexTurnCompletedNotification private at their existing owners. Preserve malformed UTF-8 refusal and completed-turn validation behavior. Exercise the existing union-default assertion through prepareCodexServerNotification and remove the stale router mock. Delete the unused safe-record module and its exact assertion allowance; repository references and canonical unused-file scans confirm it is orphaned. Peer coverage discovered during proof: 41b7727 removes renderKbd; ready PRs #173514, #173520 and #173521 cover the Lit test renderer, Web Awesome owner and presentedProperty. Those changes are omitted here. Broad PRs #173481 and #173531 overlap owners but do not fix the remaining failing cases. No Knip ignore, dependency change or runtime policy change. Proof: - Three canonical deadcode scripts fail on the base (5 exports / 2 files) and pass with zero findings on the complete candidate. Reuse unchanged surviving owner blobs after omitting peer-covered changes. - 47 extension tests pass across six owner files; 143 focused tests passed across the earlier complete candidate. Every command used --maxWorkers=1. - Changed test command wall time: protocol-validators 274.97s; MCP router 101.41s (cold worker preparation/verification dominates). Wiki owner group 270.02s. No cases/assertions removed from these surviving tests. - Core, Codex, memory-wiki, UI production and extension/UI test types pass. Scoped project lint, boundary guard, format and assertion ratchet pass. - Independent review through P2 is scoped-clean; surviving file blobs match the reviewed/proven candidate exactly. Production LOC -73; test LOC net 0. The loaded Mac hit the unchanged SDK declaration prerequisite timeout before lint; an immediately granted Linux Testbox completed that prerequisite. No timeout increase or CI rerun was used; no check was repeated merely for green.
Current-main deadcode checks report an orphaned IconName re-export and Lit provider-brand renderer after their consumers migrated to Solid. Remove those unused surfaces and keep settleWebAwesome private to the openDetails helper that still calls it. No UI behavior or Knip ignore changes. The separate chat quick-action finding is already fixed by 87e282b. The Lit helper is fixed by landed PR #173514. Leave the presentation helper and Web Awesome owner to active PRs #173521 and #173520. VoiceCallConfigSchema still has test consumers and is being migrated separately to the runtime input boundary. Proof: all three deadcode scripts rerun before/after; these three findings disappear with no new findings. Remaining failures are the named peer cases and the separate Voice Call schema export, not a claimed green main. All 39 tests in five owning files pass via pnpm test <file> --maxWorkers=1 (wall seconds: icons 4.97, provider data 3.82, Solid provider 3.70, model picker 4.07, model catalog 3.71). UI production and component/chat test types, ordinary typed lint, boundary lint, formatting and isolated P2 review pass. Recovered and preserved an interrupted-run artifact lock after verifying both recorded PIDs dead and no artifact-open processes.
8d4e374/PR173394 moved the last production schema import to normalizeVoiceCallConfig, leaving VoiceCallConfigSchema exported only for tests. Production deadcode validation now reports that unused export. Keep the schema private and move its 20 test/fixture consumers to the existing runtime input boundary. Preserve the refactor's accepted once-only external validation/defaulting contract and trusted parsed internal config. Keep every config case, rejection and Funnel-port error class/path/message check. Production logic is unchanged; no new module, wrapper, public contract or Knip exception. Proof: 359 tests in 24 affected files pass, including every shared manager harness importer. pnpm test <file> --maxWorkers=1 total wall 561.93s. Production package types, extensions test types, ordinary typed lint, boundary lint, formatting and isolated P2 review pass. All 3 deadcode scripts ran before/after: this finding disappears with no new findings. Remaining presentation export/Web Awesome files are covered by active ready PRs #173521/#173520; their exact diffs and bodies were checked. PR173514 and chat quick-action fix 87e282b already landed. Main history and new PR diffs through #173551 show no overlapping repair. No timeout/retry/skip change, compute lease or workflow dispatch. Per-file pnpm test wall times (--maxWorkers=1): - src/config.test.ts: 64.37s - doctor-contract-api.test.ts: 29.95s - index.call-scope.test.ts: 29.58s - src/call-delivery-runtime.test.ts: 36.7s - src/call-delivery.test.ts: 21.4s - src/config-migration.test.ts: 23.95s - src/manager.async-store.test.ts: 25.31s - src/manager.notify.test.ts: 23.93s - src/manager.restore.test.ts: 15.87s - src/manager.test-harness.test.ts: 10.84s - src/manager/events.amd.test.ts: 18.42s - src/manager/events.inbound.test.ts: 24.84s - src/manager/events.test.ts: 25.11s - src/manager/outbound.persistence.test.ts: 16.47s - src/manager/store.test.ts: 25.32s - src/providers/twilio.test.ts: 11.54s - src/response-generator.test.ts: 36.35s - src/response-model.test.ts: 17.72s - src/webhook.auto-response.lifecycle.test.ts: 18.16s - src/webhook.hangup-once.lifecycle.test.ts: 16.55s - src/webhook.test.ts: 15.64s - src/webhook.upgrade.test.ts: 23.05s - src/webhook/realtime-handler.test.ts: 15.84s - src/webhook/realtime-inbound-admission.test.ts: 15.02s
|
Merged via squash.
|
Hourly main CI 38810511907 failed check-dependencies after owner migrations left unused exports behind. Live scans on c41a47d also found the native completed-turn parser export and the now-unreferenced safe-record module. Keep WikiPageNotUtf8Error and readCodexTurnCompletedNotification private at their existing owners. Preserve malformed UTF-8 refusal and completed-turn validation behavior. Exercise the existing union-default assertion through prepareCodexServerNotification and remove the stale router mock. Delete the unused safe-record module and its exact assertion allowance; repository references and canonical unused-file scans confirm it is orphaned. Peer coverage discovered during proof: 7c4fb38 removes renderKbd; ready PRs openclaw#173514, openclaw#173520 and openclaw#173521 cover the Lit test renderer, Web Awesome owner and presentedProperty. Those changes are omitted here. Broad PRs openclaw#173481 and openclaw#173531 overlap owners but do not fix the remaining failing cases. No Knip ignore, dependency change or runtime policy change. Proof: - Three canonical deadcode scripts fail on the base (5 exports / 2 files) and pass with zero findings on the complete candidate. Reuse unchanged surviving owner blobs after omitting peer-covered changes. - 47 extension tests pass across six owner files; 143 focused tests passed across the earlier complete candidate. Every command used --maxWorkers=1. - Changed test command wall time: protocol-validators 274.97s; MCP router 101.41s (cold worker preparation/verification dominates). Wiki owner group 270.02s. No cases/assertions removed from these surviving tests. - Core, Codex, memory-wiki, UI production and extension/UI test types pass. Scoped project lint, boundary guard, format and assertion ratchet pass. - Independent review through P2 is scoped-clean; surviving file blobs match the reviewed/proven candidate exactly. Production LOC -73; test LOC net 0. The loaded Mac hit the unchanged SDK declaration prerequisite timeout before lint; an immediately granted Linux Testbox completed that prerequisite. No timeout increase or CI rerun was used; no check was repeated merely for green.
Current-main deadcode checks report an orphaned IconName re-export and Lit provider-brand renderer after their consumers migrated to Solid. Remove those unused surfaces and keep settleWebAwesome private to the openDetails helper that still calls it. No UI behavior or Knip ignore changes. The separate chat quick-action finding is already fixed by a072d8e. The Lit helper is fixed by landed PR openclaw#173514. Leave the presentation helper and Web Awesome owner to active PRs openclaw#173521 and openclaw#173520. VoiceCallConfigSchema still has test consumers and is being migrated separately to the runtime input boundary. Proof: all three deadcode scripts rerun before/after; these three findings disappear with no new findings. Remaining failures are the named peer cases and the separate Voice Call schema export, not a claimed green main. All 39 tests in five owning files pass via pnpm test <file> --maxWorkers=1 (wall seconds: icons 4.97, provider data 3.82, Solid provider 3.70, model picker 4.07, model catalog 3.71). UI production and component/chat test types, ordinary typed lint, boundary lint, formatting and isolated P2 review pass. Recovered and preserved an interrupted-run artifact lock after verifying both recorded PIDs dead and no artifact-open processes.
6157117/PR173394 moved the last production schema import to normalizeVoiceCallConfig, leaving VoiceCallConfigSchema exported only for tests. Production deadcode validation now reports that unused export. Keep the schema private and move its 20 test/fixture consumers to the existing runtime input boundary. Preserve the refactor's accepted once-only external validation/defaulting contract and trusted parsed internal config. Keep every config case, rejection and Funnel-port error class/path/message check. Production logic is unchanged; no new module, wrapper, public contract or Knip exception. Proof: 359 tests in 24 affected files pass, including every shared manager harness importer. pnpm test <file> --maxWorkers=1 total wall 561.93s. Production package types, extensions test types, ordinary typed lint, boundary lint, formatting and isolated P2 review pass. All 3 deadcode scripts ran before/after: this finding disappears with no new findings. Remaining presentation export/Web Awesome files are covered by active ready PRs openclaw#173521/openclaw#173520; their exact diffs and bodies were checked. PR173514 and chat quick-action fix a072d8e already landed. Main history and new PR diffs through openclaw#173551 show no overlapping repair. No timeout/retry/skip change, compute lease or workflow dispatch. Per-file pnpm test wall times (--maxWorkers=1): - src/config.test.ts: 64.37s - doctor-contract-api.test.ts: 29.95s - index.call-scope.test.ts: 29.58s - src/call-delivery-runtime.test.ts: 36.7s - src/call-delivery.test.ts: 21.4s - src/config-migration.test.ts: 23.95s - src/manager.async-store.test.ts: 25.31s - src/manager.notify.test.ts: 23.93s - src/manager.restore.test.ts: 15.87s - src/manager.test-harness.test.ts: 10.84s - src/manager/events.amd.test.ts: 18.42s - src/manager/events.inbound.test.ts: 24.84s - src/manager/events.test.ts: 25.11s - src/manager/outbound.persistence.test.ts: 16.47s - src/manager/store.test.ts: 25.32s - src/providers/twilio.test.ts: 11.54s - src/response-generator.test.ts: 36.35s - src/response-model.test.ts: 17.72s - src/webhook.auto-response.lifecycle.test.ts: 18.16s - src/webhook.hangup-once.lifecycle.test.ts: 16.55s - src/webhook.test.ts: 15.64s - src/webhook.upgrade.test.ts: 23.05s - src/webhook/realtime-handler.test.ts: 15.84s - src/webhook/realtime-inbound-admission.test.ts: 15.02s
…3520) * fix(workboard): restore intended card dialog backdrops * test(ui): exercise native menu surface contracts * refactor(ui): use owned theme tokens and native overlay surfaces * fix(ui): preserve keyboard entry while retiring popup adapters * test(ui): retire vendor suites and preserve native tooltip coverage * test(ui): remove remaining vendor theme assumptions * test(ui): use native popover in composer focus matrix * refactor(ui): defer vendor stylesheet removal to package retirement
What Problem This Solves
The Control UI has moved to owned menus, pickers, and panel tabs, but still carries the retired Web Awesome theme rules, registration modules, and browser fixtures.
User Impact
Existing palettes continue to style the owned controls. Sessions search leaves Escape to an open overlay, and ArrowRight focuses a submenu that pointer hover already opened.
Why This Change Was Made
Keep theme values on Control UI tokens and data attributes, remove unused vendor registrations and adapters, and replace vendor fixtures with the real account Menu, Picker, and PanelTabStrip. Native tooltip, keyboard, accessibility, and menu-stacking contracts remain covered. The vendor stylesheet and type declarations remain for the separate dependency-removal PR.
The final chat and header cutovers are inherited from official main; no unlanded lane is integrated. The orphaned tabs module was already deleted on main. The inert markdown backdrop token is removed without activating a new backdrop override.
Evidence
Base:
8e850d0631b304ec536d14c4259b41ca9fd11484. Reviewed head:8ad86b5a8abdc4ca7d6b47b7ede87945693c094d.pnpm tsgo:uipassed;pnpm tsgo:test:uiand changed-file formatting passed on the reviewed prior head for unchanged authored inputs. Original scoped stylesheet/code lint is reused for unchanged inputs (existing advisory Solid warnings only).28b1687accessibility 1/1, ownership 3/3, and palette WebKit 1/1 across eight theme/mode combinations are reused for unchanged inputs.28b1687, the first account menu remained inopeninglocally. The same new fixture failed on original base9eb0dbac. An independent animation-frame callback also does not fire, although the menu is connected, natively open, and laid out. Animation-finishing and viewport attempts did not repair it and were removed. No production workaround or passing/inherited-CI claim; full PR CI must exercise the retained assertions.be12b599. The remaining suite was interrupted to avoid repeating rendering-clock timeouts. This is local investigation, not inherited-CI attribution.safe-record.tsfinding. No new ignore.ci:fullrun 38825521893 passed on8ad86b5: 84 jobs completed, zero failures, including all UI, Control UI E2E, browser-extension, and real-Gateway shards.Affected-file LOC: 33,657 → 30,767 (45 files; +369/−3,259; net −2,890). No lease or container was created.