44 lines
3.6 KiB
Markdown
44 lines
3.6 KiB
Markdown
# Exercise Tracker project overview
|
|
|
|
This document contains stable, repository-supported project information. See `CURRENT_STATE.md` for current status and `HANDOFF.md` for recent replaceable context.
|
|
|
|
This is a newly initialized repository. The user calls the planned product "Workout Tracker"; the repository directory remains `exercise-tracker`.
|
|
|
|
## Product
|
|
|
|
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 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 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
|
|
|
|
- `AGENTS.md` — repository agent instructions and context-system version marker.
|
|
- `docs/` — project overview, current state, decisions, tasks, and handoff.
|
|
- `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, 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
|
|
|
|
Use Node.js 20.19 or newer. Run `npm install`, `npm run dev`, `npm test`, `npm run lint`, and `npm run build` from the repository root.
|
|
|
|
## Production/deployment architecture
|
|
|
|
No deployment architecture is defined or verified.
|
|
|
|
## Documentation map
|
|
|
|
- Current status: `docs/CURRENT_STATE.md`
|
|
- Accepted decisions: `docs/DECISIONS.md`
|
|
- Active scope: `docs/TASKS.md`
|
|
- Recent handoff: `docs/HANDOFF.md`
|
|
- Operating workflow: `docs/WORKFLOW.md`
|