How rohitchintalapudi/learnflowai-frontend works
Learnflow AI is a student learning platform centered on an authenticated document workspace: students upload or open material, select concepts, generate learning aids, and review progress. The frontend also provides account management, analytics, learning history, and guided onboarding. The README documents backend AI workflows and persistence; sampled sources confirm selected frontend API and simulation paths, but the backend implementation is not present in this tree.
Main entry points: api.ts Document and workflow API · workspace.$documentId.tsx Document workspace · DashboardLayout.tsx Dashboard shell · auth-client.ts Session auth
Components 27
Access & Shell
- Public pages
src/routes/_public.tsx - Sign up
src/routes/_public/signup.tsx - Login
src/routes/_public/login.tsx - Route guard
src/routes/_authenticated.tsx - Dashboard shell
src/components/DashboardLayout.tsx
Learning Workspace
- Document workspace
src/routes/_authenticated/workspace.$documentId.tsx - Document library
src/routes/_authenticated/documents.tsx - Simulation generator
src/components/SimulationGenerator.tsx - Interactive mind maps
src/components/CustomMindMapNode.tsx - Study notes
src/routes/_authenticated/notes.tsx - Targeted quizzes
src/routes/_authenticated/quizzes.tsx
Progress & Review
- Readiness analytics
src/routes/_authenticated/analytics.tsx - Learning history
src/routes/_authenticated/learning-history.tsx - History details
src/components/LearningHistory/HistoryDrawer.tsx
Account & Guidance
- Profile management
src/components/ProfileModal.tsx - Account settings
src/routes/_authenticated/settings.tsx - Tour state
src/contexts/ProductTourContext.tsx - Guided tour
src/components/Tour/ProductTour.tsx
Client Services
- Session auth
src/lib/auth-client.ts - Auth state
src/store/authStore.ts - Document and workflow API
src/lib/api.ts - Simulation mutation
src/hooks/useGenerateSimulation.ts - Simulation service
src/services/simulation.service.ts
Other components
- Student
- Learnflow backend
- Groq LLM
- Neon database
Connections 33
- Student → Public pages: visits
README.md - Student → Sign up: registers
README.md - Student → Login: signs in
README.md - Sign up → Session auth: authenticates
src/routes/_public/signup.tsx - Login → Session auth: authenticates
src/routes/_public/login.tsx - Session auth → Auth state: syncs session
README.md - Route guard → Session auth: checks session
src/routes/_authenticated.tsx - Route guard → Auth state: checks state
src/routes/_authenticated.tsx - Route guard → Dashboard shell: renders pages
- Dashboard shell → Profile management: opens profile
src/components/DashboardLayout.tsx - Student → Document library: uploads material
README.md - Document library → Document and workflow API: requests documents
- Student → Document workspace: selects concepts
README.md - Document workspace → Document and workflow API: requests workflows
src/routes/_authenticated/workspace.$documentId.tsx - Document workspace → Simulation generator: renders simulation
src/routes/_authenticated/workspace.$documentId.tsx - Simulation generator → Simulation mutation: requests generation
src/components/SimulationGenerator.tsx - Simulation mutation → Simulation service: calls service
src/hooks/useGenerateSimulation.ts - Simulation service → Learnflow backend: posts simulation
src/services/simulation.service.ts - Learnflow backend → Groq LLM: generates outputs
README.md - Learnflow backend → Neon database: persists outputs
README.md - Document workspace → Interactive mind maps: renders nodes
src/routes/_authenticated/workspace.$documentId.tsx - Student → Study notes: reviews notes
README.md - Student → Targeted quizzes: takes quizzes
README.md - Targeted quizzes → Dashboard shell: uses layout
src/routes/_authenticated/quizzes.tsx - Targeted quizzes → Document and workflow API: requests quiz data
src/routes/_authenticated/quizzes.tsx - Student → Readiness analytics: checks readiness
README.md - Student → Learning history: reviews activity
README.md - Learning history → History details: opens details
src/routes/_authenticated/learning-history.tsx - Learning history → Document and workflow API: requests history
src/routes/_authenticated/learning-history.tsx - Student → Account settings: manages account
README.md - Student → Guided tour: starts onboarding
- Guided tour → Tour state: uses tour state
src/components/Tour/ProductTour.tsx - Dashboard shell → Document and workflow API: loads profile and alerts
src/components/DashboardLayout.tsx