How sanelemanyela/study-schedule-ui works
Study Planner lets learners and administrators authenticate, manage courses and learning materials, organize study plans and schedules, and keep course notes. The frontend routes users into these workflows, calls a FastAPI REST API, and maintains a local-data fallback for study context. The backend validates request models, applies service-layer operations, and persists data in Firestore. The README documents authentication, role guards, caching, and the proxy; backend source details beyond the indexed imports are not inferred here.
Main entry points: routes.ts Route access · api.ts REST client · study-context.tsx Study state and fallback · App.tsx App shell
Components 21
Study frontend
- App shell
src/app/App.tsx - Route access
src/app/routes.ts - Login and session
src/app/pages/LoginPage.tsx - Study state and fallback
src/app/lib/study-context.tsx - REST client
src/app/lib/api.ts - UI primitives
src/app/components/ui
Learning workflows
- Dashboard
src/app/pages/DashboardHome.tsx - Course management
src/app/pages/CourseOverviewPage.tsx - Course details
src/app/pages/CourseDetailPage.tsx - Course notes
src/app/pages/CourseNotesPage.tsx - Course materials
src/app/pages/LibraryPage.tsx - Study calendar
src/app/pages/StudyCalendarPage.tsx - Study planning
src/app/pages/StudyPlanPage.tsx - Categories and languages
src/app/pages/CategoriesPage.tsx - Related pages
src/app/pages
API backend
- FastAPI routes and guards
backend/app/main.py - Validated data models
backend/app/models.py - Service and cache
backend/app/service.py
Persistence
- Firestore
Other components
- Learner or admin
- External material hosts
Connections 28
- Learner or admin → App shell: uses
README.md - App shell → Route access: mounts routes
src/app/App.tsx - App shell → Study state and fallback: provides state
src/app/App.tsx - Route access → Login and session: routes login
src/app/routes.ts - Route access → Dashboard: routes dashboard
src/app/routes.ts - Route access → Course management: routes courses
src/app/routes.ts - Route access → Course details: routes details
src/app/routes.ts - Route access → Course notes: routes notes
src/app/routes.ts - Route access → Course materials: routes library
src/app/routes.ts - Route access → Study calendar: routes calendar
src/app/routes.ts - Route access → Study planning: routes plans
src/app/routes.ts - Route access → Categories and languages: routes categories
src/app/routes.ts - Route access → Related pages: routes related pages
src/app/routes.ts - Dashboard → REST client: requests data
src/app/pages/DashboardHome.tsx - Course management → REST client: requests data
src/app/pages/CourseOverviewPage.tsx - Course details → REST client: requests data
src/app/pages/CourseDetailPage.tsx - Course materials → REST client: requests materials
src/app/pages/LibraryPage.tsx - Study calendar → REST client: requests schedules
src/app/pages/StudyCalendarPage.tsx - Study calendar → Study state and fallback: uses study state
src/app/pages/StudyCalendarPage.tsx - Study planning → REST client: requests plans
src/app/pages/StudyPlanPage.tsx - Study planning → Study state and fallback: uses study state
src/app/pages/StudyPlanPage.tsx - Study state and fallback → REST client: loads remote data
src/app/lib/study-context.tsx - REST client → FastAPI routes and guards: calls REST API
README.md - FastAPI routes and guards → Validated data models: validates requests
backend/app/main.py - FastAPI routes and guards → Service and cache: delegates operations
backend/app/main.py - Service and cache → Validated data models: uses data shapes
backend/app/service.py - Service and cache → Firestore: reads and writes
README.md - REST client → External material hosts: requests proxied content
README.md