How mdcgitam/tmcg-ideasprint-portal works
TMCG IdeaSprint Portal is a university event registration and operations portal. Visitors explore event information and team registration; registered participants sign in, then role-based dashboards support campus administration and team operations. The public homepage composition, OAuth callback, dashboard data fetch, and selected component-to-action calls are evidenced by excerpts or the SOURCE INDEX. Many dashboard and registration modules are listed but unsampled, so their internal routing and data relationships are omitted rather than inferred.
Main entry points: (public)/page.tsx Event homepage · route.ts OAuth callback · login/page.tsx Google sign-in · super/page.tsx Super dashboard
Components 30
Public event site
- Event homepage
src/app/(public)/page.tsx - Hero
src/components/sections/Hero.tsx - Journey dates
src/components/sections/JourneyDatesSection.tsx - Journey rounds
src/components/sections/JourneyRoundsSection.tsx - Instructions
src/components/sections/InstructionsSection.tsx - Prizes
src/components/sections/PrizeSection.tsx - Director message
src/components/sections/DirectorMessageSection.tsx - Judges
src/components/sections/JudgesSection.tsx - Gallery
src/components/sections/GallerySection.tsx - FAQ
src/components/sections/FAQSection.tsx - Contact
src/components/sections/ContactSection.tsx
Identity and access
- Google sign-in
src/app/login/page.tsx - OAuth callback
src/app/auth/callback/route.ts - Role routing
src/lib/auth/roles.ts
Event operations
- Team registration
src/lib/registration/actions.ts - Registration schema
src/lib/registration/schema.ts - Super dashboard
src/app/dashboard/super/page.tsx - Admin dashboard data
src/lib/dashboard/admin-data.ts - Admin actions
src/lib/dashboard/admin-actions.ts - Team actions
src/lib/dashboard/team-actions.ts - Admin modules
src/components/dashboard/admin/routes - Team dashboard
src/components/dashboard/team
Shared data layer
- Dashboard data types
src/types/database.ts - Configuration types
src/types/config.ts - Browser client
src/lib/supabase/client.ts - Server client
src/lib/supabase/server.ts - Service client
src/lib/supabase/service.ts
Other components
- Visitor
- Participant
- Supabase
Connections 28
- Visitor → Event homepage: browses
- Event homepage → Hero: renders
src/app/(public)/page.tsx - Event homepage → Journey dates: renders
src/app/(public)/page.tsx - Event homepage → Journey rounds: renders
src/app/(public)/page.tsx - Event homepage → Instructions: renders
src/app/(public)/page.tsx - Event homepage → Prizes: renders
src/app/(public)/page.tsx - Event homepage → Director message: renders
src/app/(public)/page.tsx - Event homepage → Judges: renders
src/app/(public)/page.tsx - Event homepage → Gallery: renders
src/app/(public)/page.tsx - Event homepage → FAQ: renders
src/app/(public)/page.tsx - Event homepage → Contact: renders
src/app/(public)/page.tsx - Participant → Team registration: registers
- Team registration → Registration schema: validates with
- Participant → Google sign-in: signs in
- Google sign-in → Browser client: starts OAuth
src/app/login/page.tsx - Google sign-in → OAuth callback: redirects to
src/app/login/page.tsx - OAuth callback → Server client: exchanges code
src/app/auth/callback/route.ts - OAuth callback → Service client: links profile
src/app/auth/callback/route.ts - OAuth callback → Role routing: routes by role
src/app/auth/callback/route.ts - OAuth callback → Dashboard data types: casts profile
src/app/auth/callback/route.ts - Super dashboard → Admin dashboard data: fetches data
src/app/dashboard/super/page.tsx - Super dashboard → Dashboard data types: uses types
- Admin modules → Admin actions: invokes actions
- Team dashboard → Team actions: invokes actions
- Admin actions → Supabase: reads and writes
- Admin dashboard data → Supabase: reads data
- Team actions → Supabase: reads and writes
- Event homepage → Supabase: reads public data
src/app/(public)/page.tsx