# 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, durations and equipment-specific loads, with one shared measurement input for per-side work, supports completed rows, partial drafts and explicit previous-session suggestions offered only when compatible earlier completed data exists, and records EMOM with one weight and one total-reps input. Earlier minute records remain separately accessible. 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. Optional dated session/exercise notes and one daily body-weight entry in kg use independent Save actions; body weight is shared across both periods. Exercise details expose available programme notes and placeholders; reviewed technique/muscle content and local illustrations remain future work. The application uses a single dark green theme with coordinated Bootstrap/native controls and compact numeric inputs. History/progress screens, routine editing, backup interface and offline reload 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 v4 preserves the hanging-goal override, legacy strength records and detailed performance stores, adding independent workoutDetails records for optional dated notes and body weight behind a storage adapter. JSON backup/import is implemented at adapter level with v4 exports, v1/v2/v3/v4 validation/read compatibility 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`