Skip to content

fix(ui): make Automations task rows accessible - #127252

Merged
steipete merged 1 commit into
mainfrom
codex/autoqa-automations-row-a11y
Aug 21, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/autoqa-automations-row-a11y

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes two accessibility issues where users navigating Automations with a keyboard or assistive technology encountered invalid and ambiguous task-list semantics. The visual column heading was exposed as an orphan ARIA row without a table/grid owner or cell roles, while each task row was exposed as one large button containing separate Run, enable/disable, and menu controls.

Why This Change Was Made

The visual CSS grid no longer claims partial table semantics, and each task's name/details cell is now the native button that opens that task. The neutral row remains a convenient pointer target, while Run, enable/disable, and menu actions remain independent sibling controls. This preserves existing task behavior and reconnect/removal ownership without adding a second interaction model or changing Gateway contracts.

Production LOC: +9/-17 (net -8) | Tests: +23/-3

User Impact

Keyboard and assistive-technology users now get one named native control for opening a task instead of a faux button containing other interactive controls. Automations no longer exposes unsupported partial table roles, while pointer users retain the existing large row target and all inline actions.

Evidence

Authentic regressions were captured before the production edit:

  • the ARIA-invariant regression found an exposed role="row" without a table, grid, or treegrid ancestor and failed with expected null not to be null;
  • the task-row regression found the row still exposed as role="button" and failed with expected 'button' to be null.

Post-fix verification on commit b80171047846d6f7459ead226c345988bc6c4cfb:

  • 85/85 focused Automations owner/page/view tests passed;
  • 1/1 real source-mode Chromium mocked-Gateway E2E passed, exercising the named native task button with Enter, removal, and reconnect fencing;
  • a separate 390×844 source-Chromium run passed and confirmed the focused task facts/actions remain visible without clipping;
  • the full changed-file format, type, lint, and test gate passed;
  • focused Stylelint passed for ui/src/styles/cron.css;
  • fresh Codex autoreview found no actionable issue through P3 (patch-correct confidence 0.96).

No exact open duplicate was found across live issue/PR searches for Automations row/table/nested-interactive accessibility. The original partial-role implementation traces to PR #105174 (17a533ce268…).

Before After
Automations task list before the semantics repair Automations task list after the semantics repair

Mobile source-Chromium proof:

Automations task row focused at 390 by 844 CSS pixels

AI-assisted implementation and verification; no agent transcript is attached.

@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

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

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 11:50 AM ET / 15:50 UTC.

ClawSweeper review

What this changes

The PR makes Automations task rows presentation-only and turns each task’s name/details cell into a native button for opening that task.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal member-maintainer handling. The focused patch removes the invalid interactive hierarchy while preserving the existing task-selection owner and independent row actions; no blocking correctness or security finding was identified.

Priority: P2
Reviewed head: b80171047846d6f7459ead226c345988bc6c4cfb
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-negative repair with direct browser-oriented regression coverage and inspected visual evidence.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-maintainer PR is exempt from the external-contributor proof gate; its supplied before/after desktop and mobile Chromium screenshots were nevertheless inspected and support the focused UI claim.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-maintainer PR is exempt from the external-contributor proof gate; its supplied before/after desktop and mobile Chromium screenshots were nevertheless inspected and support the focused UI claim.
Evidence reviewed 6 items Current-main accessibility defect: Current main gives each visual task row button semantics while placing Run, enable/disable, and menu controls inside it, creating the invalid nested-interactive boundary this PR targets.
Owner-boundary repair: The PR removes the row role and keyboard emulation, makes the name/details cell a native button, and leaves the parent selection callback as the existing detail-view owner.
Caller remains unchanged: The page still passes task selection to selectJob, so the semantics repair does not add a second navigation path or alter Gateway behavior.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cron-remove.e2e.test.ts

Result: FAIL (failed) — step 1 run node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cron-remove.e2e.test.ts: terminal command did not produce output within 20 seconds: "node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cron-remove.e2e.test.ts"

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cron-remove.e2e.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-127252-SlGwYp/target$ node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoad
er runner ui/src/e2e/cron-remove.e2e.test.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-127252-SlGwYp/target

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cron-remove.e2e.test.ts












































Assertions:

  • FAIL expect_output: 1 passed

How this fits together

The Control UI receives scheduled-task data from the Gateway and renders it as the Automations list. Selecting a task opens its existing detail view, while run, enable, and menu controls remain separate actions in the same row.

flowchart LR
A[Gateway task data] --> B[Automations page]
B --> C[Task list row]
C --> D[Native task button]
D --> E[Task detail view]
C --> F[Independent task actions]
Loading

Decision needed

Question Recommendation
Should this member-authored accessibility repair land after its exact-head checks complete? Land after checks: Accept the focused native-button repair once required checks are green on the reviewed head.

Why: The patch is correct on review, but the protected maintainer label and member authorship require an explicit human merge decision.

Before merge

None.

Agent review details

Security

None.

PR surface

Source -8, Tests +20. Total +12 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 9 17 -8
Tests 2 23 3 +20
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 32 20 +12

Review metrics

Metric Value Why it matters
Production versus test LOC production +9/-17 (net -8); tests +23/-3 (net +20) The bug fix reduces production interaction code while adding focused semantic and keyboard-regression coverage.

Technical review

Best possible solution:

Retain the presentation-only row, native task-name button, and sibling action controls; land once the member maintainer accepts the patch and exact-head checks complete.

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

Yes: current main exposes the task container as a button around independent controls, and the PR’s focused Chromium E2E covers focusing the replacement button and opening the task with Enter.

Is this the best way to solve the issue?

Yes: a native button at the task-open boundary removes the invalid nested interaction without requiring a full table/grid rewrite or changing the existing selection owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded accessibility defect in the Automations workflow with limited blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-maintainer PR is exempt from the external-contributor proof gate; its supplied before/after desktop and mobile Chromium screenshots were nevertheless inspected and support the focused UI claim.

Label justifications:

  • P2: This is a bounded accessibility defect in the Automations workflow with limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-maintainer PR is exempt from the external-contributor proof gate; its supplied before/after desktop and mobile Chromium screenshots were nevertheless inspected and support the focused UI claim.

Evidence

What I checked:

  • Current-main accessibility defect: Current main gives each visual task row button semantics while placing Run, enable/disable, and menu controls inside it, creating the invalid nested-interactive boundary this PR targets. (ui/src/pages/cron/view.ts:778, 5eb28a3b404c)
  • Owner-boundary repair: The PR removes the row role and keyboard emulation, makes the name/details cell a native button, and leaves the parent selection callback as the existing detail-view owner. (ui/src/pages/cron/view.ts:776, b80171047846)
  • Caller remains unchanged: The page still passes task selection to selectJob, so the semantics repair does not add a second navigation path or alter Gateway behavior. (ui/src/pages/cron/cron-page.ts:456, b80171047846)
  • Focused regression coverage: The changed tests reject incomplete ARIA row semantics and exercise focusing the named native task button and opening the detail view with Enter. (ui/src/e2e/cron-remove.e2e.test.ts:64, b80171047846)
  • Inspected visual proof: The supplied before/after desktop and mobile Chromium screenshots visibly show the focus target moving from the whole row to the task-name button without clipping adjacent actions. (ui/src/styles/cron.css:326, b80171047846)
  • Recent area history: Recent main history shows continuing Automations-list maintenance in the same view and stylesheet, including the desktop/mobile declutter change. (ui/src/pages/cron/view.ts:728, f94f9453147f)

Likely related people:

  • steipete: Authored the merged Automations redesign and is represented in recent main history for the same list-view surface. (role: original Automations redesign author and recent area contributor; confidence: high; commits: 17a533ce2689, f94f9453147f; files: ui/src/pages/cron/view.ts, ui/src/styles/cron.css)

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.

Copy link
Copy Markdown
Contributor Author

Land-ready verification

Reviewed head b80171047846d6f7459ead226c345988bc6c4cfb is ready to land.

  • Authentic pre-fix regressions failed for both root causes: the visual header exposed an orphan role=row, and each task remained an outer role=button containing independent controls.
  • 85/85 focused Automations owner/page/view tests passed.
  • 1/1 real source-mode Chromium mocked-Gateway E2E passed for keyboard task opening, removal, and reconnect fencing.
  • A separate 390×844 source-Chromium run passed with the focused task facts/actions visible and unclipped.
  • Fresh Codex autoreview found no actionable issue through P3 (patch-correct confidence 0.96).
  • The current ClawSweeper review found no correctness or security issue, listed no rank-up moves, and has no pre-merge action.

Exact local/landing commands:

node scripts/check-changed.mjs -- ui/src/pages/cron/view.ts ui/src/pages/cron/view.test.ts ui/src/e2e/cron-remove.e2e.test.ts ui/src/styles/cron.css
node_modules/.bin/stylelint ui/src/styles/cron.css
scripts/pr review-validate-artifacts 127252
OPENCLAW_TESTBOX=1 scripts/pr prepare-run 127252
node scripts/watch-pr-ci.mjs 127252 b80171047846d6f7459ead226c345988bc6c4cfb

The full changed-file format/type/lint/test gate and focused Stylelint passed. Exact-head CI run 32499079574 is green. Its first checks-ui-e2e (5/12) attempt timed out in unrelated new-session-page.cloud-startup.e2e.test.ts; source inspection showed this rendering-only Automations diff cannot reach that session-storage recovery path, the isolated source-Chromium test passed 1/1 in 2 seconds, and the single failed-job rerun passed. No failing check is being waived.

Visual proof:

Production is +9/-17 (net -8); tests are +23/-3. No docs, changelog, Gateway contract, persistence, configuration, or security change is required.

@steipete
steipete merged commit 7085604 into main Aug 21, 2026
323 of 325 checks passed
@steipete
steipete deleted the codex/autoqa-automations-row-a11y branch August 21, 2026 16:05

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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

2 participants