How sovannareachvan/cuttrack works
CutTrack is a browser-only workout tracker. The user creates or selects a profile, views a date-specific workout from that profile’s split, logs exercise sets and cardio, and the app saves profile history locally. The graph includes the documented profile, planning, cardio, and history capabilities; Calendar and Progress are currently placeholders. Source excerpts show key dashboard and logging calls, but not every storage operation, so those relationships are limited to what the excerpts and README support.
Main entry points: DashboardPage.jsx Dashboard · App.jsx App shell and routes · ExerciseDetails.jsx Exercise details and logging · useAppStore.jsx Profile and workout store
Components 23
App and navigation
- React entry
src/main.jsx - App shell and routes
src/App.jsx - Navigation controls
src/components/layout - Topbar
src/components/layout/Topbar.jsx - Dashboard
src/pages/DashboardPage.jsx - Calendar placeholder
src/App.jsx - Progress placeholder
src/App.jsx
Profiles and persistence
- Profile setup and switching
src/components/profile - Profile and workout store
src/hooks/useAppStore.jsx - Browser LocalStorage
Workout planning
- Programs and schedules
src/data/programs.js - Exercise library
src/data/exercises.js - Week preview
src/components/dashboard/WeekPreview.jsx - Date utilities
src/utils/dateUtils.js
Workout tracking
- Today workout summary
src/components/dashboard/TodayWorkout.jsx - Workout statistics
src/components/dashboard/StatsCards.jsx - Exercise card
src/components/workout/ExerciseCard.jsx - Exercise details and logging
src/components/workout/ExerciseDetails.jsx - Set tracker
src/components/workout/SetTracker.jsx - Cardio timer
src/components/workout/CardioTimer.jsx - Cardio defaults
src/data/cardio.js
Other components
- Gym user
- YouTube search
Connections 29
- Gym user → React entry: opens app
README.md - React entry → App shell and routes: renders
src/main.jsx - App shell and routes → Profile and workout store: provides state
src/App.jsx - App shell and routes → Navigation controls: renders
src/App.jsx - App shell and routes → Profile setup and switching: renders setup
src/App.jsx - App shell and routes → Dashboard: routes to
src/App.jsx - App shell and routes → Calendar placeholder: routes to
src/App.jsx - App shell and routes → Progress placeholder: routes to
src/App.jsx - Navigation controls → Topbar: includes
src/components/layout/Topbar.jsx - Dashboard → Topbar: renders
src/pages/DashboardPage.jsx - Topbar → Profile setup and switching: renders switcher
src/components/layout/Topbar.jsx - Profile setup and switching → Profile and workout store: updates profiles
src/components/profile/ProfileSwitcher.jsx - Profile and workout store → Browser LocalStorage: loads and saves
README.md - Dashboard → Profile and workout store: reads and updates
src/pages/DashboardPage.jsx - Dashboard → Programs and schedules: selects workout
src/pages/DashboardPage.jsx - Dashboard → Exercise library: resolves exercises
src/pages/DashboardPage.jsx - Dashboard → Date utilities: uses date keys
src/pages/DashboardPage.jsx - Dashboard → Today workout summary: renders summary
src/pages/DashboardPage.jsx - Dashboard → Workout statistics: renders stats
src/pages/DashboardPage.jsx - Dashboard → Week preview: renders preview
src/pages/DashboardPage.jsx - Dashboard → Exercise card: renders exercises
src/pages/DashboardPage.jsx - Dashboard → Exercise details and logging: opens details
src/pages/DashboardPage.jsx - Dashboard → Cardio timer: renders cardio
src/pages/DashboardPage.jsx - Week preview → Programs and schedules: looks up schedule
src/components/dashboard/WeekPreview.jsx - Week preview → Date utilities: builds week
src/components/dashboard/WeekPreview.jsx - Exercise details and logging → Set tracker: renders sets
src/components/workout/ExerciseDetails.jsx - Exercise details and logging → Exercise library: builds search link
src/components/workout/ExerciseDetails.jsx - Exercise details and logging → YouTube search: links to search
src/components/workout/ExerciseDetails.jsx - Cardio timer → Cardio defaults: uses limits
src/components/workout/CardioTimer.jsx