Skip to content

fix: identify Claws Add button targets to screen readers - #176184

Merged
shakkernerd merged 2 commits into
mainfrom
openclaw/gentle-shrimp
Oct 18, 2026
Merged

shakkernerd merged 2 commits into
mainfrom
openclaw/gentle-shrimp

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes indistinguishable “Add” buttons for screen-reader users browsing Claws in Explore cards and the catalog dialog.

User Impact

Users can identify the Claw each Add button targets, for example “Add Workflow Operator.” Visible text, layout, disabled state, and details-page navigation are unchanged. No migration or user action is required.

Why This Change Was Made

Reuse the existing localization owner for an Add {name} accessible label on both browsing buttons. This stays separate from #176088’s Usage selector fix and does not change guest access or installation behavior.

The simplification pass retained only three production lines and 20 test lines: one localized string, two ARIA bindings, and a parameterized regression for the two distinct renderers. No new state, wrapper, or dependency.

Evidence

  • Both new accessible-name cases failed before the fix; all 15 focused tests passed afterward.
  • Synthetic Chromium checks passed for both views with Workflow Operator and Research Assistant. Keyboard Enter opens the selected details page without calling claws.add.apply.
  • Focused production-file typecheck passed, including transitive imports; targeted lint (0 warnings/errors), formatting, whitespace, and i18n baseline/verification passed.
  • Independent review of the corrected patch and supplied source/dependency context completed P0–P2 scoped-clean, with no actionable findings. That review inspected source and did not itself execute tests.
  • Full UI typecheck did not complete locally: the initial run timed out, and the bounded retry was killed after 180 seconds. Broad validation was delegated to PR CI and has now passed on the corrected head; the local full UI typecheck itself is not claimed as passed. An artifact-local focused config initially failed with rootDir errors; correcting that harness config produced the focused pass.
  • Unit tests emitted Solid STRICT_READ_UNTRACKED warnings; their baseline provenance has not been established. Tests passed, but this PR does not claim to fix those warnings.

CI follow-up

The initial CI test-types job found unsupported exact: true in the new findByRole query (diagnostic). Removed that option; Testing Library already matches string role names exactly, so the assertion is not weakened. Production code and screenshot inputs are unchanged. Fresh P0–P2 independent review found no actionable issues. Corrected-head CI confirmed the repair: the test-types job passed test/tsconfig/tsconfig.core.test.ui-pages.json with exit code 0.

After the repair, the focused suite passed 15/15 in 5.94 seconds (about 2.6 seconds test time), with formatting and whitespace checks passing. One earlier local attempt, concurrent with lint, failed the existing “updates Explore results when the search changes” assertion (0 results instead of 1); the same file/order passed without concurrent lint. The cause is not proven and the replay is not claimed as a fix. The concurrent lint run timed out at 90 seconds (exit 143); earlier targeted lint and original-head CI lint passed. Corrected-head CI now passes broad validation, including UI tests, selected UI E2E, production/test types, lint, i18n, and guards; no test timeout or assertion was loosened.

Final status: The CI gate passed on 752a7024276c1ef86fed6bc42a2bda3b1c3dc8ec, with all selected prerequisites successful and no failed or timed-out jobs. ClawSweeper re-review reviewed that same head with no findings, no before-merge actions, and sufficient proof. Its earlier “CI pending” note predates the green gate. GitHub reports the PR mergeable with a clean merge state. Merging remains the requester’s decision.

Before / after accessibility evidence

In both Explore and Catalog, the browser accessibility snapshots changed from:

button "Add" / button "Add"

to:

button "Add Workflow Operator": Add / button "Add Research Assistant": Add

Four synthetic 1440×900 screenshots were retained and inspected. Each before/after pair is byte-identical, confirming unchanged appearance; the same uploaded bytes are reused for each pair below. The accessibility-tree excerpts above show the actual change.

View Before After
Explore Explore before: visible Add buttons Explore after: unchanged appearance, target-specific accessible names
Catalog Catalog before: visible Add buttons Catalog after: unchanged appearance, target-specific accessible names

Media verification: replaced broken sandbox-local chat links with hosted evidence URLs. Anonymous retrieval of both linked images returns HTTP 200 with image/png (Explore uses ?raw=1 to avoid the earlier 404 response). Captures were inspected locally; this sandbox cannot inspect GitHub’s rendered page. No screenshot-preview infrastructure changes are included.

Worked on by

Worked on by:
- @gideonpraise

Co-authored-by: gideonpraise <[email protected]>
OpenClaw-Publication: 3c925ce9-923e-4adf-8bde-85c764dbb371
@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@shakkernerd
shakkernerd marked this pull request as ready for review October 18, 2026 10:30
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds localized, target-specific accessible names to Claws Add buttons in Explore and the catalog dialog.

Example: A screen-reader user browses Workflow Operator and Research Assistant.

  • Before: Both controls are announced as “Add.”
  • After: The controls are announced as “Add Workflow Operator” and “Add Research Assistant.”

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused browser evidence supports a useful, minimal accessibility repair with meaningful regressions and no open findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Supplied Chromium accessibility-tree output exercises Explore and Catalog with Workflow Operator and Research Assistant, showing target-specific names after the fix; inspected screenshots support unchanged appearance, and reported keyboard activation retains details navigation.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Screen-reader users cannot distinguish which Claw each Add button targets when browsing controls by name.
Reason: The maintainer-authored direction restores useful accessible names at negligible complexity while retaining appearance and behavior.

Merge readiness

✅ Ready for maintainer review

This PR fixes a current accessibility defect with a minimal change and no actionable findings; exact-head CI remains pending.

Priority: P2
Reviewed head: 752a7024276c1ef86fed6bc42a2bda3b1c3dc8ec

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI renders Gateway catalog entries through two browsing views, which expose accessible buttons and send the selected Claw to the existing details navigation.

flowchart LR
  A[Gateway catalog entries] --> B[Explore cards]
  A --> C[Catalog dialog]
  D[Localized Add name] --> B
  D --> C
  B --> E[Accessible button]
  C --> E
  E --> F[Existing details navigation]
Loading

Technical review

Best possible solution:

Keep the shared localized label and both direct ARIA bindings while preserving existing navigation and installation ownership.

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

Current-main source shows unnamed Add targets in both renderers, consistent with the supplied before-fix browser accessibility output; no target code was executed during this review.

Is this the best way to solve the issue?

This is the smallest complete fix: each browsing button identifies its target through the existing localization owner, without new state, wrappers, handlers, or dependencies.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 19d311e00246.

Provenance checked

  • Claws browsing buttons and localized Add text keeps the original intent (f469f6d: Present Claw contents and preserve the established Add-to-chat flow.)
  • Direct Solid browsing renderers keeps the original intent (ff3855a: Remove custom-element rendering bridges while preserving navigation, consent, selectors, and focus contracts.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit f469f6d adds ui/src/pages/agents-home/claws-catalog-view.tsx:56 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f469f6da5636; files: ui/src/pages/agents-home/claws-catalog-view.tsx)

PR surface

Source +3, Tests +20. Total +23 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 3 0 +3
Tests 1 20 0 +20
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 23 0 +23

Review metrics

Metric Value Why it matters
Production versus test growth Production +3 lines; tests +20 lines The production growth supplies one shared translation and two bindings; the tests protect accessible naming and navigation in distinct renderers.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: Indistinguishable accessible button names hinder screen-reader browsing in two bounded UI surfaces.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-18T10:46:10.034Z sha 42b3017 :: needs maintainer review before merge. :: none

Reviewed October 18, 2026, 6:54 AM ET / 10:54 UTC (Revision 2).

Worked on by:
- @gideonpraise

Co-authored-by: gideonpraise <[email protected]>
OpenClaw-Publication: 48e3a85c-221d-4883-b9cf-fccc9a1a8a7d
@shakkernerd

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 18, 2026
@shakkernerd
shakkernerd merged commit 4284f1a into main Oct 18, 2026
112 checks passed
@shakkernerd
shakkernerd deleted the openclaw/gentle-shrimp branch October 18, 2026 11:18
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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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