How mahmood601/novateam works
Nova App is a medical-student study platform whose central workflow is selecting course material, taking quizzes, and reviewing results; it also supports lecture reading and authoring. The app router exposes student and permission-gated management routes. Quiz and lecture data use local IndexedDB alongside Supabase-backed services; the editor adds draft saving and print preview, while classification can use Gemini. Relationships are limited to routing, imports, calls, and data flows visible in the supplied excerpts or SOURCE INDEX; unsampled internals are represented only at supported paths.
Main entry points: AppRoutes.tsx App router · supabase.ts Supabase client · QuizEditor.tsx Quiz management · user.tsx Identity and grants
Components 19
App and identity
- App router
src/app/AppRoutes.tsx - Identity and grants
src/features/shared/context/user.tsx
Study experience
- Timed quizzes
src/features/quizzes/pages/Quiz.tsx - Lecture reader
src/features/lectures/pages/LectureViewPage.tsx - Lecture search index
src/features/lectures/lib/lectureSearchIndex.ts - Study search
src/features/shared/pages/Search.tsx
Content authoring
- Quiz management
src/features/quizzes/pages/QuizEditor.tsx - Question classifier
src/features/classifier/ClassifierPage.tsx - Lecture editor
src/features/editor/components/TiptapReviewEditor.tsx - A4 print preview
src/features/editor/lib/a4Preview.ts
Data and integrations
- Local IndexedDB
src/features/quizzes/services/local/indexeddb/db.ts - Section sync
src/features/quizzes/services/local/indexeddb/sections.ts - Supabase client
src/features/shared/services/supabase.ts - Gemini service
src/features/shared/services/gemini.ts
Other components
- Student
- Content administrator
- Supabase
- Browser storage
- Gemini API
Connections 26
- Student → App router: opens routes
src/app/AppRoutes.tsx - Content administrator → App router: opens routes
src/app/AppRoutes.tsx - App router → Timed quizzes: routes to
src/app/AppRoutes.tsx - App router → Quiz management: routes to
src/app/AppRoutes.tsx - App router → Question classifier: routes to
src/app/AppRoutes.tsx - App router → Lecture editor: routes to
src/app/AppRoutes.tsx - App router → Lecture reader: routes to
src/app/AppRoutes.tsx - Identity and grants → Supabase client: authenticates via
src/features/shared/context/user.tsx - Identity and grants → Supabase: reads identity
src/features/shared/context/user.tsx - Identity and grants → Browser storage: caches identity
src/features/shared/context/user.tsx - Quiz management → Supabase client: reads and writes
src/features/quizzes/pages/QuizEditor.tsx - Quiz management → Identity and grants: checks permissions
src/features/quizzes/pages/QuizEditor.tsx - Quiz management → Local IndexedDB: uses local data
- Question classifier → Supabase client: uses data service
src/features/classifier/ClassifierPage.tsx - Question classifier → Gemini service: requests classification
src/features/classifier/ClassifierPage.tsx - Gemini service → Gemini API: sends requests
- Lecture reader → Section sync: loads sections
src/features/lectures/pages/LectureViewPage.tsx - Lecture reader → Local IndexedDB: reads cached subject
src/features/lectures/pages/LectureViewPage.tsx - Study search → Lecture search index: searches lectures
src/features/shared/pages/Search.tsx - Lecture search index → Local IndexedDB: uses local database
src/features/lectures/lib/lectureSearchIndex.ts - Section sync → Local IndexedDB: reads and writes
src/features/quizzes/services/local/indexeddb/sections.ts - Section sync → Supabase client: syncs sections
src/features/quizzes/services/local/indexeddb/sections.ts - Supabase client → Supabase: queries
src/features/shared/services/supabase.ts - Lecture editor → Browser storage: saves drafts
src/features/editor/components/TiptapReviewEditor.tsx - Lecture editor → A4 print preview: renders preview
src/features/editor/components/TiptapReviewEditor.tsx - A4 print preview → Supabase client: uploads assets