How suryas2007/odivilaiyaadu works
Odi Vilaiyaadu is a mobile event-management app for AmChaTS traditional-games events. Its user-facing workflow spans authentication, parent-managed child profiles, event and game administration, and recording scores and results; volunteer coordination and organizational information are additional capabilities. The sampled sources show root-level loading and notification registration, Supabase-backed profile and scoring operations, and division score-table rendering. Many route screens and stores were not sampled, so their internal calls and data flow are not inferred.
Main entry points: _layout.tsx Root layout · DivisionAccordion.tsx Division scoring · auth-store.ts Authentication · supabase.ts Supabase backend
Components 24
App and access
- Expo entry
mobile/App.tsx - Root layout
mobile/app/_layout.tsx - Authentication
mobile/store/auth-store.ts - Login and signup
mobile/app/(modal)/auth/login.tsx - Home screen
mobile/app/(tabs)/index.tsx - Translations
mobile/i18n/index.ts
Event operations
- Event management
mobile/app/(tabs)/events/index.tsx - Event and games
mobile/app/(tabs)/events/[eventId]/index.tsx - Event editing
mobile/app/(tabs)/events/edit/[eventId].tsx - Game editing
mobile/app/(tabs)/events/[eventId]/games/edit/[gameId].tsx - Event state
mobile/store/events-store.ts
Participants and community
- Child profiles
mobile/store/children-store.ts - Parent management
mobile/app/(tabs)/parent/index.tsx - Volunteer coordination
mobile/app/(tabs)/volunteer.tsx - Organization information
mobile/app/(tabs)/info/index.tsx
Services and results
- Division scoring
mobile/components/DivisionAccordion.tsx - Score table
mobile/components/ScoreCardTable.tsx - Age divisions
mobile/constants/divisions.ts - Score calculations
mobile/utils/score.ts - Supabase backend
mobile/config/supabase.ts - Push notifications
mobile/utils/notification.ts - Division notifications
mobile/supabase/functions/publish_division_notifications/index.ts - Account deletion
mobile/supabase/functions/delete_account/index.ts
Other components
- App user
Connections 24
- App user → Expo entry: opens app
mobile/App.tsx - Expo entry → Root layout: starts routing
- Root layout → Authentication: loads user
mobile/app/_layout.tsx - Root layout → Event state: fetches events
mobile/app/_layout.tsx - Root layout → Push notifications: registers token
mobile/app/_layout.tsx - Root layout → Authentication: saves push token
mobile/app/_layout.tsx - App user → Login and signup: authenticates
- Login and signup → Authentication: uses auth state
- Home screen → Authentication: reads session
mobile/app/(tabs)/index.tsx - Home screen → Event state: reads events
mobile/app/(tabs)/index.tsx - App user → Event management: manages events
- Event management → Event and games: opens event
- App user → Parent management: manages children
- Parent management → Child profiles: uses child state
- App user → Volunteer coordination: coordinates volunteering
- App user → Organization information: reads information
- Event and games → Division scoring: renders divisions
- Division scoring → Score table: renders scores
mobile/components/DivisionAccordion.tsx - Division scoring → Score calculations: assigns medals
mobile/components/DivisionAccordion.tsx - Division scoring → Supabase backend: updates results
mobile/components/DivisionAccordion.tsx - Division scoring → Age divisions: uses division data
- Root layout → Translations: provides translations
- Division notifications → Supabase backend: uses backend
- Account deletion → Supabase backend: uses backend