How manivask/fitness-tracker works
Fitness & Diet Tracker is a two-member web app for following personalized nutrition and training plans and recording daily progress. The user selects a member and date, reviews diet or training guidance, checks off adherence or workout sets, and saves or exports logs. Separate views provide a weight-loss forecast and exercise tutorials. The excerpts show the app’s view composition, local-storage persistence, and log-file API implementation; the exact client-to-API wiring is only partially shown, so that relationship is marked unverified.
Main entry points: App.jsx App Shell · TrainingView.jsx Training Split and Set Tracking · dailyLogsPlugin.js Daily Log API · WorkoutTutorials.jsx Workout Tutorials
Components 14
App and Logging
- App Shell
src/App.jsx - Profile and Date Controls
src/components/Navbar.jsx - Browser Storage
- Daily Log API
dailyLogsPlugin.js - Daily Log Files
DailyLogs - Browser Entry
src/main.jsx
Nutrition Planning
- Diet Plan and Adherence
src/components/DietView.jsx - Member Diet Plans
src/data/dietData.js
Training
- Training Split and Set Tracking
src/components/TrainingView.jsx - Workout Plans
src/data/workoutData.js - Rest and Hold Timer
src/components/ActiveTimer.jsx
Progress and Learning
- Weight-Loss Roadmap
src/components/WeightLossRoadmap.jsx - Workout Tutorials
src/components/WorkoutTutorials.jsx
Other components
- Member
Connections 14
- Member → Profile and Date Controls: selects profile and date
src/components/Navbar.jsx - Browser Entry → App Shell: renders
src/main.jsx - App Shell → Profile and Date Controls: renders
src/App.jsx - App Shell → Diet Plan and Adherence: renders
src/App.jsx - App Shell → Training Split and Set Tracking: renders
src/App.jsx - App Shell → Weight-Loss Roadmap: renders
src/App.jsx - App Shell → Workout Tutorials: renders
src/App.jsx - App Shell → Browser Storage: persists state
src/App.jsx - App Shell → Member Diet Plans: loads member plans
src/App.jsx - Training Split and Set Tracking → Workout Plans: uses training splits
src/components/TrainingView.jsx - Training Split and Set Tracking → Rest and Hold Timer: renders timer
src/components/TrainingView.jsx - Workout Tutorials → Workout Plans: indexes exercises
src/components/WorkoutTutorials.jsx - App Shell → Daily Log API: requests log endpoint
src/App.jsx - Daily Log API → Daily Log Files: reads and writes
dailyLogsPlugin.js