Complete workout recording baseline and project context
This commit is contained in:
+99
-100
@@ -11,16 +11,31 @@
|
||||
**Primary devices:** Debian laptop/desktop browser; responsive mobile browser
|
||||
**Maintainer workflow:** Codex CLI + `roborto-project-context`, Git, isolated per-task branches/worktrees
|
||||
|
||||
## TASK-015 planning overlay — 2026-11-04
|
||||
|
||||
TASK-015 is scoped in `docs/TASKS.md`; implementation awaits Captain approval. The current app and the earlier sections below describe the timer-free, aggregate-EMOM baseline. This overlay records the latest requested changes without claiming they are implemented.
|
||||
|
||||
- Exercise definitions describe supported equipment and applicable measurements, independent of prescription targets and performed values. Use the complete assignment matrix in `WORKOUT_ROUTINE.md` section 8. No fixed vest weight belongs in definitions. Dumbbells used as push-up handles do not contribute lifted resistance.
|
||||
- Reusable UI derives controls from repetitions, repetitions per side, duration, duration per side, distance when applicable, EMOM reps per minute and equipment-specific loads. Bodyweight-only work has no external-weight fields; supported external resistance accepts explicit zero. Dumbbells are entered per dumbbell; bars include the bar's weight.
|
||||
- Log each set/minute with independent load components, explicit completion and partial state. New EMOM records support per-minute reps/load and derived totals; old aggregate records must never be split into invented minutes. Keep previous-session suggestions distinct from actuals and preserve next-set weight defaults.
|
||||
- Show compact name/target/equipment/rest information and applicable logging, with expandable available instructions, muscles, technique and local media/placeholders. Reduce repeated visible labels while retaining accessible names; stack at mobile width without horizontal scrolling. Preserve date navigation, Morning/Afternoon switching and the wall clock.
|
||||
- Afternoon holds may record actual seconds (per side where applicable) without repetitions, weights or prescribed hold times. Daily hang is bodyweight-only with an editable initial two-minute **continuous** target, optional attempts and independent longest/cumulative totals. Do not treat cumulative duration as continuous success.
|
||||
- Preserve historical records and local edits independently of metadata changes. Version new record schemas and JSON serialization; review IndexedDB v2 for an additive migration only where needed. Test old total-only/component records, existing goal overrides and old/new JSON round trips. TASK-009 still owns backup UI and import conflict policy; none exists in the current app.
|
||||
- Dog-walk classification is bodyweight-only; restoring walks to the UI/seed/logs is outside this task. No straight-bar exercise is added merely to support the equipment vocabulary.
|
||||
- Captain resolved the timer question on 2026-11-04: keep the app timer-free. Preserve the local wall clock and prescribed rest/EMOM guidance; no timers or audio are added (ADR-018).
|
||||
|
||||
Full acceptance tests, dependencies, ownership boundaries, likely files and implementation gates are recorded under TASK-015. Earlier 6/10 kg prescriptions remain distinguishable from definitions and actuals; their optional future display must never determine equipment controls or prefill performance.
|
||||
|
||||
## 1. Purpose and success criteria
|
||||
|
||||
Build a small, maintainable, private workout application that replaces the weekly schedule document. It should make it easy to see today's session, understand correct exercise technique, time sets, record performance and change the programme without editing React source.
|
||||
Build a small, maintainable, private workout application that replaces the weekly schedule document. It should make it easy to see today's session, understand correct exercise technique, record performance and change the programme without editing React source.
|
||||
|
||||
A successful first version enables the user to:
|
||||
1. See the complete seven-day plan and today's prescribed sessions using a weekday strip and exclusive Morning/Afternoon switch.
|
||||
2. Open each exercise's instructions, muscles involved, equipment, and image(s), with offline availability.
|
||||
3. Complete and log morning strength sessions, afternoon isometric holds, daily walks and Monday/Friday stretching.
|
||||
4. Use rest/countdown and 10-minute EMOM timers during workouts.
|
||||
5. Edit routine parameters through the UI; log actual per-set reps, loads and hold/hang times, with a durable dated performance history and progress views.
|
||||
3. Complete and log morning strength sessions and afternoon isometric holds. Monday and Friday mornings are labeled Full body stretch routine; specific stretches will be provided later.
|
||||
4. Record one total repetition count and actual exercise-specific load for each EMOM exercise, and reps and exercise-specific load for each regular set.
|
||||
5. Edit routine parameters through the UI; retain dated performance history and progress views, including total external-load volume without a time-based rate.
|
||||
6. Back up and restore their own data without cloud accounts, analytics or external services.
|
||||
|
||||
### Out of scope for v1
|
||||
@@ -39,7 +54,7 @@ A successful first version enables the user to:
|
||||
- **Editable routine:** Store prescribed programme separately from UI code. Changes made in-app must survive updates; historical sessions must retain what was actually performed even when the plan later changes.
|
||||
- **No premature backend:** Keep storage behind an adapter to permit optional sync later without redoing the UI.
|
||||
- **Transparent progress:** Track prescribed versus actual reps, load and duration; avoid made-up estimates.
|
||||
- **Accessibility:** Keyboard navigation, clear focus states, readable text, screen-reader labels, reduced-motion respect, adequate touch targets and accessible timers.
|
||||
- **Accessibility:** Keyboard navigation, clear focus states, readable text, screen-reader labels, reduced-motion respect and adequate touch targets.
|
||||
- **Safety:** Show exercise descriptions as guidance rather than diagnosis. Allow pain/discomfort notes; do not force floor movements that hurt the user's prominent spine. Make vest load explicit per exercise.
|
||||
- **Scope discipline:** Do not invent pages, new exercises or functionality beyond this spec without an approved decision/task.
|
||||
|
||||
@@ -49,11 +64,11 @@ Use **one responsive application** with these surfaces:
|
||||
|
||||
| Surface | Primary functions |
|
||||
|---|---|
|
||||
| **Today** | Current calendar day selected automatically; seven-day navigation strip; **Morning/Afternoon exclusive toggle**; show only selected period, not both stacked; timers and logging |
|
||||
| **Today** | Current calendar day selected automatically; seven-day navigation strip; **Morning/Afternoon exclusive toggle**; show only selected period, not both stacked; strength recording |
|
||||
| **Week** | Seven-day horizontal navigation strip and date navigation; changing weekday preserves selected Morning/Afternoon period |
|
||||
| **Exercise detail** | Images, setup, step-by-step movement, technique cues, main/secondary muscles, equipment, common mistakes, variations, personal notes |
|
||||
| **History & Progress** | Browse completed sessions by date; actual sets/reps/weights/times and notes; personal bests and basic trends, including longest continuous hang |
|
||||
| **Plan editor** | Edit exercises, order, sets, rep ranges, hold durations, weight presets, rest and session assignment |
|
||||
| **Plan editor** | Edit exercises, order, sets, rep ranges, the daily hang goal, weight presets, rest and session assignment |
|
||||
| **Settings & data** | Export/import backup, unit preferences (kg), storage explanation, offline status |
|
||||
|
||||
Navigation should remain simple (top tabs or bottom navigation on mobile). Avoid creating an account or dashboard-heavy UI. **The day/period selector is the primary workout navigation**, not a page showing both periods. Weekday browsing alone must never create or complete a workout record.
|
||||
@@ -62,32 +77,33 @@ Navigation should remain simple (top tabs or bottom navigation on mobile). Avoid
|
||||
|
||||
- Use a seven-day horizontal weekday strip, current calendar day selected initially; the user can navigate other actual dates for past/future weeks.
|
||||
- Place a **Morning | Afternoon** segmented switch above the weekday strip. Only one period is displayed at a time; changing day preserves the period. Remember the last selected period locally.
|
||||
- Morning contains the strength workout, or full-body stretching on Monday/Friday. Afternoon contains the five isometric holds and daily hanging practice, with day-specific targets.
|
||||
- Dog walks are always accessible via a separate compact activity log/control rather than appearing as a third large workout section within either period.
|
||||
- Morning contains the strength workout on five days and the Full body stretch routine heading, without exercise entries, on Monday/Friday. Afternoon contains the five isometric holds and daily hanging practice, with day-specific targets.
|
||||
- Each exercise presents prescription and recorded progress, with access to an exercise detail panel (local images, form description).
|
||||
- Viewing a day or changing the Morning/Afternoon toggle does **not** automatically start or mark a session complete.
|
||||
|
||||
## 4. Current programme — initial seed data
|
||||
|
||||
The following is **initial editable programme data**, not a permanent hardcoded schedule. Day order and exercise order are significant. Unless specified otherwise, exercises are performed in the **morning**, isometric holds in the **afternoon** and dog walks throughout the day.
|
||||
The following is **initial editable programme data**, not a permanent hardcoded schedule. Day order and exercise order are significant. Unless specified otherwise, exercises are performed in the **morning** and isometric holds in the **afternoon**.
|
||||
|
||||
### 4.1 Weekly structure
|
||||
|
||||
| Day | Morning | Afternoon | Additional |
|
||||
|---|---|---|---|
|
||||
| Monday | Rest from resistance exercise | Moderate isometric holds (RPE 5–6) | Full-body stretch; three dog walks |
|
||||
| Tuesday | Pull 1 — Back + Core | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||
| Wednesday | Push 1 — Chest + Serratus | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||
| Thursday | Legs + Posterior Chain + Core | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||
| Friday | Rest from resistance exercise | Challenging isometric holds (RPE 6–7) | Full-body stretch; three dog walks |
|
||||
| Saturday | Pull 2 — Biceps + Grip + Abs | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||
| Sunday | Push 2 — Shoulders + Triceps + Core | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||
| Day | Morning | Afternoon |
|
||||
|---|---|---|
|
||||
| Monday | Full body stretch routine | Moderate isometric holds (RPE 5–6) |
|
||||
| Tuesday | Pull 1 — Back + Core | Easy isometric holds (RPE 3–4) |
|
||||
| Wednesday | Push 1 — Chest + Serratus | Easy isometric holds (RPE 3–4) |
|
||||
| Thursday | Legs + Posterior Chain + Core | Easy isometric holds (RPE 3–4) |
|
||||
| Friday | Full body stretch routine | Challenging isometric holds (RPE 6–7) |
|
||||
| Saturday | Pull 2 — Biceps + Grip + Abs | Easy isometric holds (RPE 3–4) |
|
||||
| Sunday | Push 2 — Shoulders + Triceps + Core | Easy isometric holds (RPE 3–4) |
|
||||
|
||||
No individual stretches or durations are specified for the Monday/Friday routine until the owner provides them.
|
||||
|
||||
### 4.2 Tuesday — Pull 1
|
||||
|
||||
| Order | Exercise | Prescription | Rest | Notes |
|
||||
|---|---|---|---|---|
|
||||
| 1 | Pull-ups | 10-minute EMOM; aim 3–4 reps/min | Until next minute | **6 kg vest.** Start at 4/min and drop to 3 as needed; work toward 4 × 10 minutes. Occasionally switch to traditional sets. |
|
||||
| 1 | Pull-ups | 10-minute EMOM; aim 3–4 reps/min | Until next minute | **6 kg vest.** Start at 4/min and drop to 3 as needed; work toward 4 reps each minute for 10 minutes. Occasionally switch to traditional sets. |
|
||||
| 2 | EZ-bar bent-over rows | 4 × 8–12 | 2–3 min | Controlled torso position. |
|
||||
| 3 | Single-arm dumbbell rows | 3–4 × 8–15 per side | 2 min | Alternative to previously easy shrugs. |
|
||||
| 4 | Suitcase carries | 3 × 30–60 seconds per side | 1–2 min | Walk with weight on one side; avoid leaning. |
|
||||
@@ -134,56 +150,31 @@ The following is **initial editable programme data**, not a permanent hardcoded
|
||||
|
||||
### 4.7 Daily isometric routine — afternoon
|
||||
|
||||
Each row is **one hold**, with per-side durations as shown. Start at one round; optionally progress to two rounds if recovery is good. Rest around 30–60 sec between holds.
|
||||
Each row is **one hold**, without a prescribed time. Start at one round; optionally progress to two rounds if recovery is good. Do not show duration targets. The persistent local time clock remains visible.
|
||||
|
||||
| Exercise | Monday (moderate) | Tue–Thu (easy) | Friday (challenging) | Sat–Sun (easy) |
|
||||
|---|---|---|---|---|
|
||||
| Deep squat hold | 45 sec | 30 sec | 60 sec | 30 sec |
|
||||
| 90/90 hip hold | 45 sec / side | 30 sec / side | 60 sec / side | 30 sec / side |
|
||||
| Bird-dog hold | 20 sec / side | 15 sec / side | 30 sec / side | 15 sec / side |
|
||||
| Single-leg balance | 45 sec / leg | 30 sec / leg | 60 sec / leg | 30 sec / leg |
|
||||
| Prone swimmer isometric | 20 sec | 15 sec | 30 sec | 15 sec |
|
||||
| Target intensity (RPE) | 5–6 | 3–4 | 6–7 | 3–4 |
|
||||
| Exercise | Side guidance |
|
||||
|---|---|
|
||||
| Deep squat hold | — |
|
||||
| 90/90 hip hold | Per side |
|
||||
| Bird-dog hold | Per side |
|
||||
| Single-leg balance | Per leg |
|
||||
| Prone swimmer isometric | — |
|
||||
|
||||
Bird-dog repetitions were removed from Tuesday because these holds occur daily. Longer holds should not become maximal effort or undermine morning training.
|
||||
Target intensity (RPE): Monday **5–6**; Tuesday–Thursday **3–4**; Friday **6–7**; Saturday–Sunday **3–4**. Bird-dog repetitions were removed from Tuesday because these holds occur daily.
|
||||
|
||||
### 4.8 Daily hanging practice — afternoon
|
||||
|
||||
- Hang from the pull-up bar **every day**, during the afternoon isometric session.
|
||||
- Goal is **120 seconds**, but this is a **target**, not an assumed current ability or default completed duration.
|
||||
- Current successful continuous duration, number of attempts, whether hangs are weighted, and whether the two-minute goal is presently cumulative **are not specified**; do not invent these.
|
||||
- Goal starts at **120 seconds** and can be changed in the app; it is a target, not an assumed current ability or default completed duration.
|
||||
- Current successful continuous duration, number of attempts, and whether the initial two-minute goal is presently cumulative **are not specified**; do not invent these. Vest use may be added later but is not shown in the current daily-hang UI.
|
||||
- Allow logging multiple attempts separately, in seconds, with **longest continuous hang** and **total cumulative hang time** computed independently. A 120-second cumulative total is not equivalent to one continuous 120-second hang.
|
||||
- Keep Saturday finger hangs as distinct morning exercises, independent of the daily afternoon hang.
|
||||
- Watch for accumulated grip, finger, elbow and shoulder fatigue; exercise logging must not force completion.
|
||||
|
||||
### 4.9 Full-body stretching — Monday and Friday
|
||||
|
||||
| Exercise | Prescription |
|
||||
|---|---|
|
||||
| Standing calf stretch | 30 sec / leg |
|
||||
| Standing quadriceps stretch | 30 sec / leg |
|
||||
| Kneeling hip-flexor stretch | 30 sec / side |
|
||||
| Seated hamstring stretch | 30 sec / leg |
|
||||
| Figure-four glute stretch | 30 sec / side |
|
||||
| Doorway chest stretch | 30 sec |
|
||||
| Cross-body shoulder stretch | 30 sec / arm |
|
||||
| Child's pose with side reach | 30 sec / side |
|
||||
| Cat-cow | 8–10 slow repetitions |
|
||||
|
||||
Target 15–20 min, gentle stretching, one or two rounds as appropriate. Modify movements causing pain or uncomfortable spinal pressure.
|
||||
|
||||
### 4.10 Daily dog walks
|
||||
|
||||
- Three walks **every day**, each typically **30–60 min**.
|
||||
- **6 kg weighted vest** currently used during walks.
|
||||
- Record *actual minutes* and optional vest load per walk rather than assuming every walk lasts the same time.
|
||||
- Permit a walk to be logged without a vest, particularly when fatigued after Thursday legs or when joints/back need reduced loading.
|
||||
- No automatic calorie-burn calculations in v1.
|
||||
|
||||
### 4.11 Global strength-training rules
|
||||
### 4.9 Global strength-training rules
|
||||
|
||||
- Usually **2 min** rest between sets, **2–3 min** for demanding compounds, **~3 min** between different exercises.
|
||||
- EMOM is time-based: each new set starts on a 60-second boundary, for 10 rounds. Count performed reps by round.
|
||||
- EMOM remains a prescribed ten-minute protocol with a new start each minute. Record total performed reps and actual external weight for the exercise.
|
||||
- Increase load or exercise difficulty after consistently reaching the top of a rep range with clean technique.
|
||||
- Allow recording actual load, reps and time even when they differ from the plan.
|
||||
- Morning resistance training takes priority over optional higher-effort afternoon sessions.
|
||||
@@ -202,23 +193,28 @@ Each exercise has a stable `exerciseId` and human-readable name, category, equip
|
||||
|
||||
## 6. Interaction and session flow
|
||||
|
||||
1. Default to **Today**, selecting its actual date and the last-used Morning/Afternoon period; show only that period. Walk tracking stays accessible separately.
|
||||
1. Default to **Today**, selecting its actual date and the last-used Morning/Afternoon period; show only that period.
|
||||
2. Allow navigating to any date/day, not just a repeating abstract weekday; records are tied to actual local dates.
|
||||
3. Tap an exercise to open details. Start a set, log **actual** reps, load and/or duration and mark it completed; log individual sets independently and prefill only suggested values from the previous matching session (never mark them completed automatically).
|
||||
4. Timer presets based on the exercise; audible alert **optional/muted by default**, with visible completion feedback.
|
||||
5. End the session with a compact summary (completed sets, deviations and free-text notes).
|
||||
6. Partial workouts remain saved, and future plan edits do not rewrite previously logged performance.
|
||||
7. Log three independent walks (actual duration, optional vest load, completion); support more/fewer walks in future via editor.
|
||||
8. Check off isometric and stretch exercises and capture actual duration; log daily hang attempts in seconds and surface personal best and 120-second continuous-hang progress.
|
||||
9. Show previous performance and basic progress views without confusing prescribed and achieved values; retain previous records after routine edits.
|
||||
3. Tap an exercise to open details. For EMOM exercises, enter the **total** actual reps and relevant load. For regular strength exercises, enter actual reps and relevant load separately for each set. Show vest, dumbbell, and EZ-bar fields only where the exercise calls for them; mixed vest/dumbbell work needs both. Adding a set copies the previous set's entered weights but not its reps. Never mark prescribed values as performed automatically.
|
||||
4. End the session with a compact summary (recorded sets, deviations and free-text notes) when session summaries are implemented.
|
||||
5. Partial records remain saved, and future plan edits do not rewrite previously logged performance.
|
||||
6. Check off isometric exercises without requiring times; log daily hang attempts in seconds and surface personal best and progress toward the current editable hang goal when extended recording is implemented.
|
||||
7. Show previous performance and basic progress views without confusing prescribed and achieved values; retain previous records after routine edits.
|
||||
|
||||
### Timer behavior
|
||||
### Suitcase-carry load recording — TASK-014 correction
|
||||
|
||||
- **Rest countdown:** pause/resume/reset, selectable presets including 60, 90, 120 and 180 seconds; custom duration later if useful.
|
||||
- **EMOM:** ten one-minute rounds, clear round number, visible countdown to next boundary, and per-round rep entry. Work/rest timing must use elapsed timestamps rather than incrementing an interval counter (avoid browser-tab drift).
|
||||
- **Hold timer:** countdown from prescribed hold length; optional per-side steps for bilateral holds.
|
||||
- Timers should remain accurate after tab/background throttling on return, although browser restrictions may limit background notification/audio. Never promise guaranteed background alarms.
|
||||
- One active timer at a time in v1; changing timers requires explicit cancel/replace.
|
||||
Suitcase carries retain their prescribed duration per side and accept actual dumbbell kilograms per set, without requiring repetitions or inventing performed duration. Record one dumbbell's weight, with independent set values and next-set load copying. Save dated weight-only rows as `kind: load-sets`; no repetitions or rep-load volume are implied. Broader duration/per-side performance remains TASK-015.
|
||||
|
||||
### Plank vest recording — TASK-014 correction
|
||||
|
||||
Front planks and side-plank hip raises accept vest kilograms per set with no dumbbell/bar inputs or assumed vest weight. Front planks use the existing weight-only set shape without repetition entry; side-plank hip raises retain reps-per-side guidance and reps/load set recording. Different sets may use different loads or zero. Existing bodyweight-only records stay readable as prior totals; changing them to component weights requires an explicit action. Broader actual-duration logging remains separate work.
|
||||
|
||||
### Clock and recording behavior
|
||||
|
||||
- Show the current local time in the persistent app header across all views. It is a time-of-day display and does not record workout duration.
|
||||
- Do not show workout, exercise, rest, or EMOM timers or audio cues.
|
||||
- Keep EMOM duration and rest guidance as prescriptions only. One saved EMOM entry has total actual reps and the applicable load components; regular strength work has one saved rep/load row per performed set. A paired-dumbbell field means kilograms per dumbbell. Preserve older single-total entries without interpreting them as components.
|
||||
- Browsing dates does not create workout records. Saving a strength entry writes the selected date and exercise only.
|
||||
|
||||
## 7. Local data architecture
|
||||
|
||||
@@ -235,27 +231,28 @@ IndexedDB is **per browser profile and origin**, not a server database; a laptop
|
||||
| `ExerciseDefinition` | `id`, `name`, `category`, `equipment`, `muscles`, `instructions`, `cues`, `warnings`, `imageAssets`, `version` |
|
||||
| `Routine` | `id`, `name`, `version`, `effectiveDate`, `weeklySchedule` |
|
||||
| `RoutineExercise` | `exerciseId`, `day`, `sessionType`, `order`, `sets`, `repMin`, `repMax`, `targetDurationSec`, `perSide`, `restSec`, `loadKg`, `optional`, `notes` |
|
||||
| `WorkoutSession` | `id`, `date`, `sessionType`, `routineVersion`, `startedAt`, `endedAt`, `status`, `notes`, `sets` |
|
||||
| `CompletedSet` | `sessionId`, `exerciseId`, `sequence`, `reps`, `durationSec`, `side`, `completedAt`, `notes`, **load components** (`vestKg`, `dumbbellKgEach` / `dumbbellKg`, `ezBarTotalKg`, `bodyweightOnly` when relevant) |
|
||||
| `RoutineOverride` | `dailyHangGoalSec` stored separately from the bundled seed |
|
||||
| `StrengthEntry` | `date`, `exerciseId`, `kind` (`emom` or `sets`), EMOM `totalReps` and applicable `load` or regular `sets` with each set's `reps` and `load`; new records also retain derived `externalKg`, while older records may have only `externalKg` |
|
||||
| `CompletedSet` | `exerciseId`, `sequence`, `reps`, `side`, `notes`, and load components (`vestKg`, `dumbbellKgEach` / `dumbbellKg`, `ezBarTotalKg`, `bodyweightOnly` when relevant); later work may support variable dumbbell counts |
|
||||
| `HangAttempt` | `date`, `sessionId`, `exerciseId`, `attemptNumber`, `durationSec`, `completedAt`, `notes` (daily hangs distinct from Saturday finger hangs) |
|
||||
| `WalkLog` | `date`, `walkNumber`, `durationMin`, `vestKg`, `completed`, `notes` |
|
||||
| `BodyWeightLog` | `date`, `weightKg`, `notes` (optional entry) |
|
||||
| `Settings` | `preferredUnit`, `soundsEnabled`, `timerPresets`, `dataSchemaVersion` |
|
||||
| `Settings` | `preferredUnit`, `dataSchemaVersion` |
|
||||
|
||||
The implementation may normalize or refine this model. **Do not treat the suggested shape as frozen API contracts.** Store actual loads, not just vest presets; the 6 kg and 10 kg loads are initial values. For dumbbells distinguish **per-dumbbell mass** from total load; for the EZ bar record **bar plus plates** as total load. Where a prescribed exercise involves vest plus dumbbells, store both rather than merging them into an ambiguous number.
|
||||
The implementation may normalize or refine this model. **Do not treat the suggested shape as frozen API contracts.** TASK-014 now stores actual load components for the seeded strength exercises and derives total external kilograms; existing entries with only a total remain valid and unclassified. `dumbbellKgEach` represents each of two dumbbells; `dumbbellKg` represents one. TASK-005 may later support variable counts and additional recording. The 6 kg and 10 kg programme values are prescriptions, not assumed actuals.
|
||||
|
||||
### 7.1 Tracking requirements (v1, agreed)
|
||||
|
||||
1. Save sets independently: achieved reps, any supported time/duration, actual resistance, side and optional notes. Preserve incomplete/partial sessions.
|
||||
2. For EMOM pull-ups and chin-ups, log **ten distinct minutes**, each with actual repetitions and vest load (initial 6 kg); permit zero/missed rounds. Support conventional-set sessions when the user switches training format.
|
||||
3. For weighted push-ups, track vest load (initial 10 kg); for applicable leg exercises record 10 kg vest plus any dumbbell load separately. No made-up dumbbell weights.
|
||||
4. For daily hangs, track each timed attempt, longest single attempt, accumulated time across attempts, and progression toward a **continuous** two-minute goal. Record Saturday finger-hang work separately.
|
||||
5. For other timed activities (isometrics, planks, carries, walks, stretches), log **actual** duration rather than treating the prescribed value as achieved. Per-side timing should remain distinguishable where relevant.
|
||||
6. Prefill suggested starting weights/reps/durations from the previous matching exercise/session, but require user action before recording completion.
|
||||
1. Save regular strength sets independently with actual reps and external weight, including 0 kg for bodyweight-only work. Preserve partial records and separate them from prescription values.
|
||||
2. For EMOM pull-ups and chin-ups, save **total actual repetitions and vest weight** for the exercise. Keep the ten-minute, one-minute-round prescription visible without timing or per-round logging. Support conventional-set sessions when the user switches training format.
|
||||
3. For weighted push-ups, track vest load (initial prescription 10 kg); for applicable leg exercises record actual vest and dumbbell load separately. Dumbbell flys record kilograms per dumbbell, without a vest field. No made-up actual weights.
|
||||
4. For daily hangs, track each timed attempt, longest single attempt, accumulated time across attempts, and progression toward the current editable goal (initially two minutes). Record Saturday finger-hang work separately.
|
||||
5. For other timed workout activities (planks and carries), log **actual** duration rather than treating the prescribed value as achieved. Isometric holds do not require times. Per-side timing should remain distinguishable where relevant.
|
||||
6. Later, suggest starting weights/reps from the previous matching exercise/session, but require user action before recording completion.
|
||||
7. Show dated exercise history, previous vs current performance and straightforward progress charts/personal bests (particularly vest load, reps, hang duration, optional body weight). Do not fabricate missing data or equate different loading modes in comparisons.
|
||||
8. Never rewrite completed history following routine edits, reseeding, changes to exercise definitions or app upgrades. Future routine edits only change future prescriptions.
|
||||
9. Export all workouts, hang attempts, plan edits, walks, and optional body-weight records to a **versioned JSON backup**; validate on import and ask before overwriting/merging existing records.
|
||||
9. Export all workouts, hang attempts, plan edits, and optional body-weight records to a **versioned JSON backup**; validate on import and ask before overwriting/merging existing records.
|
||||
10. Avoid external analytics and automatic calorie estimates; training data remains local and private.
|
||||
11. For a workout's **total external-load volume** (kg·reps), sum `actual reps × actual external kilograms moved` across recorded regular sets and EMOM totals. External load includes recorded vest mass, actual dumbbell mass times count, and EZ-bar total as applicable; it excludes body weight. Do not invent missing load components. Show the formula and raw total, and mark partial or incomplete data. Timed holds and hangs do not contribute rep-load volume. Do not calculate volume per minute.
|
||||
|
||||
### Data integrity and update rules
|
||||
|
||||
@@ -269,9 +266,9 @@ The implementation may normalize or refine this model. **Do not treat the sugges
|
||||
## 8. Visual and UX direction
|
||||
|
||||
- Calm, minimal, readable, keyboard-usable layout; neutral/dark styling with clear completion emphasis. Respect light/dark preference if feasible without a large theme system.
|
||||
- The weekday strip and **Morning/Afternoon toggle** should be immediately visible. Display **only one selected session period** on screen, never both together. Walk controls are a separate compact accessible element.
|
||||
- Exercise cards show: name, prescription, prescribed rest, load/vest preset, completed/remaining sets and an expandable description/image view.
|
||||
- Timers must be highly legible and operate with large touch targets.
|
||||
- The weekday strip and **Morning/Afternoon toggle** should be immediately visible. Display **only one selected session period** on screen, never both together.
|
||||
- Exercise cards show: name, prescription, prescribed rest, load/vest preset, rep/weight entry for applicable strength work, and an expandable description/image view when details are implemented.
|
||||
- The persistent local time clock remains legible at phone and desktop widths.
|
||||
- Avoid busy gamification, badges/streaks and unnecessary dashboards.
|
||||
- Responsive at mobile widths; no horizontal scrolling for primary interaction.
|
||||
- Keep the content editable and data-centric, rather than a static copy of this document.
|
||||
@@ -284,12 +281,13 @@ Use separate Codex tasks and isolated branches/worktrees in the repository conte
|
||||
|---|---|---|
|
||||
| T001 | Repo/bootstrap: Vite + React + React-Bootstrap; project context docs; lint/test scripts; basic responsive shell | None |
|
||||
| T002 | Exercise definitions and accurate **seed** routine for all seven days; validation tests | T001 |
|
||||
| T003 | Day navigation and exclusive Morning/Afternoon views; walk controls accessible separately; selected period persists | T002 |
|
||||
| T003 | Day navigation and exclusive Morning/Afternoon views; selected period persists | T002 |
|
||||
| T004 | Exercise-detail screen and local media placeholders; accessibility | T002–T003 |
|
||||
| T005 | IndexedDB repository, per-set and per-minute EMOM logging, weight components, hangs, walks/holds, history-safe migrations, JSON backup round-trip | T002–T003 |
|
||||
| T006 | Rest, hold and EMOM timers, elapsed-time correctness tests | T003 |
|
||||
| T005 | Extend TASK-014 records with hangs, holds, other performance details and history-safe migrations | T014 |
|
||||
| T006 | Superseded timer task; the local time clock and hang-goal editor remain | T003 |
|
||||
| T014 | Remove timers; save EMOM total reps/weight and regular per-set reps/weight by date | T002–T003 |
|
||||
| T007 | Routine editor: reorder, adjust prescription, optional exercises, persistence | T005 |
|
||||
| T008 | History and progress views (hang PB, loads, reps), responsive/accessibility polish, offline/PWA build, test pass and documentation | T004–T007 |
|
||||
| T008 | History and progress views (hang PB, loads, reps, total external-load volume), responsive/accessibility polish, offline/PWA build, test pass and documentation | T004–T007, T014 |
|
||||
| T009 (content) | Produce and review licensed/local exercise illustrations for the actual variants | T004; may run separately |
|
||||
|
||||
Do not implement all tasks as a single unreviewed change. Define task boundaries, run unit/integration tests and manually review the UI before merge.
|
||||
@@ -297,25 +295,26 @@ Do not implement all tasks as a single unreviewed change. Define task boundaries
|
||||
## 10. Acceptance tests
|
||||
|
||||
- [ ] Today defaults to current local calendar date; seven-day strip works across weeks; exclusive Morning/Afternoon toggle remembers its state and does not show both periods at once.
|
||||
- [ ] Monday and Friday show full-body stretching in the morning, and holds plus hangs in the afternoon; walks remain accessible independently.
|
||||
- [ ] Tuesday pull-ups and Saturday chin-ups are **10 × 60-second EMOMs** with 6 kg vest presets and reps logged per round.
|
||||
- [ ] Monday and Friday mornings show “Full body stretch routine” with no invented exercise entries; afternoon holds and hangs remain.
|
||||
- [ ] The local time clock remains prominent and readable at phone and desktop widths while navigating the app.
|
||||
- [ ] Tuesday pull-ups and Saturday chin-ups retain the **10 × 60-second EMOM** prescription and 6 kg vest presets, while actual total reps and external weight are recorded once for each exercise.
|
||||
- [ ] Wednesday flys have **no floor-press drop set**; push-up plus precedes feet-elevated push-ups.
|
||||
- [ ] Thursday includes single-leg RDLs and front planks, **not weighted floor crunches**.
|
||||
- [ ] Saturday includes hanging knee raises, 2–3 finger-hang sets, preacher curls and hammer curls; **no EZ curls or wrist curls**.
|
||||
- [ ] Sunday includes optional single-arm triceps extensions and side-plank hip raises.
|
||||
- [ ] Holds correctly change between Monday, Tue–Thu, Friday and Sat–Sun targets.
|
||||
- [ ] Daily afternoon hangs appear all seven days with **2:00 goal**, but no invented achieved value; multiple attempts produce longest-continuous and cumulative totals independently. Saturday finger hangs remain separate.
|
||||
- [ ] Monday/Friday full-body stretching lists all nine agreed movements.
|
||||
- [ ] Three daily walk slots initially show 30–60 min and 6 kg vest, but actual duration/load can be changed.
|
||||
- [ ] Afternoon isometric holds show no time targets; day-specific effort guidance remains.
|
||||
- [ ] Daily afternoon hangs appear all seven days with an initially **2:00 goal** that can be changed and survives reload, but no invented achieved value or vest detail; multiple attempts produce longest-continuous and cumulative totals independently. Saturday finger hangs remain separate.
|
||||
- [ ] Weight presets on pull-ups/chin-ups (6 kg) and weighted push-ups/vested leg work (10 kg) display correctly; dumbbell loads are **not invented**.
|
||||
- [ ] Users can enter vest and dumbbell loads separately, total EZ-bar load, per-side values, recorded reps, hold/carry durations, and optional body-weight entries.
|
||||
- [ ] Ten EMOM rounds accept different actual rep counts, including missed rounds; completed sets persist and previous recorded numbers can be offered as **suggestions**, not already-logged results.
|
||||
- [ ] EMOM total reps and actual external weight, plus separate regular-set reps and weights, survive reload by date and exercise; prescribed values are never saved as performed automatically.
|
||||
- [ ] Exercise-specific load components, hang attempts and untimed hold checkoffs can be extended without replacing existing strength records; old total-only entries remain available.
|
||||
- [ ] Exercise history and simple progress charts display actual saved values; editing a future prescription leaves existing entries unchanged.
|
||||
- [ ] Timers pause/resume/reset correctly and EMOM remains accurate after background tab throttling.
|
||||
- [ ] Total external-load volume uses recorded reps and actual external weight without a time denominator; the display shows raw totals and flags partial or missing data.
|
||||
- [ ] No workout, exercise, rest, or EMOM timer or audio control is present; the local time-of-day clock remains visible and updates across views.
|
||||
- [ ] All exercise details work offline with useful text even if an image is absent.
|
||||
- [ ] Routine edits persist after refresh/build updates and do not rewrite previous session logs.
|
||||
- [ ] IndexedDB survives refresh/browser restart, saves partial sessions, and handles blocked/unavailable storage or upgrade errors clearly.
|
||||
- [ ] Export → clear/test profile → import round-trip restores all records, including independent hang attempts, historical loads, walk entries and plan edits.
|
||||
- [ ] Export → clear/test profile → import round-trip restores all records, including independent hang attempts, historical loads and plan edits.
|
||||
- [ ] All major controls work with keyboard and on phone viewport.
|
||||
- [ ] No login, API calls, analytics, third-party remote imagery or browser storage sync is required.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user