Implement TASK-015 metadata-driven exercise logging

This commit is contained in:
rob
2026-11-04 22:22:26 +00:00
parent 669bfc3910
commit 9c0e82037f
31 changed files with 1537 additions and 416 deletions
+6 -4
View File
@@ -6,13 +6,15 @@ This is a newly initialized repository. The user calls the planned product "Work
## Product
Planned: a personal, offline-first workout tracker with seven-day date navigation; exclusive Morning and Afternoon views; strength sets, repetitions, and weight components; untimed daily isometrics and daily hanging practice with an editable time goal; Monday/Friday “Full body stretch routine” headings with no exercise entries until the owner provides them; exercise details and local illustrations; a prominent persistent local time clock; no workout timers; EMOM total reps/weight and regular per-set reps/weight recorded by date; workout history and progress including total external-load volume; editable routines; JSON backup and restoration; and responsive mobile and desktop layouts. The owner removed the previously listed stretch exercises. The authoritative initial programme is bundled as data and has a Today/Week routine view. The large local time-of-day clock remains, while workout, exercise, rest and EMOM timers have been removed. Strength rep/weight entry is implemented locally with exercise-specific vest, dumbbell, and EZ-bar fields; the daily hang shows no vest load yet. Other recording behavior remains future work. `docs/SPEC.md` defines application behavior and `docs/WORKOUT_ROUTINE.md` defines the authoritative initial programme.
Workout Tracker is a personal local workout app with actual-date navigation, exclusive Morning/Afternoon views, a persistent local-time clock and no workout timers. Seed v8 contains 30 versioned exercise definitions with equipment/measurement metadata. Reusable logging shows only relevant reps, side values, durations and equipment-specific loads, supports completed rows, partial drafts and explicit previous-session suggestions, and records EMOM minute-by-minute. Daily hangs have an editable continuous target, independent attempts, longest continuous and cumulative totals. Monday/Friday stretch routines have headings but no invented exercises. Dog walks remain excluded; their latest classification is bodyweight-only reference context.
Exercise definition, workout prescription and dated performance are independent. New performance retains definition/prescription snapshots, while original aggregate, rep-set and weight-only history stays readable separately. Exercise details expose available notes and placeholders; reviewed technique/muscle content and local illustrations remain future work. History/progress screens, routine editing, backup interface, offline reload and dark theming remain separate tasks. SPEC defines behavior and WORKOUT_ROUTINE the authoritative initial programme.
## Technology and architecture
The application foundation now uses React, Vite, and React-Bootstrap. IndexedDB stores the user-edited daily hanging goal and dated strength entries; TASK-005 will extend local storage for additional workout records while preserving those values. The application has no backend, authentication, or cloud dependency.
The application foundation now uses React, Vite, and React-Bootstrap. IndexedDB v3 stores the hanging-goal override, legacy strength records and new detailed performance in separate stores behind adapters. JSON backup/import is implemented at adapter level with version validation and atomic transactions; TASK-009 owns its UI. Native IndexedDB is used at runtime; fake-indexeddb is a test-only dependency. The application has no backend, authentication, or cloud dependency.
The planned design keeps routine templates, exercise definitions, historical workout records, and UI state separate. The initial routine is bundled as versioned seed data; subsequent user edits are local data and must not be overwritten by updates. A storage adapter separates React components from IndexedDB. A service worker and locally bundled assets are required for offline reload in the release scope.
The design keeps routine templates, exercise definitions, historical workout records, and UI state separate. The initial routine is bundled as versioned seed data; subsequent user edits are local data and must not be overwritten by updates. A storage adapter separates React components from IndexedDB. A service worker and locally bundled assets are required for offline reload in the release scope.
## Repository structure
@@ -21,7 +23,7 @@ The planned design keeps routine templates, exercise definitions, historical wor
- `docs/SPEC.md` — application requirements and behavior.
- `docs/WORKOUT_ROUTINE.md` — authoritative initial training programme.
- `docs/WORKFLOW.md` — repository operating workflow and open Git conventions.
- `src/` — React shell, local styling, routine view, dated strength-entry storage/UI, a daily hang-goal storage adapter, tests, and versioned initial routine data; broader workout storage remains future work.
- `src/` — React shell, local styling, routine view, metadata-driven performance and legacy entry UI, IndexedDB/JSON adapters, tests and versioned initial routine data.
- `package.json` — development, test, lint, and build commands.
## Development environment