How taurus0519/intro2driving-system works
This is a driving-school learning portal: users sign in, then students access quizzes, progress, achievements, profiles, messages, and the practical-driving checklist; staff additionally manage learners and review results. The graph emphasizes the routed UI, Supabase-backed features, and server-side account and reporting functions. README documents additional quiz chapters/images, message attachments, and achievement/PDC capabilities beyond the sampled implementation; those are represented at their existing feature paths. Several feature-to-service details are unsampled, so unverified links are omitted.
Main entry points: App.jsx App routing · supabase_Client.jsx Supabase client · Dashboard.jsx Dashboard · Profile.jsx Profile management
Components 32
Access and navigation
- App routing
src/jsx/App.jsx - Authentication
src/jsx/useAunth.jsx - Login and recovery
src/jsx/Loginpage.jsx - Landing page
src/jsx/LandingPage.jsx
Learning and progress
- Dashboard
src/jsx/Dashboard.jsx - Course calendar
src/jsx/Calendar.jsx - Quizzes and lessons
src/jsx/lessons.jsx - Score aggregation
src/js/learningStats.mjs - Success-rate charts
src/jsx/SuccessRateCharts.jsx - Achievement tracking
src/jsx/Achievements.jsx - Achievement catalog
src/js/achievementData.js
Student services
- Student administration
src/jsx/Students.jsx - Student detail view
src/jsx/StudentDetails.jsx - Profile management
src/jsx/Profile.jsx - Profile identity rules
src/js/profileIdentity.mjs - Staff profile data
src/js/staffProfile.mjs - Practical driving checklist
src/jsx/PdcChecklist.jsx - Checklist definitions
src/js/pdcChecklistData.js - Checklist PDF export
src/js/pdcChecklistPdf.mjs - Messaging
src/jsx/messages.jsx - Assignments
src/jsx/assignments.jsx
Server and data
- Supabase client
src/jsx/supabase_Client.jsx - Local API server
server/index.mjs - Account creation
api/create-account.js - Student deletion
api/delete-account.mjs - Message recipients
api/message-recipients.js - Age distribution
api/student-age-distribution.mjs - Achievement progress API
api/achievement-progress.mjs - Student details API
api/student-details.mjs - Quiz attempts API
api/student-quiz-attempts.mjs
Other components
- Portal user
- Supabase services
Connections 46
- Portal user → App routing: opens portal
src/jsx/App.jsx - App routing → Landing page: routes to
src/jsx/App.jsx - App routing → Login and recovery: routes to
src/jsx/App.jsx - App routing → Authentication: provides auth
src/jsx/App.jsx - Authentication → Supabase client: uses client
src/jsx/useAunth.jsx - Supabase client → Supabase services: connects to
src/jsx/supabase_Client.jsx - App routing → Dashboard: routes to
src/jsx/App.jsx - App routing → Student administration: routes to
src/jsx/App.jsx - App routing → Student detail view: routes to
src/jsx/App.jsx - App routing → Quizzes and lessons: routes to
src/jsx/App.jsx - App routing → Achievement tracking: routes to
src/jsx/App.jsx - App routing → Profile management: routes to
src/jsx/App.jsx - App routing → Practical driving checklist: routes to
src/jsx/App.jsx - App routing → Messaging: routes to
src/jsx/App.jsx - App routing → Assignments: routes to
src/jsx/App.jsx - Dashboard → Course calendar: renders
src/jsx/Dashboard.jsx - Dashboard → Success-rate charts: renders
src/jsx/Dashboard.jsx - Dashboard → Score aggregation: uses aggregation
src/jsx/Dashboard.jsx - Success-rate charts → Score aggregation: summarizes scores
src/jsx/SuccessRateCharts.jsx - Dashboard → Achievement catalog: reads catalog
src/jsx/Dashboard.jsx - Achievement tracking → Achievement catalog: reads catalog
src/jsx/Achievements.jsx - Dashboard → Supabase client: queries progress
src/jsx/Dashboard.jsx - Student administration → Supabase client: queries learners
src/jsx/Students.jsx - Student detail view → Supabase client: loads records
src/jsx/StudentDetails.jsx - Profile management → Profile identity rules: updates identity
src/jsx/Profile.jsx - Profile management → Staff profile data: loads staff data
src/jsx/Profile.jsx - Profile management → Supabase client: saves profile
src/jsx/Profile.jsx - Practical driving checklist → Checklist definitions: uses definitions
src/jsx/PdcChecklist.jsx - Practical driving checklist → Checklist PDF export: creates PDF
src/jsx/PdcChecklist.jsx - Practical driving checklist → Supabase client: reads and saves
src/jsx/PdcChecklist.jsx - Messaging → Supabase client: uses client
src/jsx/messages.jsx - Assignments → Supabase client: uses client
src/jsx/assignments.jsx - Local API server → Student details API: routes request
server/index.mjs - Local API server → Quiz attempts API: routes request
server/index.mjs - Student details API → Score aggregation: paginates results
api/student-details.mjs - Student details API → Supabase services: reads student data
api/student-details.mjs - Quiz attempts API → Score aggregation: uses pagination
api/student-quiz-attempts.mjs - Quiz attempts API → Supabase services: reads attempts
api/student-quiz-attempts.mjs - Local API server → Supabase services: manages accounts
server/index.mjs - Account creation → Supabase services: creates accounts
README.md - Student deletion → Supabase services: deletes students
README.md - Message recipients → Supabase services: loads recipients
README.md - Age distribution → Supabase services: calculates distribution
README.md - Achievement progress API → Supabase services: serves progress
README.md - Messaging → Message recipients: fetches recipients
README.md - Student administration → Achievement progress API: loads completion
README.md