How poqopo/poom works
Poom is a React application for sign-in, profile onboarding, and a personalized home screen, with a Supabase-backed health check. The main flow routes a signed-in user through profile completion before home; query hooks and API modules provide the internal data layer. The README documents the health-check invocation, while several backend and database details are represented only by their tree paths, so uncertain connections are omitted.
Main entry points: App.tsx Route and access gates · supabase.ts Supabase client · Providers.tsx Global providers · NicknameOnboardingPage.tsx Nickname onboarding
Components 23
Application shell
- React entry
src/main.tsx - Global providers
src/app/Providers.tsx - Route and access gates
src/App.tsx - Brand identity
src/components/Brand.tsx
Identity and onboarding
- Session provider
src/features/auth/AuthProvider.tsx - Auth context
src/features/auth/authContext.ts - Auth hook
src/features/auth/useAuth.ts - Login screen
src/features/auth/LoginPage.tsx - Nickname onboarding
src/features/profile/NicknameOnboardingPage.tsx - Profile query
src/features/profile/useProfile.ts - Profile API
src/features/profile/api.ts
Home experience
- Home screen
src/features/home/HomePage.tsx - Home summary query
src/features/home/useHomeSummary.ts - Home summary API
src/features/home/api.ts
Health check
- Health status card
src/features/health-check/HealthCheckCard.tsx - Health check query
src/features/health-check/useHealthCheck.ts - Health-check function
supabase/functions/health-check/index.ts
Data platform
- Query client
src/lib/queryClient.ts - Supabase client
src/lib/supabase.ts - Home-summary function
supabase/functions/home-summary/index.ts - Profile schema and onboarding migrations
supabase/migrations
Other components
- User
- Supabase services
Connections 31
- User → React entry: opens app
README.md - React entry → Global providers: mounts providers
src/main.tsx - Global providers → Session provider: wraps with
src/app/Providers.tsx - Global providers → Query client: provides cache
src/app/Providers.tsx - Global providers → Route and access gates: wraps routes
src/app/Providers.tsx - Route and access gates → Auth hook: checks session
src/App.tsx - Route and access gates → Login screen: renders login
src/App.tsx - Route and access gates → Profile query: loads profile
src/App.tsx - Route and access gates → Nickname onboarding: renders onboarding
src/App.tsx - Route and access gates → Home screen: renders home
src/App.tsx - Session provider → Auth context: provides state
src/features/auth/AuthProvider.tsx - Auth hook → Auth context: reads context
src/features/auth/useAuth.ts - Session provider → Supabase client: uses client
src/features/auth/AuthProvider.tsx - Login screen → Supabase client: uses client
src/features/auth/LoginPage.tsx - Nickname onboarding → Auth hook: reads user
src/features/profile/NicknameOnboardingPage.tsx - Nickname onboarding → Profile API: updates profile
src/features/profile/NicknameOnboardingPage.tsx - Profile query → Profile API: fetches profile
src/features/profile/useProfile.ts - Profile API → Supabase client: queries profile
src/features/profile/api.ts - Profile API → Profile schema and onboarding migrations: uses profile records
- Home screen → Auth hook: reads user
src/features/home/HomePage.tsx - Home screen → Home summary query: loads summary
src/features/home/HomePage.tsx - Home summary query → Home summary API: fetches summary
src/features/home/useHomeSummary.ts - Home summary API → Supabase client: uses client
src/features/home/api.ts - Login screen → Brand identity: renders brand
src/features/auth/LoginPage.tsx - Nickname onboarding → Brand identity: renders brand
src/features/profile/NicknameOnboardingPage.tsx - Home screen → Brand identity: renders brand
src/features/home/HomePage.tsx - Health status card → Health check query: reads status
src/features/health-check/HealthCheckCard.tsx - Health check query → Supabase client: invokes function
src/features/health-check/useHealthCheck.ts - Health check query → Health-check function: calls function
src/features/health-check/useHealthCheck.ts - Supabase client → Supabase services: connects to
- User → Health status card: views status