Skip to content

refactor(ui): use Web Awesome controls throughout Control UI - #106865

Merged
steipete merged 28 commits into
mainfrom
codex/control-ui-web-awesome
Jul 14, 2026
Merged

steipete merged 28 commits into
mainfrom
codex/control-ui-web-awesome

Conversation

@steipete

@steipete steipete commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #106266

Follows #106320, which landed the keyboard and focus foundation used by this migration.

What Problem This Solves

Resolves a problem where Control UI dialogs, menus, tabs, selects, switches, and segmented controls used many separate homegrown interaction models, leaving keyboard navigation, focus restoration, and overlay behavior uneven across the app.

Why This Change Was Made

Migrates the complete targeted control surface to Web Awesome 3.10.0, with small OpenClaw adapters only where product state or event semantics need integration. Native text, date, file, and other browser-owned form inputs remain native.

The migration keeps component registration split by route surface, preserves the startup bundle budget, and adds a guard against reintroducing the retired homegrown control patterns.

User Impact

Users get consistent keyboard-operable dialogs, menus, tabs, selection controls, and switches throughout Control UI. Escape handling, focus return, responsive popover placement, reconnect state, and assistive semantics remain covered across the migrated workflows.

Evidence

@steipete
steipete requested a review from a team as a code owner July 13, 2026 22:34
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • pnpm-lock.yaml
  • ui/package.json

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: 18ab0107e14b2c34464a480c1c0b599d553c7795
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Jul 13, 2026
@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Jul 13, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 14, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 18ab0107e1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +372 to +373
@wa-tab-show=${(event: CustomEvent<{ name: string }>) =>
navigateToWorkspaceTab(event.detail.name)}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Guard same-tab workspace tab events

When the Workspaces view mounts, Web Awesome can emit wa-tab-show for the already active tab, but this handler unconditionally calls navigateToWorkspaceTab(), which always does history.pushState. Opening a workspace deep link such as /plugin?plugin=workspaces&id=workspaces&ws=main therefore adds a duplicate history entry before the user changes tabs, making Back appear to do nothing once. Skip the navigation when event.detail.name already matches state.activeSlug or the current ws param.

Useful? React with 👍 / 👎.

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready at 18ab0107e14b2c34464a480c1c0b599d553c7795.

Proof:

Known proof gap: a broad UI E2E attempt passed 179/185. The six failures were in unchanged Talk, transcript-search, and usage assertions that did not match current-main behavior; all 46 migration-focused browser flows and the hosted Control UI suite passed.

@steipete
steipete merged commit 8590655 into main Jul 14, 2026
107 of 109 checks passed
@steipete
steipete deleted the codex/control-ui-web-awesome branch July 14, 2026 00:46
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
…w#106865)

* refactor(ui): add Web Awesome foundation

* refactor(ui): migrate shared menus and chat controls

* refactor(ui): migrate page controls to Web Awesome

* refactor(ui): migrate workboard controls to Web Awesome

* fix(ui): harden Web Awesome interactions

* test(ui): type Web Awesome dropdown state

* fix(ui): preserve menu focus and selection

* fix(ui): restore agent picker focus

* fix(ui): track keyboard menu dismissal

* fix(ui): ignore stale session menu closes

* fix(ui): complete Web Awesome keyboard migration

* fix(ui): repair Web Awesome lockfile graph

* docs(ui): keep release note in PR body

* fix(ui): satisfy Web Awesome migration gates

* perf(ui): keep Web Awesome theme in startup stylesheet

* fix(ui): replace reopened Web Awesome session menus

* fix(ui): keep replacement session menus open
@jimmypuckett

Copy link
Copy Markdown
Contributor

Post-merge full UI shard failure on current main (observed while validating unrelated Teams PR #104692):

checks-node-compact-large-2 times out in two unchanged responsive chat browser tests:

  • reveals message context on timestamp hover and keeps click-to-open: cannot find Context hover regression fixture. within 10 seconds
  • renders encoded media extensions from assistant output and transcript fields: cannot find img.chat-message-image within 10 seconds

The shard result is 2 failed / 3,840 passed / 11 skipped. ui/src/pages/chat/chat-responsive.browser.test.ts is not in #104692's diff, so I am leaving that Teams branch unchanged.

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 dependencies-changed PR changes dependency-related files maintainer Maintainer-authored PR merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL 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.

Control UI: migrate composite controls to accessible web components

2 participants