How capchris20/7th-project--coach-connect works
Coach Connect is a mobile fitness and wellness app connecting clients with trainers, with nutrition tracking, workout planning, messaging, scheduling, shared files, payments, and an AI coach. The client workflow begins with app startup and shared Firebase setup, then moves through role-specific navigation into features such as food search and daily logging. The repository also has an Express backend and Firebase functions. Source excerpts support only a subset of runtime connections; other major product areas are shown without inferred call relationships.
Main entry points: ClientAppStart.js App startup · ClientMainScreen.jsx Client navigation · coachRequestHandler.js Coach request handler · FoodSearchScreen.js Food search
Components 22
Client app
- App startup
src/app-start/ClientAppStart.js - Client navigation
src/client-app/navigation/ClientMainScreen.jsx - Client home
src/client-app/home/TrainingHomeScreen.jsx - Food search
src/nutrition/food-search/FoodSearchScreen.js - Food result cleanup
src/nutrition/food-search/tidyFoodTitles.js - Daily food log
src/nutrition/daily-log/DailyLogContent.jsx - Save logged food
src/nutrition/daily-log/saveLoggedFood.js
AI coaching
- Coach home
src/ai-coach/home-screen/CoachHomeScreen.jsx - Coach conversation
src/ai-coach/conversation/CoachConversationScreen.jsx - Action confirmation rules
src/ai-coach/coach-actions/shouldAskFirst.js
Backend services
- Express API
server/index.js - Food API routes
server/routes/foodRoutes.js - Coach request handler
server/lib/aiCoach/coachRequestHandler.js - Coach web search
server/lib/coachWebSearch.js - LLM providers
server/lib/llm/coachLlmProviders.js - Firebase functions
functions/index.js
Trainer tools
- Trainer app
src/trainer-app/navigation/TrainerMainScreen.jsx
Shared app services
- Firebase connection
src/app-start/cloudConnection.js - Shared file handling
src/for-both/files-and-notes/viewers/AddFilePopup.js - Shared header
src/for-both/loading-and-header/TopHeader.js - Navigation layout
src/navigation/bottomMenuSpacing.js
Other components
- Client or trainer
Connections 19
- Client or trainer → App startup: opens app
src/app-start/ClientAppStart.js - App startup → Firebase connection: uses shared setup
src/app-start/ClientAppStart.js - App startup → Client home: loads home data
src/app-start/ClientAppStart.js - App startup → Client navigation: starts client shell
- Client navigation → Client home: shows home
src/client-app/navigation/ClientMainScreen.jsx - Client navigation → Navigation layout: positions navigation
src/client-app/navigation/ClientMainScreen.jsx - Food search → Food result cleanup: cleans results
src/nutrition/food-search/tidyFoodTitles.js - Food search → Save logged food: saves selected food
src/nutrition/food-search/FoodSearchScreen.js - Daily food log → Save logged food: uses food logging
src/nutrition/daily-log/DailyLogContent.jsx - Coach home → Coach conversation: opens conversation
- Coach conversation → Action confirmation rules: checks proposed actions
src/ai-coach/conversation/CoachConversationScreen.jsx - Express API → Food API routes: registers routes
- Express API → Coach request handler: dispatches requests
server/index.js - Coach request handler → Coach web search: invokes search
server/lib/aiCoach/coachRequestHandler.js - Coach request handler → LLM providers: calls providers
server/lib/aiCoach/coachRequestHandler.js - Client or trainer → Trainer app: uses trainer tools
- Client or trainer → Shared file handling: shares files
- Client or trainer → Firebase functions: triggers services
- Shared header → Navigation layout: shares shell layout