# Exercise Tracker tasks This file holds accepted, scoped implementation work. It is not a speculative backlog. Current status and known issues belong in `CURRENT_STATE.md`; durable decisions belong in `DECISIONS.md`. ## Proposed implementation sequence Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 is accepted and in progress; TASK-002 through TASK-011 remain proposed. Implement one task per isolated branch/worktree. Preserve the documented initial programme, including optional/ranged prescriptions and distinct session types. ### TASK-001: Application foundation and responsive shell - Status: In progress - Objective: Establish the React/Vite, React-Bootstrap, and test foundation with a responsive application shell. - Scope: App entry, local styling, navigation frame, lint/build/test scripts, and boundaries for routine data, storage, timers, and views. - Acceptance criteria: The shell builds and renders at phone and desktop widths with keyboard-usable navigation; no backend, authentication, remote assets, or tracking SDKs are introduced. - Relevant areas: Package configuration, app source, tests. - Required validation: Lint, build, shell test, and mobile/desktop visual check. - Non-goals: Workout data, date navigation, logging, persistence, and timers. - Dependencies or blockers: None; owner selected TASK-001 and branch `task/001-foundation` is active. ### TASK-002: Exercise definitions and authoritative routine seed - Status: Proposed - Objective: Encode the full seven-day baseline as structured, versioned data. - Scope: Stable exercise IDs, prescriptions, order, session types, rest/load components, optional flags, daily hangs, Monday/Friday stretches, and three initial daily walk slots. Keep the exercise library separate from routine prescriptions. - Acceptance criteria: Data matches `docs/WORKOUT_ROUTINE.md`, including ranges and unspecified values; no removed or invented exercises; Saturday finger hangs and daily hangs are distinct. - Relevant areas: Bundled data, domain model, validation tests. - Required validation: Automated data invariants and manual source-to-data audit of every day and exercise. - Non-goals: Exercise imagery, logging, user edits. - Dependencies or blockers: TASK-001; resolve the noted spec/routine wording differences by source-of-truth rule. ### TASK-003: Date and period navigation with routine views - Status: Proposed - Objective: Show the correct routine for an actual local date and one selected period. - Scope: Today default, navigation across weeks, seven-day strip, exclusive Morning/Afternoon switch above it, locally remembered period, morning stretching on rest days, and separately accessible compact walk controls. - Acceptance criteria: Day changes preserve period; only one period is shown; browsing never creates a record; targets and exercise order match the seed. - Relevant areas: Navigation and session UI, preference state, tests. - Required validation: Interaction and keyboard tests, mobile/desktop visual check, build. - Non-goals: Saving performed work or timers. - Dependencies or blockers: TASK-002. ### TASK-004: Exercise detail and local media placeholders - Status: Proposed - Objective: Show useful exercise guidance offline before illustrations are available. - Scope: Detail panel, fields for instructions/muscles/equipment/cues/warnings, personal-note affordance for later storage, labeled placeholders and local asset metadata. - Acceptance criteria: Every seeded exercise opens a useful detail view; missing images have accessible placeholders; no hotlinked images or invented technique guidance. - Relevant areas: Exercise library, detail UI, tests. - Required validation: Detail and accessibility tests, offline asset check, responsive visual check. - Non-goals: Producing final illustrations or logging notes. - Dependencies or blockers: TASK-002 and TASK-003; detailed technique text requires reviewed source/content. ### TASK-005: IndexedDB repository and workout recording - Status: Proposed - Objective: Persist local plans and dated performance while preserving partial and historical records. - Scope: Storage adapter/migrations; first-run seed; per-set strength and per-minute EMOM logs; separate weight components; hangs, holds, stretching, walks, notes, optional body weight; previous-session suggestions; error states. - Acceptance criteria: Actual values survive reload; zero/missed EMOM rounds and multiple hang attempts are distinct; edits/reseeding do not rewrite history; browsing alone writes no workout; storage failures are surfaced. - Relevant areas: IndexedDB adapter, domain model, recording UI, tests. - Required validation: IndexedDB integration tests, migration/error cases, reload and partial-session checks, build. - Non-goals: Progress charts, routine editor, backup UI. - Dependencies or blockers: TASK-002 and TASK-003. ### TASK-006: Rest, hold, and EMOM timers - Status: Proposed - Objective: Provide one active, accessible timer with accurate elapsed-time behavior. - Scope: Rest presets and pause/resume/reset, prescribed hold countdown with optional side steps, ten one-minute EMOM rounds, visible completion, muted-by-default optional sound. - Acceptance criteria: EMOM timing uses timestamps; background-tab return shows correct state; replacing an active timer needs explicit action; per-round logging remains independent. - Relevant areas: Timer logic and UI, tests. - Required validation: Clock-controlled unit tests, interaction tests, background-throttling check, build. - Non-goals: Guaranteed background alarms or custom rest presets. - Dependencies or blockers: TASK-003; integrate with TASK-005 logging when both exist. ### TASK-007: Routine editor - Status: Proposed - Objective: Edit future prescriptions through the UI without changing past records. - Scope: Exercise order, day/period assignment, sets/ranges, durations, load presets, rest and optional state; validation and persistence. - Acceptance criteria: Valid edits survive reload and app updates; historical sessions retain their performed values and prior prescription context; invalid entries are rejected clearly. - Relevant areas: Editor UI, routine versioning, storage, tests. - Required validation: Edit/reload/migration/history-isolation tests and responsive check. - Non-goals: Fully custom exercise creation unless separately approved. - Dependencies or blockers: TASK-005; clarify editor scope for adding/removing exercises before affected controls are built. ### TASK-008: History and progress - Status: Proposed - Objective: Browse actual dated performance and transparent basic trends. - Scope: Completed/partial session history, prior vs current performance, reps and load trends, longest continuous and cumulative hang separately, optional body-weight trend. - Acceptance criteria: Charts and personal bests derive only from saved comparable values; no fabricated data; routine edits leave history intact. - Relevant areas: Queries/aggregations, history/progress UI, tests. - Required validation: Calculation and view tests with mixed loading modes and missing values, responsive check. - Non-goals: Coaching, calorie estimates, streaks. - Dependencies or blockers: TASK-005. ### TASK-009: JSON backup and restoration - Status: Proposed - Objective: Transfer all local data using a versioned JSON file. - Scope: Export, schema validation, import preview/confirmation, replace/merge handling, and failure recovery. - Acceptance criteria: Round trip restores plans, logs, hangs, walks, body weight, notes and settings; invalid files do not corrupt current records; replacement/merge requires explicit confirmation. - Relevant areas: Backup format, storage transaction, settings UI, tests. - Required validation: Full round trip in a fresh profile, invalid/old-version tests, transaction rollback test. - Non-goals: Cloud synchronization or CSV export. - Dependencies or blockers: TASK-005 and TASK-007; decide precise merge conflict behavior before implementing merge. ### TASK-010: Offline release and full UX verification - Status: Proposed - Objective: Make the built app usable on reload without a network connection and verify v1 end-to-end. - Scope: Service worker/cache, offline status, storage explanation and backup guidance, accessibility/responsive polish, complete acceptance checklist. - Acceptance criteria: Built app opens offline after initial load; all major controls work by keyboard and at phone width; no data transmission or remote asset dependency is required. - Relevant areas: Build configuration, app shell/settings, integration tests, documentation. - Required validation: Production build served from stable origin, offline reload, cross-feature smoke tests, accessibility and mobile/desktop review. - Non-goals: Deployment to a chosen host or multi-device sync. - Dependencies or blockers: TASK-004 through TASK-009. ### TASK-011: Reviewed exercise illustrations - Status: Proposed - Objective: Add accurate, licensed local illustrations for the documented exercise variants. - Scope: Create or source images, document rights/origin, review technique, add alt text and local assets. - Acceptance criteria: Added images match the prescribed variant, have reviewed technique and origin metadata, and load offline. - Relevant areas: Local assets, exercise library metadata, tests. - Required validation: Human technique/rights review and offline visual check. - Non-goals: Unreviewed generated or hotlinked imagery. - Dependencies or blockers: TASK-004; approved image source/review process. May proceed independently after that task.