How stephen-t-2023/vigil works
Vigil is a fitness-tracking web app: users enter through a session-aware landing route, then use authenticated pages to log meals, workouts, steps, and weight, configure goals, and review progress. The sampled files show page-level access to Supabase through a shared client, plus shared navigation and loading UI. The README describes only the Next.js starter, so several product capabilities are identified from source-index descriptions; unsampled page behavior is not expanded beyond those descriptions.
Main entry points: supabaseClient.js Supabase client · Skeleton.jsx Loading skeleton · index.js Session redirect · dashboard.jsx Dashboard
Components 17
Entry and navigation
- Session redirect
src/pages/index.js - Sign in
src/pages/login.jsx - Registration
src/pages/signup.jsx - Navigation
src/components/Navbar.jsx - Privacy policy
src/pages/privacy.jsx
Fitness tracking
- Dashboard
src/pages/dashboard.jsx - Meal tracking
src/pages/calories.jsx - Step tracking
src/pages/steps.jsx - Workout logging
src/pages/workouts.jsx - Weight tracking
src/pages/weight.jsx
Goals and insights
- Progress charts
src/pages/progress.jsx - Goals and account
src/pages/settings.jsx
Shared services and UI
- Supabase client
src/lib/supabaseClient.js - Supabase backend
- Loading skeleton
src/components/Skeleton.jsx - Global footer
src/components/Footer.jsx
Other components
- User
Connections 24
- User → Session redirect: opens app
- Session redirect → Supabase client: checks session
src/pages/index.js - Session redirect → Dashboard: routes authenticated
src/pages/index.js - Session redirect → Sign in: routes unauthenticated
src/pages/index.js - Navigation → Supabase client: checks session
src/components/Navbar.jsx - Navigation → Sign in: signs out to
src/components/Navbar.jsx - Dashboard → Supabase client: reads fitness data
src/pages/dashboard.jsx - Meal tracking → Supabase client: manages meals
src/pages/calories.jsx - Step tracking → Supabase client: manages steps
src/pages/steps.jsx - Workout logging → Supabase client: manages workouts
src/pages/workouts.jsx - Weight tracking → Supabase client: manages entries
src/pages/weight.jsx - Progress charts → Supabase client: loads chart data
src/pages/progress.jsx - Goals and account → Supabase client: loads settings
src/pages/settings.jsx - Supabase client → Supabase backend: creates client
src/lib/supabaseClient.js - Meal tracking → Loading skeleton: renders loading
src/pages/calories.jsx - Dashboard → Loading skeleton: renders loading
src/pages/dashboard.jsx - Step tracking → Loading skeleton: renders loading
src/pages/steps.jsx - Workout logging → Loading skeleton: renders loading
src/pages/workouts.jsx - Weight tracking → Loading skeleton: renders loading
src/pages/weight.jsx - Progress charts → Loading skeleton: renders loading
src/pages/progress.jsx - Goals and account → Loading skeleton: renders loading
src/pages/settings.jsx - Privacy policy → Supabase client
- Sign in → Supabase client: uses auth
src/pages/login.jsx - Registration → Supabase client: uses auth
src/pages/signup.jsx