How coscarroa/penndot-test-pro works
This is a bilingual PennDOT driver-exam study PWA. Learners enter the app, choose a mock exam or focused practice, answer questions with sign illustrations and study references, and review results; the app also offers a question bank, sign catalog, statistics, and community forum. User progress is persisted locally and can be synchronized through a cloud API. The source index identifies several components and their imports, but excerpts are partial; uncertain server-side wiring and unsampled behavior are not inferred.
Main entry points: App.tsx App Shell · ExamSimulator.tsx Exam Simulator · storage.ts Progress Storage · PracticeMode.tsx Focused Practice
Components 22
App and Navigation
- App Shell
src/App.tsx - Sound Feedback
src/utils/sound.ts
Study and Exams
- Exam Simulator
src/components/ExamSimulator.tsx - Focused Practice
src/components/PracticeMode.tsx - Question Bank
src/components/QuestionBankView.tsx - Exam Questions
src/data/questionsData.ts - Bank Data
src/data/questionBankData.ts - Question Bank JSON
public/preguntas.json
Learning Reference
- Question Visuals
src/components/QuestionVisualReference.tsx - Sign Illustrations
src/components/RoadSignSvg.tsx - Sign Catalog
src/components/SignsCatalog.tsx - Traffic Sign Data
src/data/signsData.ts - Quick Study Guide
src/components/QuickStudyGuide.tsx
Progress and Sync
- Statistics
src/components/StatisticsView.tsx - Progress Storage
src/utils/storage.ts - Browser Storage
- Cloud Sync API
Community and Extras
- Community Forum
src/components/CommunityForum.tsx - App Extras
src/components/DonationModal.tsx - Ad Banner
src/components/AdBanner.tsx - Analytics
src/utils/analytics.ts
Other components
- Learner
Connections 27
- Learner → App Shell: uses
src/App.tsx - App Shell → Exam Simulator: renders
src/App.tsx - App Shell → Focused Practice: renders
src/App.tsx - App Shell → Question Bank: renders
src/App.tsx - App Shell → Sign Catalog: renders
src/App.tsx - App Shell → Statistics: renders
src/App.tsx - App Shell → Community Forum: renders
src/App.tsx - App Shell → Progress Storage: loads and saves
src/App.tsx - App Shell → Ad Banner: renders
src/App.tsx - Exam Simulator → Exam Questions: selects from
src/components/ExamSimulator.tsx - Exam Simulator → Sign Illustrations: renders
src/components/ExamSimulator.tsx - Exam Simulator → Quick Study Guide: renders
src/components/ExamSimulator.tsx - Exam Simulator → Progress Storage: records results
src/components/ExamSimulator.tsx - Exam Simulator → Analytics: tracks events
src/components/ExamSimulator.tsx - Exam Simulator → Sound Feedback: plays feedback
src/components/ExamSimulator.tsx - Focused Practice → Exam Questions: uses
src/components/PracticeMode.tsx - Focused Practice → Sign Illustrations: renders
src/components/PracticeMode.tsx - Focused Practice → Progress Storage: updates bookmarks
src/components/PracticeMode.tsx - Question Bank → Bank Data: uses
src/components/QuestionBankView.tsx - Question Bank → Question Visuals: renders
src/components/QuestionBankView.tsx - Question Visuals → Sign Illustrations: renders
src/components/QuestionVisualReference.tsx - Sign Catalog → Traffic Sign Data: uses
src/components/SignsCatalog.tsx - Sign Catalog → Sign Illustrations: renders
src/components/SignsCatalog.tsx - Statistics → Exam Questions: uses
src/components/StatisticsView.tsx - Progress Storage → Browser Storage: reads and writes
src/utils/storage.ts - Progress Storage → Cloud Sync API: syncs state
src/utils/storage.ts - Bank Data → Question Bank JSON: loads
src/data/questionBankData.ts