How sampath-8985/mbuacm works
MBU ACM is a student-chapter website combining public chapter information, event discovery and registration, student profiles, and an administrator portal. Visitors browse events and chapter content; students authenticate, complete profiles, register, and access their event passes; administrators manage events, crew, gallery albums, rosters, and inquiries. The React app routes these experiences to domain services, which use Firebase when configured and browser localStorage in demo mode. The graph follows documented routes and indexed imports; unsampled service internals are not assumed.
Main entry points: App.tsx Application router · events.ts Event service · registrations.ts Registration service · crew.ts Crew service
Components 33
App and identity
- Application router
src/App.tsx - Authentication context
src/context/AuthContext.tsx - Sign-in and signup
src/pages/LoginPage.tsx
Public chapter site
- Chapter home
src/pages/HomePage.tsx - Event discovery
src/pages/EventsPage.tsx - Event details
src/pages/EventDetailsPage.tsx - Crew roster
src/pages/CrewPage.tsx - Event gallery
src/pages/GalleryPage.tsx - Contact inquiries
src/pages/ContactPage.tsx
Student hub
- Profile onboarding
src/pages/CompleteProfilePage.tsx - Student dashboard
src/pages/user/UserDashboardPage.tsx - Profile management
src/pages/user/UserProfilePage.tsx
Admin portal
- Admin access gate
src/components/layout/AdminLayout.tsx - Admin overview
src/pages/admin/AdminDashboardPage.tsx - Event management
src/pages/admin/AdminEventsPage.tsx - Event editor
src/pages/admin/AdminEventFormPage.tsx - Crew management
src/pages/admin/AdminCrewPage.tsx - Gallery management
src/pages/admin/AdminGalleryPage.tsx - Roster management
src/pages/admin/AdminRegistrationsPage.tsx - Inquiry review
src/pages/admin/AdminContactSubmissionsPage.tsx
Domain data and storage
- Event service
src/services/events.ts - Crew service
src/services/crew.ts - Registration service
src/services/registrations.ts - Profile service
src/services/profiles.ts - Gallery service
src/services/gallery.ts - Contact service
src/services/contact.ts - Image upload
src/services/storage.ts - Demo local store
src/services/store.ts - Demo seed data
src/lib/mockData.ts - Firebase clients
src/lib/firebase.ts
Other components
- Visitor or student
- Cloud Firestore
- Firebase Storage
Connections 48
- Visitor or student → Application router: opens site
README.md - Application router → Authentication context: provides identity
src/App.tsx - Application router → Chapter home: routes to
src/App.tsx - Application router → Event discovery: routes to
src/App.tsx - Application router → Event details: routes to
src/App.tsx - Application router → Crew roster: routes to
src/App.tsx - Application router → Event gallery: routes to
src/App.tsx - Application router → Contact inquiries: routes to
src/App.tsx - Application router → Sign-in and signup: routes to
src/App.tsx - Application router → Profile onboarding: routes to
src/App.tsx - Application router → Student dashboard: routes to
src/App.tsx - Application router → Profile management: routes to
src/App.tsx - Application router → Admin access gate: routes admin
src/App.tsx - Chapter home → Event service: loads events
src/pages/HomePage.tsx - Chapter home → Crew service: loads crew
src/pages/HomePage.tsx - Event discovery → Event service: loads events
src/pages/EventsPage.tsx - Event details → Event service: loads event
src/pages/EventDetailsPage.tsx - Event details → Registration service: registers attendee
src/pages/EventDetailsPage.tsx - Crew roster → Crew service: loads roster
src/pages/CrewPage.tsx - Event gallery → Gallery service: loads albums
src/pages/GalleryPage.tsx - Contact inquiries → Contact service: submits inquiry
src/pages/ContactPage.tsx - Authentication context → Profile service: reads profile
src/context/AuthContext.tsx - Profile onboarding → Profile service: saves profile
src/pages/CompleteProfilePage.tsx - Student dashboard → Registration service: loads registrations
src/pages/user/UserDashboardPage.tsx - Profile management → Profile service: updates profile
src/pages/user/UserProfilePage.tsx - Admin access gate → Authentication context: checks role
src/components/layout/AdminLayout.tsx - Admin overview → Event service: counts events
src/pages/admin/AdminDashboardPage.tsx - Admin overview → Crew service: counts crew
src/pages/admin/AdminDashboardPage.tsx - Admin overview → Registration service: loads activity
src/pages/admin/AdminDashboardPage.tsx - Admin overview → Contact service: counts inquiries
src/pages/admin/AdminDashboardPage.tsx - Event management → Event service: manages events
src/pages/admin/AdminEventsPage.tsx - Event editor → Event service: saves event
src/pages/admin/AdminEventFormPage.tsx - Event editor → Image upload: uploads poster
src/pages/admin/AdminEventFormPage.tsx - Crew management → Crew service: manages crew
src/pages/admin/AdminCrewPage.tsx - Crew management → Image upload: uploads photos
src/pages/admin/AdminCrewPage.tsx - Gallery management → Gallery service: saves albums
src/pages/admin/AdminGalleryPage.tsx - Gallery management → Image upload: uploads images
src/pages/admin/AdminGalleryPage.tsx - Gallery management → Event service: links event
src/pages/admin/AdminGalleryPage.tsx - Roster management → Registration service: filters rosters
- Inquiry review → Contact service: reviews inquiries
README.md - Registration service → Event service: validates event
src/services/registrations.ts - Registration service → Profile service: checks profile
src/services/registrations.ts - Event service → Demo local store: reads or writes
src/services/events.ts - Crew service → Demo local store: reads or writes
src/services/crew.ts - Demo local store → Demo seed data: seeds defaults
src/services/store.ts - Event service → Firebase clients: checks configuration
src/services/events.ts - Crew service → Firebase clients: checks configuration
src/services/crew.ts - Registration service → Firebase clients: uses client
src/services/registrations.ts