How mmsabit/fitlog works
Fit Log is a workout-browsing and personal planning app. Users browse and filter exercises, inspect exercise details, add exercises to today’s plan or save them, then manage, sort, and mark plan items done. The sampled code confirms detail fetching, shared in-memory state, and plan management; the README documents filtering, but the home-page and library implementation were not sampled, so their internal wiring is not asserted. No persistent store is evidenced.
Main entry points: layout.tsx Root Layout · [workid]/page.tsx Exercise Details · myplans/page.tsx My Plans Page · WorkOutContext.tsx Workout State
Components 17
Browse Workouts
- Home Page
src/app/page.tsx - Workout Banner
src/components/body/Banner.tsx - Exercise Library
src/components/fitlibrary/FitLibrary.tsx - Exercise Card
src/components/fitlibrary/FitCard.tsx - Exercise Details
src/app/workouts/[workid]/page.tsx
Plan Management
- Plan And Save Actions
src/components/workoutcomp/WorkOutButtons.tsx - Workout State
src/context/WorkOutContext.tsx - My Plans Page
src/app/myplans/page.tsx - Plan Display
src/components/myplans/MyPlanMid.tsx - Plan Items
src/components/myplans/MyPlansList.tsx - Completion Action
src/components/myplans/MarkAsDone.tsx - Workout Data Type
src/type/fit.type.ts
App Shell
- Root Layout
src/app/layout.tsx - Navigation
src/components/navber/Navber.tsx - Footer
src/components/Footer.tsx
Other components
- User
- FitLog API
Connections 14
- User → Home Page: opens
- User → Exercise Library: browses
- User → My Plans Page: manages
- Exercise Card → Exercise Details: links to
- Exercise Details → FitLog API: fetches exercise
- Exercise Details → Plan And Save Actions: renders actions
- Plan And Save Actions → Workout State: updates plan or saved state
- My Plans Page → Workout State: reads and updates
- My Plans Page → Plan Display: renders sorted items
- Plan Display → Plan Items: renders items
- Plan Items → Completion Action: renders completion action
- Root Layout → Workout State: provides state
- Root Layout → Navigation: renders
- Root Layout → Footer: renders