How ahmed-code120/ahmed-s-health-dashboard works
HealthCore is a fitness and nutrition dashboard for tracking meals, workouts, and weight, with a summary dashboard and configurable goals and Ramadan mode. The user enters through the routed app, then uses individual tracking screens; meal descriptions can be sent for AI nutrition analysis. The sampled screens mostly show mock or in-memory state, not durable tracking storage. The meal-analysis request is visible, but the server implementation and any database behavior were not sampled, so those relationships are not inferred.
Main entry points: App.tsx Routes and Auth · Card.tsx Card UI · Meals.tsx Meal Tracking · Dashboard.tsx Health Dashboard
Components 14
App Shell
- React Entry
src/main.tsx - Routes and Auth
src/App.tsx - App Layout
src/components/Layout.tsx - Navigation
src/components/Sidebar.tsx - Login Screen
src/pages/Login.tsx
Health Tracking
- Health Dashboard
src/pages/Dashboard.tsx - Meal Tracking
src/pages/Meals.tsx - Workout Tracking
src/pages/Workout.tsx - Weight Tracking
src/pages/Weight.tsx
Configuration
- Settings Screen
src/pages/Settings.tsx - Settings State
src/context/SettingsContext.tsx
Shared UI
- Card UI
src/components/Card.tsx
Other components
- User
- Meal Analysis API
Connections 21
- User → React Entry: opens app
src/main.tsx - React Entry → Routes and Auth: renders
src/main.tsx - Routes and Auth → App Layout: routes to
src/App.tsx - Routes and Auth → Login Screen: routes to
src/App.tsx - Routes and Auth → Health Dashboard: routes to
src/App.tsx - Routes and Auth → Meal Tracking: routes to
src/App.tsx - Routes and Auth → Workout Tracking: routes to
src/App.tsx - Routes and Auth → Weight Tracking: routes to
src/App.tsx - Routes and Auth → Settings Screen: routes to
src/App.tsx - App Layout → Navigation: renders
src/components/Layout.tsx - App Layout → Health Dashboard: hosts route
src/components/Layout.tsx - Health Dashboard → Card UI: renders
src/pages/Dashboard.tsx - Meal Tracking → Card UI: renders
src/pages/Meals.tsx - Workout Tracking → Card UI: renders
src/pages/Workout.tsx - Weight Tracking → Card UI: renders
src/pages/Weight.tsx - Settings Screen → Card UI: renders
src/pages/Settings.tsx - Routes and Auth → Settings State: provides state
src/App.tsx - Health Dashboard → Settings State: reads settings
src/pages/Dashboard.tsx - Meal Tracking → Settings State: reads settings
src/pages/Meals.tsx - Settings Screen → Settings State: updates settings
src/pages/Settings.tsx - Meal Tracking → Meal Analysis API: requests analysis
src/pages/Meals.tsx