Skip to content

fix(ui): expose selected automation filters and preserve keyboard focus - #118133

Merged
steipete merged 1 commit into
mainfrom
codex/auto-qa-cron-filter-label-3eba
Aug 2, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/auto-qa-cron-filter-label-3eba

Conversation

@steipete

@steipete steipete commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes Control UI automation-history filters that screen readers announced without their currently selected values, plus dropdown menus that could retain keyboard focus after closing.

Why This Change Was Made

Keep accessibility ownership at the filter renderer and shared Web Awesome dropdown lifecycle: generate localized selected-value labels and make closing menus inert before browser focus advances. Consolidate stable UI storage/i18n test setup instead of adding feature-specific workarounds.

User Impact

Keyboard and screen-reader users hear complete localized automation status/delivery selections and can safely move between filters after pressing Escape. English and German filter behavior, Gateway filter requests, and ordinary dropdown interactions remain consistent.

Evidence

  • Immutable reviewed candidate: 88c4a0d0b0ca780a4940bd025d04582457198f7a.
  • Four fresh independent nonauthor whole-owner reviews and genuine gpt-5.6-sol high-reasoning P0–P3 autoreview: no actionable findings; genuine TruffleHog clean.
  • The parent fails the authentic screen-reader regression (Status instead of Status All statuses) and separately fails the real Chromium/German keyboard regression because a closing menu remains focusable.
  • Exact final candidate: 220/220 owner tests, 12/12 real Chromium browser scenarios, full ten-file parent-scoped changed gate, Control UI production build, 700 precompressed assets, and startup performance budget all pass.
  • Exact Blacksmith Testbox proof: https://github.com/openclaw/openclaw/actions/runs/30761392765. The single lease was explicitly stopped and independently verified completed.

Real behavior proof

An isolated real Chromium browser opened the actual Control UI, issued real automation-history Gateway filter requests, exercised English and German localized dropdowns, selected filters, pressed Escape, and used native keyboard Tab navigation. Four English/German initial/selected screenshots were captured outside the repository.

{
  "head": "88c4a0d0b0ca780a4940bd025d04582457198f7a",
  "parent": "3eba9fcd5aa410152a0be571a2f981b5609ab086",
  "parentA11y": "FAIL: Status != Status All statuses",
  "parentGermanKeyboard": "FAIL: closing dropdown remained focusable",
  "ownerTests": 220,
  "realChromiumScenarios": 12,
  "localizedScreenshots": 4,
  "hiddenMenuIsInert": true,
  "tabReachedDelivery": true,
  "englishFilterGatewayRequests": 7,
  "changedGate": "PASS: all ten paths, no checks skipped",
  "productionUiBuild": "PASS",
  "precompressedSidecars": 700,
  "startupRequests": 12,
  "startupGzipKiB": 305,
  "startupGzipLimitKiB": 317,
  "run": "https://github.com/openclaw/openclaw/actions/runs/30761392765",
  "status": "PASS"
}

The candidate's actual frozen parent was used for its changed gate because newer main changed unrelated max-lines baseline entries; every formatting, package-boundary, i18n, TypeScript, lint, dead-code, and performance check still ran and passed.

Rank-up moves addressed

  1. Moving-main refresh: No rebase is performed solely because main advanced. Direct comparison confirmed that current main changed none of the ten reviewed UI paths or adjacent UI owners; the exact reviewed head remains mergeable, all hosted browser shards are green, and repository landing policy treats unrelated mainline drift as advisory.

Maintainer review

The repository owner explicitly delegated autonomous landing of low-risk, independently reviewed QA fixes. The acting maintainer personally inspected installed @awesome.me/webawesome 3.10.0, including dist/components/dropdown/dropdown.d.ts (documented wa-hide / wa-after-hide lifecycle) and dist/chunks/chunk.MQODJ75V.js (wa-hide is cancelable), addressing the reviewer sandbox's missing dependency/promisor limitation. Four independent nonauthor source reviews, clean genuine Sol/TruffleHog review, real parent-failure reproduction, 220 passing owner tests, 12 passing Chromium scenarios, four localized screenshots, the complete changed gate, production UI build, and green hosted CI were verified before repo-native maintainer preparation.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Aug 2, 2026
@steipete
steipete marked this pull request as ready for review August 2, 2026 18:57
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 3:02 PM ET / 19:02 UTC.

ClawSweeper review

What this changes

Updates Control UI automation-history filters to announce localized selected values and makes closing Web Awesome dropdown menus leave keyboard tab order before their hide animation, with focused UI and browser regression coverage.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open: current main still omits the selected automation-filter values from the trigger’s accessible name and has no shared closing-menu inert lifecycle. The proposed owner-boundary split—filter-local labels plus the existing shared Web Awesome adapter—is a sound fix, with real Chromium proof recorded in the PR body; the protected maintainer label means it should remain for explicit maintainer handling rather than cleanup automation.

Priority: P2
Reviewed head: 88c4a0d0b0ca780a4940bd025d04582457198f7a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-covered accessibility repair with strong recorded browser evidence; dependency-source inspection was blocked by this checkout's unavailable promisor remote.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body supplies after-fix real Chromium output covering localized filter selection, Gateway requests, Escape/Tab focus behavior, parent failures, and a successful real-behavior-proof workflow; no contributor action is needed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body supplies after-fix real Chromium output covering localized filter selection, Gateway requests, Escape/Tab focus behavior, parent failures, and a successful real-behavior-proof workflow; no contributor action is needed.
Evidence reviewed 5 items Current main retains the accessible-name defect: The current run-history filter trigger assigns only its title to aria-label while rendering the selected summary separately, so assistive technology does not receive the selected status or delivery value.
Current main lacks the closing-menu guard: The current shared adapter starts label synchronization on wa-show and stops it after hiding, but it does not handle wa-hide to remove a closing menu from tab order.
Branch fixes at the owning boundaries: The branch derives the full selected-label list in the filter renderer for the accessible name, while the shared dropdown adapter waits for the final hide outcome and marks only actually-closing menus inert.
Findings None None.
Security None None.

How this fits together

The Control UI Automations run-history view turns selected status and delivery filters into labeled dropdown controls and Gateway filter requests. Its shared Web Awesome adapter manages popup accessibility and lifecycle behavior for those controls and other UI menus.

flowchart LR
  A[Automation history state] --> B[Run-history filter renderer]
  B --> C[Localized selected-value label]
  C --> D[Web Awesome dropdown]
  D --> E[Keyboard and screen-reader navigation]
  B --> F[Gateway filter request]
  D --> G[Shared menu lifecycle]
Loading

Before merge

  • Resolve merge risk (P1) - The partial checkout could not retrieve a missing promisor blob or inspect the installed Web Awesome dependency because DNS resolution for the remote failed; retain the focused real-browser validation when refreshing the branch.
  • Complete next step (P2) - This focused PR has no discrete repair finding, and its protected maintainer label requires explicit maintainer handling rather than an automated repair lane.
Agent review details

Security

None.

PR surface

Source +52, Tests +479. Total +531 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 5 106 54 +52
Tests 5 494 15 +479
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 600 69 +531

Review metrics

None.

Stored data model

Persistent data-model change detected: durable storage schema: ui/src/test-helpers/storage.ts, serialized state: ui/src/i18n/lib/translate.test.ts, serialized state: ui/src/test-helpers/lit-warnings.setup.ts, serialized state: ui/src/test-helpers/storage.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep filter-specific accessible summaries in the run-history renderer and the hide-transition focus rule in the shared dropdown adapter, then land the focused change after a current-base validation refresh and maintainer approval.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep filter-specific accessible summaries in the run-history renderer and the hide-transition focus rule in the shared dropdown adapter, then land the focused change after a current-base validation refresh and maintainer approval.

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

Yes, from source: current main sets the filter trigger aria-label to only the generic title and has no wa-hide inert handler; the PR body also records a parent-versus-candidate Chromium reproduction. This read-only checkout could not rerun it because the partial clone could not resolve its promisor remote.

Is this the best way to solve the issue?

Yes. The change records selected values where the filter is rendered and fixes focus at the one shared dropdown lifecycle boundary, avoiding duplicated menu behavior in individual controls.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs a concrete accessibility and keyboard-navigation regression in the Control UI with limited blast radius outside dropdown consumers.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies after-fix real Chromium output covering localized filter selection, Gateway requests, Escape/Tab focus behavior, parent failures, and a successful real-behavior-proof workflow; no contributor action is needed.
  • 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 (live_output): The PR body supplies after-fix real Chromium output covering localized filter selection, Gateway requests, Escape/Tab focus behavior, parent failures, and a successful real-behavior-proof workflow; no contributor action is needed.

Label justifications:

  • P2: This repairs a concrete accessibility and keyboard-navigation regression in the Control UI with limited blast radius outside dropdown consumers.
  • 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 (live_output): The PR body supplies after-fix real Chromium output covering localized filter selection, Gateway requests, Escape/Tab focus behavior, parent failures, and a successful real-behavior-proof workflow; no contributor action is needed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies after-fix real Chromium output covering localized filter selection, Gateway requests, Escape/Tab focus behavior, parent failures, and a successful real-behavior-proof workflow; no contributor action is needed.

Evidence

What I checked:

  • Current main retains the accessible-name defect: The current run-history filter trigger assigns only its title to aria-label while rendering the selected summary separately, so assistive technology does not receive the selected status or delivery value. (ui/src/pages/cron/view-runs.ts:118, dc16b1460b07)
  • Current main lacks the closing-menu guard: The current shared adapter starts label synchronization on wa-show and stops it after hiding, but it does not handle wa-hide to remove a closing menu from tab order. (ui/src/components/web-awesome.ts:105, dc16b1460b07)
  • Branch fixes at the owning boundaries: The branch derives the full selected-label list in the filter renderer for the accessible name, while the shared dropdown adapter waits for the final hide outcome and marks only actually-closing menus inert. (ui/src/pages/cron/view-runs.ts:93, 88c4a0d0b0ca)
  • No affected-path drift after the branch parent: A path-scoped comparison from the branch parent to current main returned no changes in the affected production or test-support paths, so the reported behind state does not indicate a same-surface replacement on main. (dc16b1460b07)
  • Feature-history routing: Blame attributes the present filter and shared-dropdown implementation to Peter Steinberger at the shallow-history boundary, making the current author a relevant area owner rather than only the proposer of this branch. (ui/src/components/web-awesome.ts:73, b5a7bc280e46)

Likely related people:

  • steipete: Current-main blame ties both the run-filter and shared dropdown adapter paths to Peter Steinberger, and the PR continues that same accessibility ownership boundary. (role: current feature author and recent area contributor; confidence: high; commits: b5a7bc280e46, 88c4a0d0b0ca; files: ui/src/pages/cron/view-runs.ts, ui/src/components/web-awesome.ts)

Rank-up moves

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

  • Refresh the branch against current main and preserve the focused Chromium proof if the final merge head changes.

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 920a265 into main Aug 2, 2026
152 of 160 checks passed
@steipete
steipete deleted the codex/auto-qa-cron-filter-label-3eba branch August 2, 2026 19:11
@steipete

steipete commented Aug 2, 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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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