Complete TASK-017 simplified EMOM and per-side entry
This commit is contained in:
+24
-12
@@ -16,8 +16,8 @@
|
||||
TASK-015 implements metadata-driven equipment/measurement entry and was accepted by Captain on 2026-11-04 after the count-input and completion-checkbox refinements. Its UI brief is `docs/TASK-015_UI.md`. Legacy aggregate EMOM, repetition sets and weight-only sets remain preserved separately; new logging uses detailed versioned records. The app stays timer-free.
|
||||
|
||||
- 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 and partial state. Explicit Save marks fully filled valid rows complete; no completion checkboxes are shown. 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.
|
||||
- Reusable UI derives controls from repetitions, repetitions per side, duration, duration per side, distance when applicable, EMOM total reps 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 regular sets with independent load components and partial state. Explicit Save marks fully filled valid rows complete; no completion checkboxes are shown. Normal EMOM entry uses exactly one Weight (kg) input and one Total reps input (TASK-017 / ADR-020). Earlier aggregate/minute records remain separately accessible without conversion. 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. IndexedDB v3 adds performanceEntries and its matching-session index without rewriting the two older stores. New records use schemaVersion 1; JSON adapter backups use version 2 with a legacy version 1 envelope reader. Test old total-only/component records, existing goal overrides and old/new JSON round trips. TASK-009 still owns backup UI and user-facing import policy; the current adapter supports non-overwriting imports or explicit transactional replacement, with no Settings interface.
|
||||
@@ -34,7 +34,7 @@ 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 and afternoon isometric holds. Monday and Friday mornings are labeled Full body stretch routine; specific stretches will be provided later.
|
||||
4. Record each EMOM minute independently and derive totals; log reps, per-side values, duration and equipment-specific loads per set as applicable.
|
||||
4. Record one weight and total reps for each EMOM exercise; log reps, per-side values, duration and equipment-specific loads per set as applicable.
|
||||
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.
|
||||
|
||||
@@ -174,7 +174,7 @@ Target intensity (RPE): Monday **5–6**; Tuesday–Thursday **3–4**; Friday *
|
||||
### 4.9 Global strength-training rules
|
||||
|
||||
- Usually **2 min** rest between sets, **2–3 min** for demanding compounds, **~3 min** between different exercises.
|
||||
- EMOM remains a prescribed ten-minute protocol with a new start each minute. Record actual reps and load independently each minute; derive totals from recorded completed minutes.
|
||||
- EMOM remains a prescribed ten-minute protocol with a new start each minute. Record one actual weight and one actual total-reps value for the exercise/session.
|
||||
- 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.
|
||||
@@ -195,7 +195,7 @@ Each exercise has a stable `exerciseId` and human-readable name, category, equip
|
||||
|
||||
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. Expand Exercise details for available notes and honest content/image placeholders. Enter each EMOM minute or regular set with only metadata-selected measurements and load fields. Per-side exercises have independent left/right values. Adding a set copies loads/count but leaves measurements blank. Save performance marks fully filled valid rows complete; incomplete rows remain saved drafts. Never mark targets or suggestions as performed automatically.
|
||||
3. Expand Exercise details for available notes and honest content/image placeholders. Enter one weight and total reps for EMOM; regular sets retain metadata-selected measurements and load fields. Per-side exercises use one reps or seconds input per set, applying to each side (ADR-021). Adding a set copies loads/count but leaves measurements blank. Save performance marks fully filled valid rows complete; incomplete rows remain saved drafts. Never mark targets or suggestions 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. Save isometric duration drafts without requiring completion; completed holds have actual seconds (per side where applicable). Daily hang attempts in seconds produce separate longest-continuous and cumulative totals and continuous-goal status. Long-term personal best history remains TASK-008.
|
||||
@@ -203,17 +203,17 @@ Each exercise has a stable `exerciseId` and human-readable name, category, equip
|
||||
|
||||
### Suitcase-carry recording
|
||||
|
||||
Suitcase carries retain their prescribed duration per side and accept actual left/right seconds plus dumbbell kilograms per dumbbell and count per set, without requiring repetitions. Existing TASK-014 weight-only rows (`load-sets`) remain separately available; no achieved duration is inferred from them. Timed work contributes no rep-load volume.
|
||||
Suitcase carries retain their prescribed duration per side and accept one actual seconds-per-side input plus dumbbell kilograms per dumbbell and count per set, without requiring repetitions. Existing TASK-014 weight-only rows (`load-sets`) remain separately available; no achieved duration is inferred from them. Timed work contributes no rep-load volume.
|
||||
|
||||
### Plank recording
|
||||
|
||||
Front planks accept actual seconds and vest kilograms per set without repetitions. Side-plank hip raises accept independent left/right reps and vest kilograms. Neither has dumbbell/bar fields or assumed load. Different sets may use zero or different loads. Older bodyweight-only or weight-only records stay in their original representation and are never converted automatically.
|
||||
Front planks accept actual seconds and vest kilograms per set without repetitions. Side-plank hip raises accept one reps-per-side input and vest kilograms. Neither has dumbbell/bar fields or assumed load. Different sets may use zero or different loads. Older bodyweight-only or weight-only records stay in their original representation and are never converted automatically.
|
||||
|
||||
### 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. A detailed EMOM entry has ten minute rows of actual reps and load; regular entries have applicable measurements, load/count and completion per set. Dumbbell fields mean kilograms per dumbbell. No exercise shows a dumbbell-count input; its defined count supplies new rows and remains stored for load calculations. Existing recorded counts are preserved. Preserve older single-total entries without interpreting them as components.
|
||||
- Keep EMOM duration and rest guidance as prescriptions only. A new EMOM entry has one weight and one total-reps input with no minute table or mode switch; regular entries have applicable measurements, load/count and completion per set. Dumbbell fields mean kilograms per dumbbell. No exercise shows a dumbbell-count input; its defined count supplies new rows and remains stored for load calculations. Existing recorded counts are preserved. 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
|
||||
@@ -246,7 +246,7 @@ The earlier `strengthEntries` store is kept verbatim, including aggregate EMOM,
|
||||
### 7.1 Tracking requirements (v1, agreed)
|
||||
|
||||
1. Save regular strength sets independently with actual reps and external weight, without external-weight controls for bodyweight-only work. Explicit zero is valid where external resistance is supported. Preserve partial records and separate them from prescription values.
|
||||
2. For EMOM pull-ups and chin-ups, save actual reps and vest weight per minute, with derived completed-rep totals. Keep the ten-minute protocol visible without running a timer. Support conventional-set sessions when the user switches training format.
|
||||
2. For EMOM pull-ups and chin-ups, save one total-reps value and one vest weight. Keep the ten-minute protocol visible without running a timer. The normal EMOM entry has no format switch.
|
||||
3. For weighted push-ups, track vest load (initial prescription 10 kg); for applicable leg exercises record actual vest and dumbbell load separately. Dumbbell floor flys record kilograms per dumbbell with a fixed count of two, without vest or count fields. 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. Incomplete hold drafts may omit times; completion requires actual durations. Record sides independently where relevant.
|
||||
@@ -255,7 +255,7 @@ The earlier `strengthEntries` store is kept verbatim, including aggregate EMOM,
|
||||
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, 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 completed detailed regular sets and each EMOM minute. Retain original aggregate calculations separately when displaying legacy history; do not count both representations together. External load includes recorded vest mass, actual dumbbell mass times count, and EZ/straight-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.
|
||||
11. For a workout's **total external-load volume** (kg·reps), sum `actual reps × actual external kilograms moved` across completed regular sets and new aggregate EMOM entries; preserved historical minute entries retain their individual calculations. Retain original aggregate calculations separately when displaying legacy history; do not count both representations together. External load includes recorded vest mass, actual dumbbell mass times count, and EZ/straight-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
|
||||
|
||||
@@ -301,7 +301,7 @@ Do not implement all tasks as a single unreviewed change. Define task boundaries
|
||||
- [ ] 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 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 reps and vest weight are recorded independently each minute.
|
||||
- [ ] Tuesday pull-ups and Saturday chin-ups retain the **10 × 60-second EMOM** prescription and 6 kg vest presets, while actual performance uses one total-reps and one weight input.
|
||||
- [ ] 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**.
|
||||
@@ -310,7 +310,7 @@ Do not implement all tasks as a single unreviewed change. Define task boundaries
|
||||
- [ ] 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.
|
||||
- [ ] Equipment capabilities contain no fixed weight. Historical 6/10 kg values remain prescription context only and do not determine inputs or prefill actuals.
|
||||
- [ ] 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.
|
||||
- [ ] EMOM minute reps/load and regular-set measurements/weights survive reload by date, period and exercise; prescribed values are never saved as performed automatically.
|
||||
- [ ] EMOM total reps/weight and regular-set measurements/weights survive reload by date, period 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.
|
||||
- [ ] 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.
|
||||
@@ -342,3 +342,15 @@ Do not implement all tasks as a single unreviewed change. Define task boundaries
|
||||
---
|
||||
|
||||
*This is a design specification, not medical guidance. Adjust any exercise causing pain and seek clinical assessment for new or progressive spinal prominence, unexplained weight loss or persistent pain.*
|
||||
|
||||
|
||||
### TASK-017 EMOM compatibility contract
|
||||
|
||||
New EMOM totals use schemaVersion 1, format `emom-total`, one row of reps/vestKg/completion and saved definition/prescription snapshots. Their `performanceEntries` key adds `:emom-total` to date/period/exercise identity, leaving the original detailed record untouched. IndexedDB stays v3; no records migrate on read. Earlier records are accessible only through an initially collapsed disclosure; it never invents an empty minute record for editing. New suggestions match earlier aggregate-format records only. If aggregate and original representations coexist for one session, use the aggregate as the current representation and never sum them. Blank values persist as incomplete drafts; valid zero remains explicit.
|
||||
|
||||
Adapter exports now use JSON envelope v3 and continue importing v1/v2 as well as v3. Older applications cannot read the new aggregate record format; retain the new application for restoring v3 backups. No Settings backup UI is added.
|
||||
|
||||
|
||||
### TASK-017 side-input correction
|
||||
|
||||
Every per-side exercise, including Single-arm preacher curls over a chair, uses one Reps (each side) or Seconds (each side) input per set. Entering or clearing the input changes both stored side values together. Equipment inputs and prescription guidance remain unchanged. Existing unequal/partial side values are shown as read-only text with a blank shared replacement input; browsing or untouched Save does not choose a side or rewrite either value. Storage shapes, snapshots and per-side volume semantics remain unchanged.
|
||||
|
||||
Reference in New Issue
Block a user