Make the accessibility scan read nested route folders
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 92/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react-native, typescript
- Domain
- accessibility, mobile, testing
Research direction
Start with apps/mobile/src/a11y-scan.test.ts and add the test that expects app/oauth/mcp.tsx in the scanned file list; run the command in the issue to confirm it fails. Then follow the recursive readdirSync example in apps/mobile/src/icons.test.ts, keeping .tsx files and building expected paths with join(). Run the focused test and pnpm --filter @hermit/mobile test; done means the required files are scanned and no control is unlabelled.
Written by the indexing model from the issue text.
Description
Why
apps/mobile/src/a11y-scan.test.ts checks that every control on every screen has a role and a TalkBack label, but it only reads files directly inside src/app and src/components, so screens in subfolders such as src/app/oauth/ are never scanned. ROADMAP.md, Now: fewer rough edges in the everyday loop.
What to do
Today src/app/oauth/mcp.tsx and src/app/oauth/microsoft.tsx have no controls, so nothing is missed yet; the next control added in a subfolder would be. The list also names app-lock.tsx by hand.
- Test first: add a test that the list of scanned files includes
app/oauth/mcp.tsx. Run it and watch it fail. - Build the list with
readdirSync(dir, { recursive: true }), asapps/mobile/src/icons.test.tsdoes, keeping.tsxfiles. Instead of namingapp-lock.tsxby hand, include every.tsxfile directly insidesrc. - Run the whole file. The scan must still find no unlabelled control.
Done when
- The scan reads every
.tsxfile undersrc/appandsrc/componentsat any depth, and every.tsxfile directly insidesrc. pnpm --filter @hermit/mobile testpasses.
How to check
(cd apps/mobile && node --test --experimental-strip-types src/a11y-scan.test.ts)
pnpm --filter @hermit/mobile test
Keep in mind
- Change only
a11y-scan.test.ts, anda11y-scan.tsonly if you must. If the wider scan finds a control without a label, fix it in its own pull request: that one changes a screen and needs screenshots. readdirSyncwithrecursivereturns paths with the system's separator. Build expected paths withjoin(), so the test passes on Windows too.
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 0
- Avg merge
- 10m
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DojoCodingLabs/hermit
-
docs good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
DojoCodingLabs/hermit#73 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
DojoCodingLabs/hermit#45 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
DojoCodingLabs/hermit#44 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DojoCodingLabs/hermit#43 ·
Maintainers usually reply within 1 day
-
agent-friendly docs good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
DojoCodingLabs/hermit#39 ·
Maintainers usually reply within 1 day
All issues in DojoCodingLabs/hermit
Similar issues
-
bug zoo
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
software-mansion/runntime#151 ·
Maintainers usually reply within 4 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
sidebandstudio/clawtrate#728 ·
Maintainers usually reply within 1 day
-
enhancement github_actions help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainers usually reply within 1 day
-
bug tooling
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
endora-commerce/endora-commerce#1978 ·
Maintainers usually reply within 1 day