Make the accessibility scan read nested route folders
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 92/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react-native, typescript
- 領域
- accessibility, mobile, testing
調査の方向性
まず apps/mobile/src/a11y-scan.test.ts から始め、スキャン対象ファイルの一覧に app/oauth/mcp.tsx が含まれることを期待するテストを追加します。issue に記載されたコマンドを実行し、失敗することを確認します。次に、apps/mobile/src/icons.test.ts にある再帰的な readdirSync の例に従い、.tsx ファイルを対象に含め、join() で期待するパスを組み立てます。対象を絞ったテストと pnpm --filter @hermit/mobile test を実行します。必要なファイルがスキャンされ、ラベルのないコントロールがなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 11
- フォーク
- 0
- 平均マージ
- 10分
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DojoCodingLabs/hermit のほかの issue
-
docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
DojoCodingLabs/hermit#73 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DojoCodingLabs/hermit#45 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
DojoCodingLabs/hermit#44 ·
メンテナーはふだん 1 日以内に返信
-
device-lab
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DojoCodingLabs/hermit#43 ·
メンテナーはふだん 1 日以内に返信
-
agent-friendly docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
DojoCodingLabs/hermit#39 ·
メンテナーはふだん 1 日以内に返信
DojoCodingLabs/hermit の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
superlinked/sie#1033 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
remix-run/react-router#15838 ·
メンテナーはふだん 1 日以内に返信
-
area/ci bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
melgarafael/DeskcommCRM#5290 ·
メンテナーはふだん 1 日以内に返信