How vinayshankar121/little-rose-path works
Little Rose High School is a role-based school portal for administrators, teachers, parents, and drivers. Users sign in, enter an authenticated role-aware workspace, and use its route pages for school administration, teaching, family services, and transport. Supabase supplies application data and authentication; the tree also shows server functions for imports, reminders, messaging, and parent OTP. Most feature routes were not sampled, so their internal calls and data flows are not asserted here; route registration and the sampled authentication/layout integrations are shown where evidenced.
Main entry points: routeTree.gen.ts Route registry · client.ts Browser Supabase client · route.tsx Authenticated workspace · auth-context.tsx Session and roles
Components 25
Access and navigation
- Sign-in
src/routes/auth.tsx - Session and roles
src/lib/auth-context.tsx - Authenticated workspace
src/routes/_authenticated/route.tsx - Role navigation
src/components/AppSidebar.tsx - Route registry
src/routeTree.gen.ts
School operations
- Admin management
src/routes/_authenticated/admin.students.tsx - Teacher administration
src/routes/_authenticated/admin.teachers.tsx - Attendance
src/routes/_authenticated/attendance.tsx - Classes and timetable
src/routes/_authenticated/admin.classes.tsx - Fees and reminders
src/routes/_authenticated/admin.fees.tsx - Reports
src/routes/_authenticated/admin.reports.tsx
Family and communications
- Calendar and notices
src/routes/_authenticated/calendar.tsx - Messages
src/routes/_authenticated/messages.tsx - Parent services
src/routes/_authenticated/parent.index.tsx - Transport management
src/routes/_authenticated/admin.transport.tsx - Live bus tracking
src/routes/_authenticated/transport.live.tsx - Driver tracker
src/routes/_authenticated/driver.track.tsx
Data and services
- Parent OTP
src/lib/parent-otp.functions.ts - Push notifications
src/hooks/usePushNotifications.ts - Browser Supabase client
src/integrations/supabase/client.ts - Server Supabase client
src/integrations/supabase/client.server.ts - Supabase service
- Student import
src/lib/students-import.functions.ts - SMS services
src/lib/sms.functions.ts
Other components
- Portal user
Connections 29
- Portal user → Sign-in: signs in
src/routes/auth.tsx - Sign-in → Session and roles: reads session
src/routes/auth.tsx - Session and roles → Browser Supabase client: queries auth
src/lib/auth-context.tsx - Authenticated workspace → Session and roles: checks access
src/routes/_authenticated/route.tsx - Authenticated workspace → Role navigation: renders navigation
src/routes/_authenticated/route.tsx - Authenticated workspace → Push notifications: enables notifications
src/routes/_authenticated/route.tsx - Role navigation → Session and roles: reads role
src/components/AppSidebar.tsx - Route registry → Authenticated workspace: registers layout
src/routeTree.gen.ts - Route registry → Admin management: registers routes
src/routeTree.gen.ts - Route registry → Teacher administration: registers routes
src/routeTree.gen.ts - Route registry → Attendance: registers routes
src/routeTree.gen.ts - Route registry → Classes and timetable: registers routes
src/routeTree.gen.ts - Route registry → Fees and reminders: registers routes
src/routeTree.gen.ts - Route registry → Reports: registers routes
src/routeTree.gen.ts - Route registry → Calendar and notices: registers routes
src/routeTree.gen.ts - Route registry → Messages: registers routes
src/routeTree.gen.ts - Route registry → Parent services: registers routes
src/routeTree.gen.ts - Route registry → Transport management: registers routes
src/routeTree.gen.ts - Route registry → Live bus tracking: registers routes
src/routeTree.gen.ts - Route registry → Driver tracker: registers routes
src/routeTree.gen.ts - Sign-in → Parent OTP: requests verification
src/routes/auth.tsx - Teacher administration → Server Supabase client: calls admin functions
src/routes/_authenticated/admin.teachers.tsx - Fees and reminders → Browser Supabase client: queries fees
src/routes/_authenticated/admin.fees.tsx - Teacher administration → Browser Supabase client: queries records
src/routes/_authenticated/admin.teachers.tsx - Transport management → Browser Supabase client: queries transport
src/routes/_authenticated/admin.transport.tsx - Calendar and notices → Browser Supabase client: queries calendar
src/routes/_authenticated/calendar.tsx - Browser Supabase client → Supabase service: connects
src/integrations/supabase/client.ts - Server Supabase client → Supabase service: connects
src/integrations/supabase/client.server.ts - Push notifications → Browser Supabase client: uses client
src/hooks/usePushNotifications.ts