toybox-screens
Builds Pocket Arcade screens S1-S15 to their Toybox specs: layout, spacing, the exact screen-map testIDs, copy keys, every state, banner slots, reference images. Use when building or changing a screen, overlay or dialog. Not for components (toybox-components) or pixel compare (toybox-visual-parity).
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- toybox-screens
- description
- Builds Pocket Arcade screens S1-S15 to their Toybox specs: layout, spacing, the exact screen-map testIDs, copy keys, every state, banner slots, reference images. Use when building or changing a screen, overlay or dialog. Not for components (toybox-components) or pixel compare (toybox-visual-parity).
02 资源文件 500
- 资产文件assets/copy-deck.json153.4 KB
- 资产文件assets/reference/s1-splash.png47.8 KB
- 资产文件assets/reference/s10-statistics-empty.png57.4 KB
- 资产文件assets/reference/s10-statistics.png179.8 KB
- 资产文件assets/reference/s11-settings.png241.1 KB
- 资产文件assets/reference/s11a-language.png57.5 KB
- 资产文件assets/reference/s11b-about-and-credits.png112.5 KB
- 资产文件assets/reference/s11c-privacy-policy.png192.7 KB
- 资产文件assets/reference/s11d-licences.png174.4 KB
- 资产文件assets/reference/s12-already-owned.png29.5 KB
- 资产文件assets/reference/s12-error.png32.7 KB
- 资产文件assets/reference/s12-loading-price.png35.8 KB
- 资产文件assets/reference/s12-pending-approval.png35.7 KB
- 资产文件assets/reference/s12-premium.png88.6 KB
- 资产文件assets/reference/s12-purchase-in-progress.png37.7 KB
- 资产文件assets/reference/s12-restore-results-toasts.png39.6 KB
- 资产文件assets/reference/s12-store-unavailable-offline.png35.4 KB
- 资产文件assets/reference/s12-success.png30.7 KB
- 资产文件assets/reference/s13-how-to-play.png78.1 KB
- 资产文件assets/reference/s14-progress-restored.png86.9 KB
- 资产文件assets/reference/s14-reset-all-progress.png95.3 KB
- 资产文件assets/reference/s14-restart-to-apply.png69.1 KB
- 资产文件assets/reference/s15-debug-menu.png131.9 KB
- 资产文件assets/reference/s2-language-choice.png69.3 KB
- 资产文件assets/reference/s3-consent-moment.png66.1 KB
- 资产文件assets/reference/s3-google-s-form.png66.8 KB
- 资产文件assets/reference/s4-home-dark-en.png103.3 KB
- 资产文件assets/reference/s4-home-light-fa.png96.7 KB
- 资产文件assets/reference/s4-home-premium.png100.8 KB
- 资产文件assets/reference/s4-home.png102.6 KB
- 资产文件assets/reference/s6-pause.png77.6 KB
- 资产文件assets/reference/s7-result-lose.png76.5 KB
- 资产文件assets/reference/s7-result-win.png83.6 KB
- 资产文件assets/reference/s8-levels.png156.7 KB
- 资产文件assets/reference/s9-daily-challenge.png94.5 KB
- 资产文件assets/screen-testids.json213.7 KB
- 资产文件assets/shared.json582 B
- 资产文件assets/toybox-tokens.json103.1 KB
- 参考文档references/component-contract.md18.8 KB
- 参考文档references/s01-splash.md7.7 KB
- 参考文档references/s02-language-choice.md7.4 KB
- 参考文档references/s03-consent.md6.2 KB
- 参考文档references/s04-home.md16.2 KB
- 参考文档references/s05-game.md18.7 KB
- 参考文档references/s06-pause.md8.1 KB
- 参考文档references/s07-result.md18.5 KB
- 参考文档references/s08-levels.md12.9 KB
- 参考文档references/s09-daily.md9.9 KB
- 参考文档references/s10-statistics.md15.6 KB
- 参考文档references/s11-settings.md19.9 KB
- 参考文档references/s11a-language.md5.4 KB
- 参考文档references/s11b-about.md5.4 KB
- 参考文档references/s11c-privacy-policy.md6.6 KB
- 参考文档references/s11d-licences.md9.0 KB
- 参考文档references/s12-premium.md17.5 KB
- 参考文档references/s13-how-to-play.md9.4 KB
- 参考文档references/s14-dialogs.md13.6 KB
- 参考文档references/s15-debug.md18.7 KB
- 参考文档references/screen-frame-and-rules.md42.6 KB
- 脚本scripts/check-lib.mjs44.4 KB
- 脚本scripts/check-screens.mjs45.4 KB
- 脚本scripts/lib/screen-map.mjs22.3 KB
- 脚本scripts/lib/source-scan.mjs10.0 KB
- 脚本scripts/list-screen.mjs7.2 KB
- 脚本scripts/selftest.mjs2.8 KB
- 脚本templates/packages/shell/src/app/build-number.test.ts833 B
- 脚本templates/packages/shell/src/app/build-number.ts1017 B
- 其他templates/packages/shell/src/app/crash-screen.test.tsx828 B
- 其他templates/packages/shell/src/app/crash-screen.tsx1.9 KB
- 其他templates/packages/shell/src/app/create-startup-splash.android.test.tsx1.6 KB
- 其他templates/packages/shell/src/app/create-startup-splash.test.tsx2.5 KB
- 其他templates/packages/shell/src/app/create-startup-splash.tsx4.7 KB
- 其他templates/packages/shell/src/app/dialog-context.android.test.tsx5.7 KB
- 其他templates/packages/shell/src/app/dialog-context.test.tsx3.8 KB
- 其他templates/packages/shell/src/app/dialog-context.tsx2.0 KB
- 其他templates/packages/shell/src/app/game-startup-splash.tsx1.0 KB
- 其他templates/packages/shell/src/app/modal-layer.android.test.tsx2.9 KB
- 其他templates/packages/shell/src/app/modal-layer.test.tsx3.9 KB
- 其他templates/packages/shell/src/app/modal-layer.tsx3.0 KB
- 其他templates/packages/shell/src/app/premium-screen-deps-context.tsx1.6 KB
- 脚本templates/packages/shell/src/app/read-store-ids.test.ts1011 B
- 脚本templates/packages/shell/src/app/read-store-ids.ts713 B
- 脚本templates/packages/shell/src/app/read-version-text.test.ts1.7 KB
- 脚本templates/packages/shell/src/app/read-version-text.ts1.2 KB
- 其他templates/packages/shell/src/app/startup-splash.android.test.tsx2.5 KB
- 其他templates/packages/shell/src/app/startup-splash.test.tsx2.6 KB
- 其他templates/packages/shell/src/app/startup-splash.tsx3.8 KB
- 其他templates/packages/shell/src/app/use-direction-restart.test.tsx6.1 KB
- 脚本templates/packages/shell/src/app/use-direction-restart.ts1.7 KB
- 其他templates/packages/shell/src/app/use-game-extra.test.tsx977 B
- 脚本templates/packages/shell/src/app/use-game-extra.ts797 B
- 其他templates/packages/shell/src/app/use-is-online.test.tsx820 B
- 脚本templates/packages/shell/src/app/use-is-online.ts511 B
- 其他templates/packages/shell/src/app/use-open-external.test.tsx3.3 KB
- 脚本templates/packages/shell/src/app/use-open-external.ts1.5 KB
- 其他templates/packages/shell/src/app/use-parity-opener.test.tsx1.4 KB
- 脚本templates/packages/shell/src/app/use-parity-opener.ts853 B
- 其他templates/packages/shell/src/game-host/game-top-bar.test.tsx4.2 KB
- 其他templates/packages/shell/src/game-host/game-top-bar.tsx3.0 KB
- 脚本templates/packages/shell/src/i18n/create-language-t.test.ts761 B
- 脚本templates/packages/shell/src/i18n/create-language-t.ts1.0 KB
- 其他templates/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他templates/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 脚本templates/packages/shell/src/screens/daily/daily-model.ts1.7 KB
- 其他templates/packages/shell/src/screens/daily/daily-screen.tsx464 B
- 其他templates/packages/shell/src/screens/daily/daily-today-card.tsx1.8 KB
- 其他templates/packages/shell/src/screens/daily/daily-view.test.tsx3.3 KB
- 其他templates/packages/shell/src/screens/daily/daily-view.tsx3.3 KB
- 其他templates/packages/shell/src/screens/daily/daily-week-card.tsx2.2 KB
- 其他templates/packages/shell/src/screens/daily/streak-card.tsx2.3 KB
- 其他templates/packages/shell/src/screens/daily/use-daily-model.test.tsx4.0 KB
- 脚本templates/packages/shell/src/screens/daily/use-daily-model.ts2.7 KB
- 其他templates/packages/shell/src/screens/debug/debug-import-save.tsx3.1 KB
- 其他templates/packages/shell/src/screens/debug/debug-perf-section.tsx3.4 KB
- 脚本templates/packages/shell/src/screens/debug/debug-rows.ts3.9 KB
- 其他templates/packages/shell/src/screens/debug/debug-screen.tsx577 B
- 其他templates/packages/shell/src/screens/debug/debug-view.test.tsx10.0 KB
- 其他templates/packages/shell/src/screens/debug/debug-view.tsx5.8 KB
- 脚本templates/packages/shell/src/screens/debug/font-test-samples.test.ts3.7 KB
- 脚本templates/packages/shell/src/screens/debug/font-test-samples.ts3.0 KB
- 其他templates/packages/shell/src/screens/debug/font-test-screen.tsx649 B
- 其他templates/packages/shell/src/screens/debug/font-test-view.test.tsx5.1 KB
- 其他templates/packages/shell/src/screens/debug/font-test-view.tsx3.8 KB
- 其他templates/packages/shell/src/screens/debug/use-font-test-model.test.tsx788 B
- 脚本templates/packages/shell/src/screens/debug/use-font-test-model.ts537 B
- 脚本templates/packages/shell/src/screens/debug/use-font-test-window.test.ts3.0 KB
- 脚本templates/packages/shell/src/screens/debug/use-font-test-window.ts2.3 KB
- 其他templates/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他templates/packages/shell/src/screens/dialogs/dialog-host.android.test.tsx3.2 KB
- 其他templates/packages/shell/src/screens/dialogs/dialog-host.test.tsx2.1 KB
- 其他templates/packages/shell/src/screens/dialogs/dialog-host.tsx2.5 KB
- 脚本templates/packages/shell/src/screens/dialogs/dialog-request.ts1.3 KB
- 其他templates/packages/shell/src/screens/dialogs/dialogs.test.tsx5.0 KB
- 其他templates/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他templates/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.3 KB
- 其他templates/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他templates/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他templates/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他templates/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他templates/packages/shell/src/screens/first-run/language-choice-screen.tsx618 B
- 其他templates/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.6 KB
- 其他templates/packages/shell/src/screens/first-run/language-choice-view.tsx4.0 KB
- 其他templates/packages/shell/src/screens/first-run/use-language-choice-model.test.tsx5.4 KB
- 脚本templates/packages/shell/src/screens/first-run/use-language-choice-model.ts3.1 KB
- 其他templates/packages/shell/src/screens/game/game-layout.android.test.tsx1.7 KB
- 其他templates/packages/shell/src/screens/game/game-layout.test.tsx6.5 KB
- 其他templates/packages/shell/src/screens/game/game-layout.tsx1.6 KB
- 其他templates/packages/shell/src/screens/game/game-moves-probe.test.tsx2.0 KB
- 其他templates/packages/shell/src/screens/game/game-moves-probe.tsx1.2 KB
- 其他templates/packages/shell/src/screens/game/game-screen-back.test.tsx6.8 KB
- 其他templates/packages/shell/src/screens/game/game-screen.tsx3.4 KB
- 其他templates/packages/shell/src/screens/game/use-game-screen-model.test.tsx14.0 KB
- 脚本templates/packages/shell/src/screens/game/use-game-screen-model.ts5.9 KB
- 其他templates/packages/shell/src/screens/game/use-perk-payment.test.tsx7.4 KB
- 脚本templates/packages/shell/src/screens/game/use-perk-payment.ts5.4 KB
- 其他templates/packages/shell/src/screens/game/use-result-actions.test.tsx6.8 KB
- 脚本templates/packages/shell/src/screens/game/use-result-actions.ts5.0 KB
- 其他templates/packages/shell/src/screens/game/use-result-extras.test.tsx2.1 KB
- 脚本templates/packages/shell/src/screens/game/use-result-extras.ts1.9 KB
- 其他templates/packages/shell/src/screens/game/use-run-text.test.tsx1.1 KB
- 脚本templates/packages/shell/src/screens/game/use-run-text.ts676 B
- 其他templates/packages/shell/src/screens/home/home-daily-card.tsx6.2 KB
- 其他templates/packages/shell/src/screens/home/home-keys.tsx1.7 KB
- 脚本templates/packages/shell/src/screens/home/home-model.ts2.0 KB
- 其他templates/packages/shell/src/screens/home/home-screen.tsx512 B
- 其他templates/packages/shell/src/screens/home/home-top-bar.tsx1.7 KB
- 其他templates/packages/shell/src/screens/home/home-view.android.test.tsx3.5 KB
- 其他templates/packages/shell/src/screens/home/home-view.test.tsx11.3 KB
- 其他templates/packages/shell/src/screens/home/home-view.tsx3.6 KB
- 脚本templates/packages/shell/src/screens/home/use-home-actions.ts1.6 KB
- 其他templates/packages/shell/src/screens/home/use-home-model.test.tsx8.3 KB
- 脚本templates/packages/shell/src/screens/home/use-home-model.ts3.7 KB
- 其他templates/packages/shell/src/screens/home/use-home-music.test.tsx3.5 KB
- 脚本templates/packages/shell/src/screens/home/use-home-music.ts1.1 KB
- 其他templates/packages/shell/src/screens/home/use-level-play.test.tsx1.9 KB
- 脚本templates/packages/shell/src/screens/home/use-level-play.ts1.9 KB
- 其他templates/packages/shell/src/screens/home/use-play-run.test.tsx1.7 KB
- 脚本templates/packages/shell/src/screens/home/use-play-run.ts1.6 KB
- 其他templates/packages/shell/src/screens/how-to-play/how-to-play-screen.tsx554 B
- 其他templates/packages/shell/src/screens/how-to-play/how-to-play-view.test.tsx5.8 KB
- 其他templates/packages/shell/src/screens/how-to-play/how-to-play-view.tsx5.4 KB
- 其他templates/packages/shell/src/screens/how-to-play/use-how-to-play-model.test.tsx4.6 KB
- 脚本templates/packages/shell/src/screens/how-to-play/use-how-to-play-model.ts3.5 KB
- 脚本templates/packages/shell/src/screens/levels/levels-model-of.test.ts3.5 KB
- 脚本templates/packages/shell/src/screens/levels/levels-model-of.ts4.7 KB
- 脚本templates/packages/shell/src/screens/levels/levels-model.ts1.7 KB
- 其他templates/packages/shell/src/screens/levels/levels-screen.tsx499 B
- 其他templates/packages/shell/src/screens/levels/levels-view.test.tsx5.9 KB
- 其他templates/packages/shell/src/screens/levels/levels-view.tsx3.6 KB
- 其他templates/packages/shell/src/screens/levels/locked-pack-panel.tsx2.9 KB
- 其他templates/packages/shell/src/screens/levels/pack-section.test.tsx2.2 KB
- 其他templates/packages/shell/src/screens/levels/pack-section.tsx3.4 KB
- 其他templates/packages/shell/src/screens/levels/pack-tile.tsx2.0 KB
- 脚本templates/packages/shell/src/screens/levels/tile-width.test.ts637 B
- 脚本templates/packages/shell/src/screens/levels/tile-width.ts812 B
- 其他templates/packages/shell/src/screens/levels/use-levels-model.test.tsx6.3 KB
- 脚本templates/packages/shell/src/screens/levels/use-levels-model.ts4.0 KB
- 脚本templates/packages/shell/src/screens/pause/pause-model.ts1.2 KB
- 其他templates/packages/shell/src/screens/pause/pause-overlay.tsx1.2 KB
- 其他templates/packages/shell/src/screens/pause/pause-toggles.tsx1.9 KB
- 其他templates/packages/shell/src/screens/pause/pause-view.test.tsx3.9 KB
- 其他templates/packages/shell/src/screens/pause/pause-view.tsx3.6 KB
- 其他templates/packages/shell/src/screens/pause/use-pause-model.test.tsx3.9 KB
- 脚本templates/packages/shell/src/screens/pause/use-pause-model.ts2.9 KB
- 其他templates/packages/shell/src/screens/premium/premium-active-sticker.tsx906 B
- 脚本templates/packages/shell/src/screens/premium/premium-hero.ts2.2 KB
- 脚本templates/packages/shell/src/screens/premium/premium-model-of.test.ts4.5 KB
- 脚本templates/packages/shell/src/screens/premium/premium-model-of.ts2.5 KB
- 脚本templates/packages/shell/src/screens/premium/premium-model.ts1.1 KB
- 其他templates/packages/shell/src/screens/premium/premium-offer.tsx2.2 KB
- 其他templates/packages/shell/src/screens/premium/premium-page.test.tsx10.9 KB
- 其他templates/packages/shell/src/screens/premium/premium-page.tsx3.1 KB
- 其他templates/packages/shell/src/screens/premium/premium-restore.tsx1.4 KB
- 其他templates/packages/shell/src/screens/premium/premium-screen.tsx538 B
- 其他templates/packages/shell/src/screens/premium/premium-state-body.tsx2.4 KB
- 其他templates/packages/shell/src/screens/premium/premium-success.tsx1.3 KB
- 其他templates/packages/shell/src/screens/premium/premium-toast.tsx1.5 KB
- 脚本templates/packages/shell/src/screens/premium/premium-toasts.ts2.5 KB
- 脚本templates/packages/shell/src/screens/premium/premium-views.ts3.5 KB
- 其他templates/packages/shell/src/screens/premium/use-premium-model.test.tsx7.8 KB
- 脚本templates/packages/shell/src/screens/premium/use-premium-model.ts5.2 KB
- 其他templates/packages/shell/src/screens/premium/use-unseen-restore-outcome.test.tsx2.9 KB
- 脚本templates/packages/shell/src/screens/premium/use-unseen-restore-outcome.ts1.9 KB
- 其他templates/packages/shell/src/screens/result/continue-offer.tsx1.7 KB
- 其他templates/packages/shell/src/screens/result/result-daily-view.tsx2.2 KB
- 其他templates/packages/shell/src/screens/result/result-endless-view.tsx1.8 KB
- 其他templates/packages/shell/src/screens/result/result-frame.tsx2.3 KB
- 其他templates/packages/shell/src/screens/result/result-lose-view.tsx2.5 KB
- 脚本templates/packages/shell/src/screens/result/result-model.ts3.1 KB
- 其他templates/packages/shell/src/screens/result/result-overlay.test.tsx12.9 KB
- 其他templates/packages/shell/src/screens/result/result-overlay.tsx1.6 KB
- 其他templates/packages/shell/src/screens/result/result-win-actions.tsx2.1 KB
- 其他templates/packages/shell/src/screens/result/result-win-view.tsx3.1 KB
- 其他templates/packages/shell/src/screens/settings/about/about-facts.tsx1.1 KB
- 其他templates/packages/shell/src/screens/settings/about/about-screen.tsx497 B
- 其他templates/packages/shell/src/screens/settings/about/about-view.test.tsx1.8 KB
- 其他templates/packages/shell/src/screens/settings/about/about-view.tsx3.4 KB
- 其他templates/packages/shell/src/screens/settings/about/use-about-model.test.tsx3.5 KB
- 脚本templates/packages/shell/src/screens/settings/about/use-about-model.ts1.7 KB
- 其他templates/packages/shell/src/screens/settings/language/language-screen.tsx576 B
- 其他templates/packages/shell/src/screens/settings/language/language-view.test.tsx2.3 KB
- 其他templates/packages/shell/src/screens/settings/language/language-view.tsx2.7 KB
- 其他templates/packages/shell/src/screens/settings/language/use-settings-language-model.test.tsx4.4 KB
- 脚本templates/packages/shell/src/screens/settings/language/use-settings-language-model.ts3.2 KB
- 脚本templates/packages/shell/src/screens/settings/licences/licence-entries.test.ts5.2 KB
- 脚本templates/packages/shell/src/screens/settings/licences/licence-entries.ts3.5 KB
- 其他templates/packages/shell/src/screens/settings/licences/licences-screen.tsx527 B
- 其他templates/packages/shell/src/screens/settings/licences/licences-view.test.tsx2.5 KB
- 其他templates/packages/shell/src/screens/settings/licences/licences-view.tsx4.6 KB
- 其他templates/packages/shell/src/screens/settings/licences/use-licences-model.test.tsx3.2 KB
- 脚本templates/packages/shell/src/screens/settings/licences/use-licences-model.ts2.0 KB
- 其他templates/packages/shell/src/screens/settings/privacy/privacy-policy-screen.tsx602 B
- 其他templates/packages/shell/src/screens/settings/privacy/privacy-policy-view.test.tsx1.5 KB
- 其他templates/packages/shell/src/screens/settings/privacy/privacy-policy-view.tsx3.4 KB
- 其他templates/packages/shell/src/screens/settings/privacy/use-privacy-policy-model.test.tsx3.9 KB
- 脚本templates/packages/shell/src/screens/settings/privacy/use-privacy-policy-model.ts1.6 KB
- 其他templates/packages/shell/src/screens/settings/settings-choice-row.tsx3.7 KB
- 脚本templates/packages/shell/src/screens/settings/settings-extras.ts1.3 KB
- 其他templates/packages/shell/src/screens/settings/settings-footer.tsx1.6 KB
- 脚本templates/packages/shell/src/screens/settings/settings-row-bindings.ts2.9 KB
- 脚本templates/packages/shell/src/screens/settings/settings-row-specs.test.ts351 B
- 脚本templates/packages/shell/src/screens/settings/settings-row-specs.ts3.8 KB
- 其他templates/packages/shell/src/screens/settings/settings-row.tsx3.7 KB
- 其他templates/packages/shell/src/screens/settings/settings-screen.tsx795 B
- 其他templates/packages/shell/src/screens/settings/settings-view.test.tsx8.1 KB
- 其他templates/packages/shell/src/screens/settings/settings-view.tsx1.6 KB
- 其他templates/packages/shell/src/screens/settings/settings-volume-row.tsx2.0 KB
- 其他templates/packages/shell/src/screens/settings/use-settings-extras.test.tsx7.0 KB
- 脚本templates/packages/shell/src/screens/settings/use-settings-extras.ts3.6 KB
- 其他templates/packages/shell/src/screens/settings/use-settings-links.test.tsx3.1 KB
- 脚本templates/packages/shell/src/screens/settings/use-settings-links.ts1.3 KB
- 脚本templates/packages/shell/src/screens/settings/use-settings-routes.ts1.1 KB
- 其他templates/packages/shell/src/screens/stats/stat-panel.tsx1.5 KB
- 脚本templates/packages/shell/src/screens/stats/stats-cells.ts4.1 KB
- 其他templates/packages/shell/src/screens/stats/stats-empty-state.tsx1.3 KB
- 其他templates/packages/shell/src/screens/stats/stats-local-caption.tsx695 B
- 其他templates/packages/shell/src/screens/stats/stats-local-note.tsx1.2 KB
- 脚本templates/packages/shell/src/screens/stats/stats-model.ts2.8 KB
- 其他templates/packages/shell/src/screens/stats/stats-panels.tsx3.4 KB
- 其他templates/packages/shell/src/screens/stats/stats-screen.tsx497 B
- 脚本templates/packages/shell/src/screens/stats/stats-snapshot-of.test.ts3.8 KB
- 脚本templates/packages/shell/src/screens/stats/stats-snapshot-of.ts3.1 KB
- 其他templates/packages/shell/src/screens/stats/stats-view.android.test.tsx4.6 KB
- 其他templates/packages/shell/src/screens/stats/stats-view.test.tsx5.4 KB
- 其他templates/packages/shell/src/screens/stats/stats-view.tsx2.7 KB
- 其他templates/packages/shell/src/screens/stats/use-stats-model.test.tsx4.2 KB
- 脚本templates/packages/shell/src/screens/stats/use-stats-model.ts2.6 KB
- 其他templates/packages/shell/src/testing/create-host-wrapper.test.tsx4.6 KB
- 其他templates/packages/shell/src/testing/create-host-wrapper.tsx5.9 KB
- 脚本templates/packages/shell/src/testing/test-game-extra.test.ts1.2 KB
- 脚本templates/packages/shell/src/testing/test-game-extra.ts2.2 KB
- 脚本templates/packages/shell/src/ui/page-step-for-swipe.test.ts1.3 KB
- 脚本templates/packages/shell/src/ui/page-step-for-swipe.ts770 B
- 其他templates/packages/shell/src/ui/screen-body.android.test.tsx2.2 KB
- 其他templates/packages/shell/src/ui/screen-body.test.tsx4.8 KB
- 其他templates/packages/shell/src/ui/screen-body.tsx7.2 KB
- 其他templates/packages/shell/src/ui/sub-page.test.tsx1.9 KB
- 其他templates/packages/shell/src/ui/sub-page.tsx1.8 KB
- 其他templates/packages/shell/src/ui/use-body-bottom-top-up.test.tsx1.7 KB
- 脚本templates/packages/shell/src/ui/use-body-bottom-top-up.ts985 B
- 其他templates/packages/shell/src/ui/use-page-swipe.test.tsx3.5 KB
- 脚本templates/packages/shell/src/ui/use-page-swipe.ts2.0 KB
- 脚本templates/packages/shell/src/ui/use-pair-layout.ts1.1 KB
- 参考文档tests/fixtures/check-screens-slice/bad-slice-screen-not-built/EXPECT.txt101 B
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-not-built/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-not-built/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-not-built/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-not-built/packages/shell/src/screens/first-run/use-language-choice-model.test.tsx157 B
- 脚本tests/fixtures/check-screens-slice/bad-slice-screen-not-built/packages/shell/src/screens/first-run/use-language-choice-model.ts146 B
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-not-built/packages/shell/src/screens/home/home-screen.tsx362 B
- 参考文档tests/fixtures/check-screens-slice/bad-slice-screen-not-built/shell-slice.json75 B
- 参考文档tests/fixtures/check-screens-slice/bad-slice-screen-strict/EXPECT.txt57 B
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-strict/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-strict/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-strict/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 脚本tests/fixtures/check-screens-slice/bad-slice-screen-strict/packages/shell/src/screens/first-run/use-language-choice-model.ts146 B
- 其他tests/fixtures/check-screens-slice/bad-slice-screen-strict/packages/shell/src/screens/home/home-screen.tsx362 B
- 参考文档tests/fixtures/check-screens-slice/bad-slice-screen-strict/shell-slice.json58 B
- 其他tests/fixtures/check-screens-slice/good/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens-slice/good/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens-slice/good/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 其他tests/fixtures/check-screens-slice/good/packages/shell/src/screens/first-run/use-language-choice-model.test.tsx157 B
- 脚本tests/fixtures/check-screens-slice/good/packages/shell/src/screens/first-run/use-language-choice-model.ts146 B
- 其他tests/fixtures/check-screens-slice/good/packages/shell/src/screens/home/home-screen.tsx362 B
- 参考文档tests/fixtures/check-screens-slice/good/shell-slice.json58 B
- 参考文档tests/fixtures/check-screens/bad-banner/EXPECT.txt45 B
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/consent/consent-intro-screen.tsx2.4 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-banner/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-block-no-audit/EXPECT.txt62 B
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/dialogs/dialogs.test.tsx4.3 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-block-no-audit/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-component-base/EXPECT.txt70 B
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-component-base/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-debug-text-translated/EXPECT.txt112 B
- 参考文档tests/fixtures/check-screens/bad-debug-text-translated/packages/shell/src/i18n/catalogs/ckb.json42 B
- 参考文档tests/fixtures/check-screens/bad-debug-text-translated/packages/shell/src/i18n/catalogs/de.json42 B
- 参考文档tests/fixtures/check-screens/bad-debug-text-translated/packages/shell/src/i18n/catalogs/en.json42 B
- 参考文档tests/fixtures/check-screens/bad-debug-text-translated/packages/shell/src/i18n/catalogs/fa.json43 B
- 其他tests/fixtures/check-screens/bad-debug-text-translated/packages/shell/src/screens/debug/debug-perf-section.tsx398 B
- 参考文档tests/fixtures/check-screens/bad-extra-key-catalog/EXPECT.txt75 B
- 参考文档tests/fixtures/check-screens/bad-extra-key-catalog/packages/shell/src/i18n/catalogs/ckb.json95 B
- 参考文档tests/fixtures/check-screens/bad-extra-key-catalog/packages/shell/src/i18n/catalogs/de.json87 B
- 参考文档tests/fixtures/check-screens/bad-extra-key-catalog/packages/shell/src/i18n/catalogs/en.json84 B
- 参考文档tests/fixtures/check-screens/bad-extra-key-catalog/packages/shell/src/i18n/catalogs/fa.json3 B
- 其他tests/fixtures/check-screens/bad-extra-key-catalog/packages/shell/src/screens/result/result-win-view.tsx483 B
- 参考文档tests/fixtures/check-screens/bad-missing-copy-key/EXPECT.txt38 B
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-missing-copy-key/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-missing-testid/EXPECT.txt32 B
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-missing-testid/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-model-hook-missing/EXPECT.txt70 B
- 其他tests/fixtures/check-screens/bad-model-hook-missing/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-model-hook-missing/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-model-hook-missing/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-model-hook-test/EXPECT.txt57 B
- 其他tests/fixtures/check-screens/bad-model-hook-test/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-model-hook-test/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-model-hook-test/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 脚本tests/fixtures/check-screens/bad-model-hook-test/packages/shell/src/screens/first-run/use-language-choice-model.ts146 B
- 参考文档tests/fixtures/check-screens/bad-no-audit/EXPECT.txt21 B
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/first-run/language-choice-view.test.tsx1.8 KB
- 其他tests/fixtures/check-screens/bad-no-audit/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-no-test/EXPECT.txt23 B
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-no-test/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-pattern-typo/EXPECT.txt54 B
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-pattern-typo/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-retired-copy-key/EXPECT.txt61 B
- 其他tests/fixtures/check-screens/bad-retired-copy-key/packages/shell/src/screens/result/result-win-view.tsx473 B
- 参考文档tests/fixtures/check-screens/bad-route-no-hook/EXPECT.txt20 B
- 其他tests/fixtures/check-screens/bad-route-no-hook/packages/shell/src/screens/first-run/language-choice-screen.tsx527 B
- 其他tests/fixtures/check-screens/bad-route-no-hook/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-route-no-hook/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-splash-missing-after-boot/EXPECT.txt70 B
- 脚本tests/fixtures/check-screens/bad-splash-missing-after-boot/packages/shell/src/app/start-shell.ts147 B
- 其他tests/fixtures/check-screens/bad-splash-missing-after-boot/packages/shell/src/app/startup-splash.test.tsx1.3 KB
- 其他tests/fixtures/check-screens/bad-splash-missing-after-boot/packages/shell/src/app/startup-splash.tsx3.3 KB
- 参考文档tests/fixtures/check-screens/bad-two-heroes/EXPECT.txt20 B
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/consent/consent-intro-screen.tsx2.5 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-two-heroes/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-unknown-copy-key/EXPECT.txt37 B
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/dialogs/newer-save-dialog.tsx1.6 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/dialogs/reset-progress-dialog.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/dialogs/reset-stats-dialog.tsx1.4 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/dialogs/restart-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/dialogs/restart-level-dialog.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/dialogs/save-restored-dialog.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/first-run/language-choice-screen.tsx478 B
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/first-run/language-choice-view.test.tsx2.1 KB
- 其他tests/fixtures/check-screens/bad-unknown-copy-key/packages/shell/src/screens/first-run/language-choice-view.tsx3.7 KB
- 参考文档tests/fixtures/check-screens/bad-unknown-testid/EXPECT.txt59 B
- 其他tests/fixtures/check-screens/bad-unknown-testid/packages/shell/src/screens/consent/consent-intro-screen.test.tsx1.2 KB
- 其他tests/fixtures/check-screens/bad-unknown-testid/packages/shell/src/screens/consent/consent-intro-screen.tsx2.2 KB
- 其他tests/fixtures/check-screens/bad-unknown-testid/packages/shell/src/screens/dialogs/dialog-frame.tsx1.5 KB
- 其他tests/fixtures/check-screens/bad-unknown-testid/packages/shell/src/screens/dialogs/dialogs.test.tsx4.4 KB
03 SKILL.md 正文
Toybox screens
Every Shell screen (S1–S15, with S11a–d, the Pause and Result overlays and the S14 dialogs) is built from its spec here: the same blocks in the same order with the same spacing, exactly the testIDs of the shared screen map, the copy-deck keys the design shows, and every state, so it matches its Toybox design screenshot; a script proves the code side.
Rules that must hold
- Use exactly the testIDs of
assets/screen-testids.json: none missing, none invented, none borrowed from another screen. E2E flows and the visual-parity harness find elements only by these ids; a new id is a map change the library owns, never a local choice. - Build each screen as its reference says: blocks in that order, that spacing, those components, and match its reference image. The owner's rule is that every built screen matches its Toybox design screenshot; the reference and the image are that screenshot in words and pixels.
- Every text comes from
t()with the copy-deck key the reference lists (numbers and dates through the model, game texts from the game module). Keys name the place; a wrong key shows the wrong words in four languages. - Build every state and variant, including the Chosen ones the design does not draw (Premium owner, daily done, daily and endless results, all S12 states, the empty Statistics page, the extra dialogs). A state without a layout is a blank screen in front of a player.
- One hero key per screen; the banner only at the bottom of Home, Levels and Statistics and never for Premium owners. Spec N8 and 8.8: no ads on Game, Pause, Result, dialogs or Premium, and one obvious "go".
- Views are pure: a typed model in, Toybox components out. The route component calls
use<Name>Model(); the view callsuseT(), sets the testIDs and draws; stores, navigation and services stay in the model hook. That keeps screens testable and the layout in one place. - Only Toybox components and tokens: no raw
PressableorText, no colour literals, no raw sizes. The look lives in the components and the theme; a screen that paints itself drifts from the design. - Code lives in the screen's folder (table in references/screen-frame-and-rules.md); the checker looks there and nowhere else.
- Every screen has a view test that renders it through
renderWithShell, finds its testIDs (decorative parts with{ includeHiddenElements: true }), and ends every test that renders (each state and variant) withexpect(findInaccessiblePressables(screen.container)).toStrictEqual([]). Each state is its own screen for VoiceOver; the checker fails a view-test block without the audit. - Overlays over the board keep VoiceOver and TalkBack inside them. Result sets
accessibilityViewIsModalon its full-screen View; Pause and the dialogs get it from theScrim(DialogCardinside it). That flag is iOS-only, so on Android the host beside the overlay hides what lies behind it:GameLayout(the Game frame),DialogProvider(the navigator) and admob-ads'ConsentMoment(the whole app, under S3) draw their layer in the oneModalLayer(app/modal-layer.tsx), whose View around what lies behind setsimportantForAccessibility={<covered> ? 'no-hide-descendants' : 'auto'}(the View stays, so nothing remounts), whose layer View is modal and draws the parity launch marker, and which takes the Android system back when givenonBack(S3: taken and nothing happens; the spec is silent there and the press must never reach the navigator under the cover) and, while up, covers the back handlers behind it (HardwareBackCoverContext), so a dialog under S3 never answers. Otherwise the screen reader wanders onto the paused or finished board, or the screen under a dialog or S3. - Never strand a finished run (lead decision L11). S7 draws the continue offer while its rewarded ad loads (
'ad-loading': the same ad key, busy, not pressable), so a hidden offer always means no continue can come; the Game screen model then sends{ type: 'finish' }once per eventSeq (isLossStranded), and the recorded Result shows at once: the endless result with score and New best, or the lose result (references/s05-game.md, references/s07-result.md). - S15 keeps design parity, and its texts stay English in every language (L12, L13). Its labels are English in de, fa and ckb, laid as LTR paragraphs at the row's start; its numbers and dates follow the language's digits; it is signed off like every frame (references/s15-debug.md).
Workflow
- Open the screen's reference (Files table below) and its image in
assets/reference/. Read references/screen-frame-and-rules.md once per session: the common frame, the testID contract, texts, the model/view pattern, RTL, dark and large text. - Print the exact contract:
node ${CLAUDE_SKILL_DIR}/scripts/list-screen.mjs S4(every testID with component, role, copy key and English text, which parts a component draws, variants, the code folder and the image). - Copy the screen's templates from
templates/packages/shell/src/…to the same paths in the app repo (the reference lists them). Two moments: at Shell step 7, with the composition root and whatever the slice, this skill's part of the Shell core lands, each file with its test (app/create-startup-splash.tsx,app/startup-splash.tsx,app/game-startup-splash.tsx,app/crash-screen.tsx,app/dialog-context.tsx,app/modal-layer.tsx,app/premium-screen-deps-context.tsx,app/use-is-online.ts,app/use-open-external.ts,app/use-game-extra.ts,app/read-version-text.ts,app/build-number.ts,app/read-store-ids.ts,ui/screen-body.tsx,testing/test-game-extra.ts,testing/create-host-wrapper.tsx,screens/consent/consent-intro-screen.tsx,screens/dialogs/,game-host/game-top-bar.tsx,screens/game/game-layout.tsx,screens/result/result-model.ts,screens/debug/debug-rows.ts; the table in references/screen-frame-and-rules.md, "A partial Shell"). At Shell step 9 each screen lands with its own files and its Borrows (the screen table's last column): a borrowed file lands, with its test, in the commit of the first screen that brings it (in the Shell order: S2app/use-direction-restart.ts,i18n/create-language-t.tsandapp/use-parity-opener.ts; S4ui/use-pair-layout.tswith daily-and-statistics'app/use-today.tsandscreens/daily/helpers; S5 settings-and-preferences'settings-preference-actions.ts; S10 itsstores/settings-resets.tsandstores/use-settings-resets.ts), andcheck-screensruleborrowed-filenames a missing one with its owner skill. They call the Toybox components exactly as toybox-components ships them (checked withtsc, ESLint and Jest against those components). Read references/component-contract.md before changing a component call: base props (testIDBase,dayTestIDBase,barTestIDBase,segmentTestIDBase) must be spelled as the map says, because the component builds every child testID from them. - Copy the screen's model hook with its test: every route file is
const model = use<Screen>Model(); return <<Screen>View model={model} />, and the hook is the only code that reads stores, services, the game host and navigation. The templates ship them all:use-language-choice-model(S2),use-home-modelwithuse-home-actions,use-level-playanduse-play-run(S4; the one resume-or-new rule S8 and S9 share),use-pause-model(S6;PauseOverlaytakes the Game screen's controls assession),use-levels-modelwith the purelevels-model-of(S8),use-daily-model(S9),use-stats-modelwithstats-snapshot-of(S10),use-settings-extrasfromuse-settings-routesanduse-settings-links(S11, next to settings-and-preferences'useSettingsModel(useSettingsContext())),use-settings-language-model,use-about-model,use-privacy-policy-model,use-licences-model(S11a-d),use-premium-model(S12, withpremium-model-of.ts,premium-toasts.tsandapp/premium-screen-deps-context.tsx, which ShellApp provides),use-how-to-play-model(S13), and S5's assembled Game screen:game-screen.tsxwithuse-game-screen-model(top bar fromtopBarPropsOf, S7 fromresultModelOf),use-perk-payment(perkOffer; the free hint allowance isuseGameExtra().hints.freePerDay),use-result-actions(showInterstitialIfDueafter Next, Replay, Try again),use-result-extras,use-run-textandgame-moves-probe, each with its test; S15'suse-debug-modelcomes from e2e-maestro, S5's session controls and S7'sresultModelOffrom game-host-integration. They read: the game's look and words fromuseGameHost()(logo,nameId,taglineIdthroughgameMessageText,counters,packs,hasMusic,credits,howToPlayPages), the build's config fromapp/use-game-extra.ts(level count, modes, links), the phone's languages fromuseDeviceLocales()(i18n/device-locales-context.tsx; never expo-localization in a screen), connectivity fromapp/use-is-online.ts, a hand-off to another app (a URL fromconfig/external-links.ts, a failure logged) throughapp/use-open-external.ts, the banner from admob-ads'useBannerSlot('<screen>')(app/use-ad-context.ts), the version fromapp/read-version-text.ts, a direction flip throughapp/use-direction-restart.ts, andisReducedMotionfromuseReduceMotion()(also true during a parity capture, so every loop holds still for the screenshot). A frame that shows a state is opened by the hook that owns it, once on mount, through the handler a player's tap uses (app/use-parity-opener.ts; the table in references/screen-frame-and-rules.md). Hook tests render throughtesting/create-host-wrapper.tsx(the Shell providers plus a real game host). Model hooks navigate normally; in a partial Shell a route outsideshell-slice.jsonshowsNotBuiltScreen(navigation-and-routing), never a no-op handler. - Test first: adapt the template's view test and hook test to the change, watch them fail, then change the code. The unit project's
jest.setup.tsmocks Skia centrally (unit-and-component-tests), so a view that drawsLogoTile,EmptyStatsPictureorHazardStripneeds no mock of its own. Runnpx jest packages/shell/src/screens/<folder> --ci --selectProjects unit --coverage --collectCoverageFrom='packages/shell/src/screens/<folder>/**/*.ts' --coverageThreshold='{}'(paths first:--selectProjectsswallows every word after it; onlynpm run test:coveragejudges the thresholds),tscand ESLint as the quality gates require. - Run
node ${CLAUDE_SKILL_DIR}/scripts/check-screens.mjs . --screen S4from the repo root. Fix everyFAILline (each names the file, the rule and the fix) and rerun until it printsRESULT: PASS. A partial Shell (shell-slice.json) printsSKIPlines for the screens it leaves out and checks its own screens strictly (they must be built). At the end of Shell work runnode ${CLAUDE_SKILL_DIR}/scripts/check-screens.mjs . --all. - Compare the running screen with its reference image (light, then dark and RTL), then hand the screen to toybox-visual-parity for the measured comparison. Report to the owner which screens pass and anything still open.
Definition of done
- [ ] The screen's blocks, order, spacing, components and states match its reference; every Chosen state has its layout.
- [ ] Every text comes from
t()with the reference's keys; numbers and dates use the chosen digits and the Shell formatters. - [ ] The view test finds every testID of the screen, covers each variant, fires each handler, and every block that renders ends with the
findInaccessiblePressablesaudit;tsc, ESLint (canonical config,--max-warnings 0) and Jest pass. - [ ] The screen was compared with
assets/reference/<frame>.pngin light, dark and right to left, and handed to toybox-visual-parity. - [ ] Open questions (a missing copy key, a testID the design needs but the map lacks) are reported to the owner, not solved by inventing.
- [ ] The route file calls its model hook, and the hook (copied from the templates) has its test.
- [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-screens.mjs . --screen <id>(andnode ${CLAUDE_SKILL_DIR}/scripts/check-screens.mjs . --allwhen the Shell or the slice is complete) printsRESULT: PASS
Anti-patterns
- Inventing or renaming a testID to fit the code. Change the code to the map; ask for a map change when the design truly needs one.
- Putting a testID on a child of the accessible element, adding
accessibilityElementsHiddenin a screen, or un-hiding a decorative part to make it measurable. Maestro lists only accessible elements and never their children or hidden parts. The shared map says which elements are bounds-checked and which are crop-only (parent,a11yHidden,coveredBy;list-screen.mjsprints it as the parity column); keep the ids exactly where the map puts them. View tests find hidden parts with{ includeHiddenElements: true }. - Index-based keys (
levels.level-tile.0). Use the data key: level number, language code, stat id, kebab component name. Only WeekStrip and WeekBars number their seven columns (1 = oldest, 7 = today), themselves. - Re-drawing a Toybox component in the screen folder (a local calendar tile, week strip, score panel, level tile, top bar). Use the one in
ui/; the look and the derived testIDs live there once. - Store reads or
navigateinside a view. They belong in the model hook; the view stays pure and testable. - A no-op handler for a screen that is not built yet, or a provider only a screen needs (a "sounds context" for Music). Navigate normally (
NotBuiltScreenstands in) and read game facts fromuseGameHost(): a provider the composition root never mounts throws at runtime while every test passes. - A literal string, a raw
Text, a colour literal or a raw font size in a screen. Uset(),AppTextroles, the theme and tokens. - Greying out something the spec says to hide (Music without game music, the Premium key for owners, the banner offline). Leave it out.
- Centring a menu screen, tilting body text, or shadows on panels. Start-align; only stickers, flags, art and logos tilt; only pressable things are raised.
- Declaring a screen done from tests alone. Open the reference image and compare; the owner judges screens by the design.
- An overlay inside the Game screen's safe-area frame, a centred Chip or Sticker by
alignItems, a body that ends at the safe area. Each looked right in Jest and was wrong on the device (Result 59 pt low, left-aligned chips, clipped key shadows); follow the templates. - A parity-only branch in a view, or a
isParityCaptureflag in one model. Freeze motion throughuseReduceMotion()and open a frame's state through the owning hook's handler, once. - Hiding the continue offer while its ad loads, or leaving a hidden-offer loss on screen unrecorded. The player saw neither the offer nor the endless result; draw
'ad-loading'busy and let the model finish the stranded loss. - A card that should open a screen drawn as a pressable
Panel, or a button nested in it. Draw the card as a plain View over a pressable surface with its content as siblings above it (Home's daily card, s04-home.md): the pixels stay the design's, and VoiceOver and Maestro find two separate controls.
Files in this skill
| File | What it is | Read/run when |
|---|---|---|
| references/screen-frame-and-rules.md | Where each screen lives, the common frame, layout numbers, screen rules, testID contract, texts, model/view pattern, RTL, dark, large text, reference images | Workflow step 1, once per session |
| references/component-contract.md | Every Toybox component and prop the templates call, the parts each draws, measurements | Workflow step 3 |
| references/s01-splash.md | S1 Splash spec | Building S1 |
| references/s02-language-choice.md | S2 First-run language choice spec | Building S2 |
| references/s03-consent.md | S3 Consent moment spec | Building S3 |
| references/s04-home.md | S4 Home spec | Building S4 |
| references/s05-game.md | S5 Game screen (Shell parts) spec | Building S5 |
| references/s06-pause.md | S6 Pause spec | Building S6 |
| references/s07-result.md | S7 Result spec (win, lose, daily, endless) | Building S7 |
| references/s08-levels.md | S8 Levels spec | Building S8 |
| references/s09-daily.md | S9 Daily challenge spec | Building S9 |
| references/s10-statistics.md | S10 Statistics spec (and empty) | Building S10 |
| references/s11-settings.md | S11 Settings spec | Building S11 |
| references/s11a-language.md | S11a Language spec | Building S11a |
| references/s11b-about.md | S11b About and credits spec | Building S11b |
| references/s11c-privacy-policy.md | S11c Privacy policy spec | Building S11c |
| references/s11d-licences.md | S11d Licences spec | Building S11d |
| references/s12-premium.md | S12 Premium spec (every purchase state) | Building S12 |
| references/s13-how-to-play.md | S13 How to play spec | Building S13 |
| references/s14-dialogs.md | S14 dialogs spec (and the crash screen) | Building a dialog |
| references/s15-debug.md | S15 Debug menu spec | Building S15 |
templates/packages/shell/src/ui/ |
ScreenBody (the common body: isUnderHomeIndicator, hasTopOverhang, scrollToY, the test-build scroll marker of the offset it reached (ScreenScrollMarkerContext), with its test and screen-body.android.test.tsx: Android runs a view command before the mount of its batch, so the body scrolls a frame after the content grows; use-body-bottom-top-up.ts with its test: useBodyBottomTopUp() for a page that ends without it, the splash and a pinned banner: 34 pt above the edge, 10 over Android's 24 dp gesture bar, and the pure bodyBottomPaddingOf that ScreenBody shares), usePairLayout (side-by-side blocks that stack at 200 % text), SubPage (the page frame with a top bar and Back that S11, S11a–d and S13 share, with its test) and the swipe pager (use-page-swipe.ts with the pure page-step-for-swipe.ts, mirrored in RTL, each with its test) |
Workflow step 3, first screen; S11 and S13 |
templates/packages/shell/src/testing/ |
create-host-wrapper.tsx (hook tests: Shell providers plus a real game host and a text for every message id of the tally game) and test-game-extra.ts (the pilot's expo.extra and version for the expo-constants mock, and testExpoConstantsWith for a game whose config differs), each with a test |
Workflow step 5 |
templates/packages/shell/src/i18n/ |
create-language-t.ts (S2's "Continue" in the language being chosen) and its test |
Building S2 |
templates/packages/shell/src/app/ |
The model hooks' helpers, each with a test: use-game-extra.ts (the build's game config, levelCountOf), use-is-online.ts (ConnectivityPort as a value), use-open-external.ts (a URL, or a list tried in order, handed to the phone, a failure logged, never shown), read-version-text.ts ("1.0.0 (8)" from expo-constants) with build-number.ts (buildNumberOf: iOS's buildNumber, Android's versionCode; pure and outside the test-only gate, so performance-budgets' perf report header shares it), read-store-ids.ts (the platform, the App Store id and the Android package the store links are built from), use-direction-restart.ts (audio dispose, then the direction reload), use-parity-opener.ts (a parity frame's state opened once through a player's handler); and S1 StartupSplash, createStartupSplash (the restart root startShell registers while the direction flips; its test, and create-startup-splash.android.test.tsx: it renders react-components-and-hooks' ThemedStatusBar, so the bar is dark on a light phone) and GameStartupSplash (S1 from the module's nameId/taglineId), the Toybox CrashScreen (and their tests), premium-screen-deps-context.tsx (the S12 provider ShellApp fills) and dialog-context.tsx (DialogProvider around the navigator, useOpenDialog() for models) and modal-layer.tsx (ModalLayer: the layer's View modal with the parity launch marker, what lies behind hidden from TalkBack, the Android system back for a layer that takes it; S14, S6, S7 and S3 draw their layer in it) |
Building S1, the crash screen, S12 or S14 |
templates/packages/shell/src/screens/first-run/ |
S2 view, route component, use-language-choice-model.ts, tests |
Building S2 |
templates/packages/shell/src/screens/consent/ |
S3 screen and test | Building S3 |
templates/packages/shell/src/screens/home/ |
S4 model type, use-home-model.ts, use-home-actions.ts (the daily card body opens S9, its Play key plays today's run), use-level-play.ts (Play/Continue, shared with S10), use-play-run.ts (every key that plays a run: the saved run resumes when it is that run; shared with S8 and S9), use-home-music.ts (the game's music while Music is on), view, top bar (brand lock + gear), daily card (a pressable card surface under its content, the Play key beside it), keys, route, tests |
Building S4 |
templates/packages/shell/src/screens/game/ |
S5, assembled: game-screen.tsx and game-screen-back.test.tsx (shared copies, synced from the library), use-game-screen-model.ts, use-run-text.ts, use-perk-payment.ts, use-result-actions.ts, use-result-extras.ts, game-moves-probe.tsx, and GameLayout (the overlay beside the safe-area frame), each with its test |
Building S5 |
templates/packages/shell/src/game-host/ |
S5 GameTopBar: the game host's top-bar props drawn with the Toybox GameTopBar (testIDBase="game"; no hint key when the game's hasHints is false), and its test |
Building S5 |
templates/packages/shell/src/screens/pause/ |
S6 model and PauseSession types, use-pause-model.ts, view, toggle keys, overlay, tests |
Building S6 |
templates/packages/shell/src/screens/result/ |
S7 model (WinResult.par is null on score-rated levels, which print the score line with score and bestScore), overlay, win/lose/daily/endless views on one ResultFrame (the centred mode chip, the body under the home indicator, the keys under a grow spacer), win actions, continue offer, test |
Building S7 |
templates/packages/shell/src/screens/levels/ |
S8 model type, levels-model-of.ts (pure pack and tile rules), use-levels-model.ts, tile-width.ts (six columns on the pixel grid), view (banner as the body's last item, toast at 352 pt), pack section (Toybox LevelTile grid), locked pack (the Locked sticker on its own line), route, tests |
Building S8 |
templates/packages/shell/src/screens/daily/ |
S9 model, use-daily-model.ts (the summary, the next-day countdown, the date texts, the daily Game route; with its test), view, today card, streak card, week card (Toybox WeekStrip + WeekLegend), route, test |
Building S9 |
templates/packages/shell/src/screens/stats/ |
S10 model type, stats-snapshot-of.ts (summary to snapshot), use-stats-model.ts, cells, view, panels, stat panel, local note, empty state, route, tests |
Building S10 |
templates/packages/shell/src/screens/settings/ |
S11 view, row, row specs, bindings, choice and volume rows, footer, extras type, use-settings-extras.ts (with use-settings-routes.ts and use-settings-links.ts), route, tests; S11a–d in their subfolders, each with its use-<screen>-model.ts and test |
Building S11 or S11a–d |
templates/packages/shell/src/screens/premium/ |
S12 model type, use-premium-model.ts (store, service, notices), use-unseen-restore-outcome.ts (no stale restore toast on opening), premium-model-of.ts (pure builder), premium-views.ts (what each view draws), premium-toasts.ts, page, offer, states, success, active sticker, hero, restore, toast, route, tests |
Building S12 |
templates/packages/shell/src/screens/how-to-play/ |
S13 view (on ui/'s SubPage and swipe pager), use-how-to-play-model.ts, route, tests |
Building S13 |
templates/packages/shell/src/screens/dialogs/ |
S14 dialog frame, six dialogs, DialogRequest, DialogHost (at most one dialog above the navigator), tests |
Building a dialog |
templates/packages/shell/src/screens/debug/ |
S15 rows (and DEBUG_PERF_ROWS), view with the Import save panel (debug-import-save.tsx) and the Performance group (debug-perf-section.tsx), route, test; the font test page (font-test-samples.ts, use-font-test-model.ts, font-test-view.tsx, use-font-test-window.ts (its rows, a step at a time), each tested, and font-test-screen.tsx) |
Building S15 |
assets/reference/ |
Every design frame at 1x (light, English, Line Siege), plus Home in dark and in Persian | Workflow steps 1 and 7 |
assets/screen-testids.json |
The shared screen testID map, synced from the library (do not edit here) | Read by the scripts; list-screen.mjs prints it |
assets/copy-deck.json |
The copy deck, synced from the library (do not edit here) | Read by the scripts |
assets/toybox-tokens.json |
The Toybox tokens (layout, sizes, components), synced from the library | When a spacing or size is in doubt |
assets/shared.json |
Declares the shared files this skill copies in | When adding a shared file |
scripts/check-screens.mjs |
Checker: testIDs exact (including the ones components derive from the id props the screen passes), copy keys used and known (and the Shell texts the deck lacks present in all four catalogs; retired keys fail), banner placement, one hero key, a view test per screen whose every rendering block audits accessibility, modal overlays (the iOS flag on the overlay and the Android TalkBack trap in its host, overlay-not-modal), each route's model hook with its test, the assembled Game screen (game-screen-wiring), Home's daily card opening S9 with its Play key outside the opener (home-daily-opener), the hint key following hasHints (hint-key-fact), the restart splash holding still in a capture (splash-held), the Rate row's hollow star (rate-row-icon), the S15 Performance rows (debug-perf-rows), S7's continue offer drawn while its ad loads (continue-offer-loading), S5 finishing a loss nobody can rescue (loss-finished), every borrowed file present with its test, named with its owner skill (borrowed-file), shell-slice.json SKIPs |
Workflow step 6, and at the end |
scripts/list-screen.mjs |
Prints one screen's contract (with the parity reach of each id: bounds, or crop-only in its cover); --all validates the map, deck and images |
Workflow step 2 |
scripts/lib/screen-map.mjs |
Helper: the map, the screen folders, which parts each component derives from which prop | Never by hand |
scripts/lib/source-scan.mjs |
Helper: strings, patterns, t() keys and component id props in TypeScript sources | Never by hand |
scripts/selftest.mjs |
Proves both scripts pass good input, catch each planted bug, and pass the templates and assets | After changing a script or template |
scripts/check-lib.mjs |
Shared script helper, synced from the library (do not edit here) | Never by hand |
tests/fixtures/ |
Good and planted-bad apps, maps and decks for the self-test; check-screens-slice/ holds the shell-slice.json cases |
When adding a rule to a checker |
Related skills
toybox-components- the components the screens are made of.toybox-design-system- tokens,AppText,RaisedSurface, colours, fonts, motion.toybox-visual-parity- the screenshot comparison each finished screen goes through.navigation-and-routing- routes, Back, and every screen's navigation calls.react-components-and-hooks-ScreenFrame, model hooks, effects, reduce motion.settings-and-preferences- the S11 model, rows and effects.state-stores,daily-and-statistics,premium-purchase,admob-ads,game-host-integration- the data behind the models.i18n-strings-and-catalogs,rtl-and-direction,accessibility- texts, mirroring and VoiceOver.
04 同仓库更多 Skills
unit-and-component-tests
Sets up Jest and writes Pocket Arcade test code - three projects, RNTL 14 async via renderWithShell, root SDK mocks, fakes, fast-check, coverage, Stryker. Use when a test needs the Shell wrapper, a mock or a fake, or Jest fails. Not for the red-green loop (tdd-workflow) or goldens (golden-tests).
typescript-and-lint-rules
Enforces Pocket Arcade's strict TypeScript 6 tsconfigs, ESLint 9 flat config, Prettier and size limits. Use when writing or splitting .ts/.tsx or fixing a tsc or lint error. Not for gate wiring (quality-gates), names (naming-conventions) or import zones (architecture-and-boundaries).
demo-skill
Builds a demo. Use when testing the pitfall checker.
demo-skill
Builds a demo. Use when testing the pitfall checker.
troubleshooting-playbook
Diagnoses and fixes Pocket Arcade failures with a catalogue of 300+ known ones (symptom, cause, fix). Use when something errors, crashes, hangs or renders wrong, or an error or log needs explaining. Not for gate setup (quality-gates) or running builds (ios-simulator-build, ios-release-testflight).
toybox-visual-parity
Proves a built Pocket Arcade screen matches its Toybox design screenshot (light/dark, en/fa) and drives the fixes: capture, element gates, sheets, sign-off. Use when any screen is built or changed, or for visual parity, design match, screenshot compare. Not for building screens (toybox-screens).