How daniyalahmed3399-droid/calovision works
CaloVision is a nutrition and wellness web app. Users can explore public health tools, create an account, complete onboarding and review backend-provided targets, then use the authenticated app for food, activity and progress tracking. Separate capabilities include meal planning, recipe nutrition calculation, calorie calculation and BMI estimation. The graph shows the sampled authentication, search and recipe flows plus documented-by-index modules; several tracking and planning screens are listed without inferred calls because their route implementations were not sampled.
Main entry points: FoodSearch.jsx Food search · RecipeNutritionCalculator.jsx Recipe nutrition · AuthGate.jsx Access guard · authSlice.js Session and auth
Components 22
Public tools
- Public home
src/app/page.js - BMI calculator
src/components/BMICalculator.jsx - Calorie calculator
src/components/CaloriesCalculator.jsx
Identity setup
- Login and signup
src/app/(auth)/layout.js - Access guard
src/components/auth/AuthGate.jsx - Profile onboarding
src/components/onboarding/Onboarding.jsx - Session and auth
src/lib/store/slices/authSlice.js - Auth API
src/lib/api/auth.js
Nutrition tracking
- Food search
src/components/tracking/FoodSearch.jsx - Food selection dialog
src/components/tracking/FoodDetailDialog.jsx - Tracking endpoints
src/lib/store/endpoints/trackingApi.js - Daily dashboard
src/components/tracking/Dashboard.jsx - Activity tracking
src/components/tracking/ActivityPage.jsx - Progress history
src/app/app/progress/page.js
Planning tools
- Meal planner
src/components/meal-planner/MealPlanner.jsx - Planner calculations
src/components/meal-planner/mealPlannerUtils.js - Recipe nutrition
src/components/recipe/RecipeNutritionCalculator.jsx - Recipe calculations
src/components/recipe/recipeUtils.js
App platform
- Shared app state
src/lib/store/hooks.js - HTTP client
src/lib/api/client.js
Other components
- Visitor
- Backend service
Connections 24
- Visitor → Public home: opens
src/app/page.js - Public home → BMI calculator: renders
src/app/page.js - Visitor → Login and signup: opens
- Login and signup → Access guard: guards access
src/app/(auth)/layout.js - Access guard → Shared app state: reads auth
src/components/auth/AuthGate.jsx - Access guard → Daily dashboard: routes onboarded
- Profile onboarding → Session and auth: saves profile
src/components/onboarding/Onboarding.jsx - Session and auth → Auth API: requests auth
src/lib/store/slices/authSlice.js - Session and auth → HTTP client: uses session API
- Visitor → Food search: searches food
- Food search → Food selection dialog: opens selection
src/components/tracking/FoodSearch.jsx - Food search → Tracking endpoints: queries foods
src/components/tracking/FoodSearch.jsx - Food search → Shared app state: reads selected date
src/components/tracking/FoodSearch.jsx - Tracking endpoints → HTTP client: uses API base
- HTTP client → Backend service: sends requests
src/lib/api/client.js - Visitor → Daily dashboard: tracks daily intake
- Visitor → Activity tracking: logs activity
- Visitor → Progress history: reviews progress
- Visitor → Meal planner: plans meals
- Meal planner → Planner calculations: uses calculations
src/components/meal-planner/MealPlanner.jsx - Visitor → Recipe nutrition: builds recipe
- Recipe nutrition → Recipe calculations: validates recipe
src/components/recipe/RecipeNutritionCalculator.jsx - Recipe nutrition → Shared app state: dispatches updates
src/components/recipe/RecipeNutritionCalculator.jsx - Recipe nutrition → Food selection dialog: renders ingredients
src/components/recipe/RecipeNutritionCalculator.jsx