A dark, focused workout library and planner. Browse twelve training sessions, open the details, and build the week's plan — without an account, a feed, or a subscription prompt.
Most fitness apps turn one small question — what am I doing today? — into a funnel: create an account, pick a program, allow notifications, log a body weight. At the gym, with one hand free, that is too much ceremony.
Fit Log is the opposite. It opens on a library of workouts, sorts them by duration, and lets you put a few into a plan. There is no feed, no social graph, and no streak guilt. The whole product is a list, a detail page, and a small piece of state that remembers your choices while you move around the app.
What's in it
A sortable library of twelve workouts, with duration and other keys available in the sort dropdown.
Two-column detail pages with the session's instructions, metadata, and a clear add-to-plan action.
A plan that survives navigation — add, save for later, remove, and mark a workout done.
A live progress indicator derived from the plan rather than a separate counter.
Toast feedback for every action, plus duplicate prevention so the same workout cannot be added twice.
Loading, error and empty states, a custom 404 page, and a layout that holds up from 360px to desktop.
The parts that took thought
01
The API could not be the only source of truth
The workout data comes from a third-party Cloudflare Worker. It is fine most of the time, but a single failed request used to mean an empty grid. I put all fetching behind one small client with a fallback endpoint, then made the page render four honest states: loading, success, empty, and error with a retry. The fallback is not silently pretending — the UI still tells you what happened if both endpoints fail.
02
Plan state across two routes
The library and the detail page are separate routes, so local component state was not enough. I lifted the plan into a React context and kept a single array of workout ids as the source of truth. "Already in plan" is derived from that array instead of stored twice, which removed a class of duplicate bugs before they could appear.
03
Progress that stays honest
Marking a workout done and then removing it should not leave the progress bar ahead of reality. Instead of incrementing a counter, I derive completed and total counts from the plan on every render. Slightly more work on each paint, far less state to keep in sync — the right trade at this size.
What I would improve next
Persist the plan to localStorage so a refresh does not wipe the week.
Add workout history and a simple streak view, built from stored sessions rather than a counter.
Filters for muscle group, equipment and difficulty — useful once the library grows past a dozen items.
A small test suite around the plan reducer: add, remove, complete, duplicate, unknown id.
Make it installable and offline-capable for gym basements with no signal.
An accessibility pass on the custom sort dropdown and toast announcements.