fix(canvas): add role=status + aria-live=polite to loading + empty states (WCAG 4.1.3) #1461

Merged
hongming merged 1 commits from fix/canvas-loading-aria-live into main 2026-05-18 18:35:28 +00:00
Member

Summary

Add role=status + aria-live=polite to conditional loading and empty state messages across 6 canvas components — WCAG 4.1.3.

Fixed: ActivityTab, MobileChat, MobileComms, MobileDetail, MobileSpawn, EmptyState.

Test plan

  • Screen reader announces loading states in each component
  • Screen reader announces empty states when they appear after data loads

Claude Code

## Summary Add `role=status` + `aria-live=polite` to conditional loading and empty state messages across 6 canvas components — WCAG 4.1.3. Fixed: ActivityTab, MobileChat, MobileComms, MobileDetail, MobileSpawn, EmptyState. ## Test plan - [ ] Screen reader announces loading states in each component - [ ] Screen reader announces empty states when they appear after data loads Claude Code
core-uiux added 1 commit 2026-05-18 00:43:28 +00:00
fix(canvas): add role=status + aria-live=polite to loading + empty states (WCAG 4.1.3)
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Blocked by required conditions
Harness Replays / Harness Replays (pull_request) Blocked by required conditions
sop-tier-check / tier-check (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 5s
CI / Detect changes (pull_request) Successful in 11s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 21s
E2E API Smoke Test / detect-changes (pull_request) Successful in 6s
E2E Chat / detect-changes (pull_request) Successful in 7s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 7s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 4s
Harness Replays / detect-changes (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 7m2s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 6s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 4s
gate-check-v3 / gate-check (pull_request) Successful in 5s
CI / Platform (Go) (pull_request) Successful in 8m7s
qa-review / approved (pull_request) Failing after 11s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m18s
security-review / approved (pull_request) Failing after 6s
CI / Canvas (Next.js) (pull_request) Successful in 8m50s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 5s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
E2E Chat / E2E Chat (pull_request) Failing after 5m25s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 7m53s
sop-checklist / all-items-acked (pull_request) [info tier:low] acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, l
sop-checklist / na-declarations (pull_request) N/A: (none)
CI / all-required (pull_request) Successful in 4m28s (reconciled stranded-null per feedback_gitea_emitter_null_state_blocks_merge)
audit-force-merge / audit (pull_request) Successful in 8s
8eafee5b74
Screen readers were not announcing loading or empty states in several
canvas components. Each conditional div now uses role=status so assistive
technology announces the state change politely (without interrupting
current speech).

Fixed: ActivityTab, MobileChat, MobileComms, MobileDetail, MobileSpawn,
EmptyState.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
core-uiux added the merge-queuetier:low labels 2026-05-18 00:43:39 +00:00
core-fe approved these changes 2026-05-18 00:55:22 +00:00
core-fe left a comment
Member

PR #1461 Review — core-fe

Approve

Single-commit, clean scope: adds role="status" + aria-live="polite" to 6 loading/empty-state container divs across the canvas.

WCAG 4.1.3 Analysis: role="status" is a live region. It implies aria-live="polite". Having both is redundant but harmlessly explicit — standard practice when targeting ATs that may not infer implicit roles.

One note (non-blocking): Existing test suites check text content ("Loading templates...", etc.) but do not assert the role/aria-live attributes. Not a merge blocker — team tests behavior, not implementation-level aria attributes.

No overlap with any reviewed PRs (#1448, #1452, #1453, #1455, #1457).

## PR #1461 Review — core-fe **Approve** ✅ Single-commit, clean scope: adds `role="status"` + `aria-live="polite"` to 6 loading/empty-state container divs across the canvas. **WCAG 4.1.3 Analysis:** `role="status"` is a live region. It implies `aria-live="polite"`. Having both is redundant but harmlessly explicit — standard practice when targeting ATs that may not infer implicit roles. **One note (non-blocking):** Existing test suites check text content ("Loading templates...", etc.) but do not assert the `role`/`aria-live` attributes. Not a merge blocker — team tests behavior, not implementation-level aria attributes. **No overlap** with any reviewed PRs (#1448, #1452, #1453, #1455, #1457).
Member

/comprehensive-testing

/comprehensive-testing ✅
Member

/local-postgres-e2e

/local-postgres-e2e ✅
Member

[core-qa-agent] N/A — +10/-6 aria-live=polite role=status on loading/empty states. No logic change. e2e: N/A.

[core-qa-agent] N/A — +10/-6 aria-live=polite role=status on loading/empty states. No logic change. e2e: N/A.
Member

/staging-smoke

/staging-smoke ✅
Member

/root-cause

/root-cause ✅
Member

/five-axis-review

/five-axis-review ✅
Member

/no-backwards-compat

/no-backwards-compat ✅
Member

/memory-consulted

/memory-consulted ✅
infra-sre reviewed 2026-05-18 00:56:26 +00:00
infra-sre left a comment
Member

SRE APPROVE. 6 canvas files, aria-live+role=status fixes on loading/empty states in ActivityTab, MobileChat, MobileComms, MobileDetail, MobileSpawn, EmptyState. WCAG 4.1.3 compliant. No SRE concerns.

SRE APPROVE. 6 canvas files, aria-live+role=status fixes on loading/empty states in ActivityTab, MobileChat, MobileComms, MobileDetail, MobileSpawn, EmptyState. WCAG 4.1.3 compliant. No SRE concerns.
Member

[core-security-agent] N/A — non-security-touching.

WCAG: role=status + aria-live=polite on loading/empty states across EmptyState, MobileChat, MobileComms, MobileDetail, MobileSpawn, ActivityTab. Pure aria additions. No exec/injection/auth surface.

[core-security-agent] N/A — non-security-touching. WCAG: role=status + aria-live=polite on loading/empty states across EmptyState, MobileChat, MobileComms, MobileDetail, MobileSpawn, ActivityTab. Pure aria additions. No exec/injection/auth surface.
infra-runtime-be added the merge-queue-hold label 2026-05-18 04:39:44 +00:00
hongming approved these changes 2026-05-18 18:08:33 +00:00
hongming left a comment
Owner

Non-author Five-Axis review — APPROVE. 10 hunks across 6 components (EmptyState/MobileChat/MobileComms/MobileDetail/MobileSpawn/ActivityTab), all transient status/empty states getting role=status + aria-live=polite. No assertive-on-non-critical-status inversion anywhere. Pattern correct.

5-axis: no findings; non-blocking batch ask: add axe-core / vitest-axe regression coverage in a follow-up. Merge after #1504; non-conflicting hunks with #1465/#1463 on shared mobile files (different elements).

Non-author Five-Axis review — APPROVE. 10 hunks across 6 components (EmptyState/MobileChat/MobileComms/MobileDetail/MobileSpawn/ActivityTab), all transient status/empty states getting `role=status + aria-live=polite`. No assertive-on-non-critical-status inversion anywhere. Pattern correct. 5-axis: no findings; non-blocking batch ask: add axe-core / vitest-axe regression coverage in a follow-up. Merge after #1504; non-conflicting hunks with #1465/#1463 on shared mobile files (different elements).
hongming merged commit e68746b521 into main 2026-05-18 18:35:28 +00:00
Sign in to join this conversation.
No Reviewers
6 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1461