Skip to content

test(mobile): scan nested route folders and top-level tsx screens for a11y - #158

Closed
santinofuentesAI wants to merge 1 commit into
DojoCodingLabs:mainfrom
santinofuentesAI:test/a11y-scan-nested
Closed

santinofuentesAI wants to merge 1 commit into
DojoCodingLabs:mainfrom
santinofuentesAI:test/a11y-scan-nested

Conversation

@santinofuentesAI

Copy link
Copy Markdown
Contributor

What and why

Closes #30

Updates apps/mobile/src/a11y-scan.test.ts to scan app and components recursively via readdirSync(join(SRC, dir), { recursive: true }) and collect every .tsx file directly inside src/ instead of hardcoding app-lock.tsx.

  • Added a test verifying join("app", "oauth", "mcp.tsx"), join("app", "oauth", "microsoft.tsx"), and "app-lock.tsx" are included in the scanned file list (failed before the change, passes after).
  • Confirmed all controls across the expanded file set pass the existing TalkBack role and label checks.

Vision fit

Serves Principle 7 ("Small, typed and tested") and ROADMAP.md ("Now: fewer rough edges in the everyday loop") by ensuring nested route screens cannot silently bypass TalkBack accessibility checks.

Non-negotiables

  • This keeps every non-negotiable in AGENTS.md as it is.
  • Or it changes one, and this is the accepted RFC: #

Checklist

  • It closes one issue, linked above, or it's a small fix (a typo, a broken link, a wrong comment). A feature has an accepted proposal.
  • I wrote the failing test first. It fails without this change and passes with it.
  • These pass: pnpm check:privacy, pnpm typecheck, pnpm lint, pnpm test and node scripts/guard/check.mjs --base origin/main --patterns scripts/guard/patterns.txt.
  • No new network call, telemetry, analytics, ads or crash reporting. (A new request in an app adapter is explained below, with its host, skill and risk.)
  • No new dependency, or the reason for each one is below.
  • Every UI string is in packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes. (n/a: test-only change.)
  • Tests, fixtures and screenshots use made-up data only.

Model path

  • This doesn't touch the model path: packages/model, agent, skills or eval, the prompt, the router, tool descriptions, normalizers, examples or the model file.
  • It does. The eval numbers from before and after are below, run as docs/evals.md says. No held-out case was tuned on.

Screenshots

  • No UI change.
  • UI change. Each changed screen is below, in both themes and both languages, with made-up data.

New dependencies and network calls

n/a

AI agents

  • No AI agent wrote any part of this.
  • An AI agent helped. Which one, and what it did: Antigravity updated a11y-scan.test.ts, ran all five gates against origin/main (6f0d47e), and drafted this PR description.
  • I read and ran everything in this pull request, and I can explain it.

… a11y (DojoCodingLabs#30)

Signed-off-by: Santino Fuentes <santinofuentesAI@users.noreply.github.com>
@juancguerrerodev

Copy link
Copy Markdown
Contributor

Thanks, Santino, and sorry about this one too. You opened it before #159, but it didn't show up in the open list when I merged the queue this afternoon, so #159, which makes the same change to the scan, landed first. Closing this as a duplicate. If yours covers something #159 doesn't, open a small follow-up with just that part and I'll merge it. 🦀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the accessibility scan read nested route folders

2 participants