How nigelboada/futcon works
FUTCON is a football-community platform for creating role-specific profiles, discovering people, and contacting them. The main flow is account access and onboarding, profile completion, profile search and viewing, then conversation; achievements add a related progression feature. Supabase provides server-side authentication and data access, while profile completeness and localization are shared application services. The map includes documented-by-source-index routes and sampled implementations; many feature pages and actions were not opened, so their internal calls are not expanded.
Main entry points: dashboard/page.tsx Dashboard · guards.ts Access guards · edit/page.tsx Edit profile · server.ts Server client
Components 23
Identity and profiles
- Sign in and register
src/app/(auth)/actions.ts - Role onboarding
src/app/onboarding/page.tsx - Dashboard
src/app/dashboard/page.tsx - Edit profile
src/app/profile/edit/page.tsx - Public profile
src/app/profile/[id]/page.tsx - Profile completeness
src/lib/profiles/completeness.ts
Discovery and conversations
- Profile search
src/app/search/page.tsx - Conversations
src/app/conversations/page.tsx - Conversation actions
src/app/conversations/conversation-actions.ts - Conversation detail
src/app/conversations/[id]/page.tsx
Achievements
- Achievement center
src/app/achievements/page.tsx - Achievement awards
src/lib/achievements/award.ts
Shared platform
- Administration
src/app/admin/page.tsx - Access guards
src/lib/auth/guards.ts - Profile initialization
src/lib/auth/profiles.ts - Server client
src/lib/supabase/server.ts - Locale detection
src/lib/i18n/server.ts - Locale definitions
src/lib/i18n/config.ts - Translation messages
src/lib/i18n/messages.ts - Feedback mapping
src/lib/i18n/feedback.ts - Completeness display
src/components/profiles/profile-completeness-banner.tsx
Other components
- User
- Supabase
Connections 30
- User → Sign in and register: signs up
- User → Role onboarding: sets role
src/app/onboarding/page.tsx - User → Dashboard: views dashboard
src/app/dashboard/page.tsx - User → Edit profile: edits profile
src/app/profile/edit/page.tsx - User → Profile search: searches profiles
src/app/search/page.tsx - User → Conversations: views conversations
src/app/conversations/page.tsx - Sign in and register → Server client: uses client
- Role onboarding → Server client: uses client
src/app/onboarding/page.tsx - Dashboard → Access guards: requires user
src/app/dashboard/page.tsx - Dashboard → Supabase: reads profile data
src/app/dashboard/page.tsx - Dashboard → Profile completeness: calculates completeness
src/app/dashboard/page.tsx - Edit profile → Access guards: requires user
src/app/profile/edit/page.tsx - Edit profile → Supabase: reads profile data
src/app/profile/edit/page.tsx - Edit profile → Completeness display: renders status
src/app/profile/edit/page.tsx - Public profile → Access guards: checks access
src/app/profile/[id]/page.tsx - Public profile → Profile completeness: uses completeness
src/app/profile/[id]/page.tsx - Public profile → Achievement awards: uses badges
src/app/profile/[id]/page.tsx - Profile search → Access guards: requires user
src/app/search/page.tsx - Profile search → Achievement awards: awards achievements
src/app/search/page.tsx - Conversations → Conversation actions: uses actions
src/app/conversations/page.tsx - Conversation detail → Conversation actions: uses actions
- Access guards → Server client: creates client
src/lib/auth/guards.ts - Access guards → Profile initialization: ensures profile
src/lib/auth/guards.ts - Server client → Supabase: connects
src/lib/supabase/server.ts - Locale detection → Locale definitions: validates locale
src/lib/i18n/server.ts - Dashboard → Locale detection: gets locale
src/app/dashboard/page.tsx - Dashboard → Translation messages: loads messages
src/app/dashboard/page.tsx - Dashboard → Feedback mapping: resolves feedback
src/app/dashboard/page.tsx - Administration → Access guards: requires user
src/app/admin/page.tsx - Administration → Feedback mapping: resolves feedback
src/app/admin/page.tsx