How unai-tech/my_vidyon works
My_Vidyon is a multi-role school ERP mobile/web application. A user signs in, the app resolves their identity and role, and the entry screen routes them to role-specific workflows such as academics, admissions, fees, administration, and stakeholder reporting. The sampled sources show Supabase-backed auth, role permissions, and several dashboard integrations. The README provides no capability detail; domain coverage here is based on the route tree and SOURCE INDEX, so links between unsampled screens and services are omitted rather than inferred.
Main entry points: index.tsx Role routing · supabase.ts Supabase client · useAuth.tsx Identity and session · RBACContext.tsx Permission context
Components 23
Entry and access
- Sign-in
app/(auth)/login.tsx - Identity and session
src/hooks/useAuth.tsx - Role routing
app/index.tsx
Shared platform
- Permission context
src/context/RBACContext.tsx - Permission rules
src/lib/rbac.ts - Secure session storage
src/lib/storage.ts - Supabase client
src/lib/supabase.ts - Shared interface components
src/components/common - File uploads
src/utils/fileUpload.ts
Academic workflows
- Faculty workflows
app/(root)/faculty - Student learning
app/(root)/student
Institution operations
- Institution management
app/(root)/institution - Platform administration
app/(root)/admin - Finance and accounting
app/(root)/accountant - Stakeholder management
src/components/stakeholder/StakeholderManagementModal.tsx
Community and services
- Parent portal
app/(root)/parent - Stakeholder overview
app/(root)/stakeholder/index.tsx - Canteen operations
app/(root)/canteen/index.tsx - Events and advertising
src/components/common/EventAdCarousel.tsx - Stakeholder metrics
src/hooks/useStakeholderDashboard.ts - Canteen dashboard data
src/hooks/useCanteenDashboard.ts
Other components
- ERP user
- Supabase backend
Connections 29
- ERP user → Sign-in: signs in
app/(auth)/login.tsx - Sign-in → Identity and session: uses session
app/(auth)/login.tsx - Sign-in → Shared interface components: renders
- Identity and session → Supabase client: authenticates
src/hooks/useAuth.tsx - Identity and session → Secure session storage: reads tokens
src/hooks/useAuth.tsx - Role routing → Identity and session: checks session
app/index.tsx - Role routing → Supabase client: loads data
app/index.tsx - Role routing → Institution management: routes by role
app/index.tsx - Role routing → Stakeholder overview: routes by role
app/index.tsx - Role routing → Faculty workflows: routes by role
app/index.tsx - Role routing → Student learning: routes by role
app/index.tsx - Role routing → Parent portal: routes by role
app/index.tsx - Role routing → Canteen operations: routes by role
app/index.tsx - Permission context → Identity and session: reads identity
src/context/RBACContext.tsx - Permission context → Supabase client: fetches permissions
src/context/RBACContext.tsx - Permission context → Permission rules: checks access
src/context/RBACContext.tsx - Supabase client → Secure session storage: persists sessions
src/lib/supabase.ts - Supabase client → Supabase backend: connects to
src/lib/supabase.ts - Stakeholder overview → Stakeholder metrics: loads metrics
src/hooks/useStakeholderDashboard.ts - Stakeholder metrics → Supabase client: queries data
src/hooks/useStakeholderDashboard.ts - Stakeholder metrics → Permission context: checks role
src/hooks/useStakeholderDashboard.ts - Canteen operations → Canteen dashboard data: loads dashboard
app/(root)/canteen/index.tsx - Canteen dashboard data → Supabase client: queries data
src/hooks/useCanteenDashboard.ts - Events and advertising → Supabase client: loads events
src/components/common/EventAdCarousel.tsx - Events and advertising → Identity and session: reads user
src/components/common/EventAdCarousel.tsx - Platform administration → File uploads: uploads media
app/(root)/admin/ads/index.tsx - Platform administration → Stakeholder management: uses management
app/(root)/admin/onboarding/index.tsx - Stakeholder management → Supabase client: manages records
src/components/stakeholder/StakeholderManagementModal.tsx - Institution management → File uploads: uploads files