Complete TASK-017 simplified EMOM and per-side entry

This commit is contained in:
rob
2026-11-07 15:29:12 +00:00
parent 9c0e82037f
commit 922d1f6bd7
30 changed files with 646 additions and 236 deletions
+29 -3
View File
@@ -4,7 +4,7 @@ This file holds accepted, scoped implementation work. It is not a speculative ba
## Proposed implementation sequence
Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through TASK-003 and TASK-012–TASK-013 are complete; TASK-014 is complete following Captain acceptance on 2026-11-04; TASK-006 is superseded; TASK-005 and TASK-008 are accepted; TASK-015 is Complete following Captain acceptance on 2026-11-04; TASK-016 is accepted for planning only; the remaining tasks are proposed. Implement one task per isolated branch/worktree under `docs/WORKFLOW.md`. Preserve the documented initial programme, including optional/ranged prescriptions and distinct session types. TASK-013 supersedes the dog-walk reference added by TASK-012; TASK-014 supersedes timer work.
Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through TASK-003 and TASK-012–TASK-013 are complete; TASK-014 is complete following Captain acceptance on 2026-11-04; TASK-006 is superseded; TASK-005 and TASK-008 are accepted; TASK-015 is Complete following Captain acceptance on 2026-11-04; TASK-016 is accepted for planning only; TASK-017 is Complete following Captain acceptance on 2026-11-07; the remaining tasks are proposed. Implement one task per isolated branch/worktree under `docs/WORKFLOW.md`. Preserve the documented initial programme, including optional/ranged prescriptions and distinct session types. TASK-013 supersedes the dog-walk reference added by TASK-012; TASK-014 supersedes timer work.
### TASK-001: Application foundation and responsive shell
@@ -87,8 +87,8 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through T
- Status: Accepted
- Objective: Browse actual dated performance and transparent basic trends without a time-based rate.
- Scope: Completed/partial session history, prior vs current performance, reps and load trends, total external-load volume from completed detailed minute/set rows and separately preserved legacy aggregates, longest continuous and cumulative hang separately, optional body-weight trend.
- Acceptance criteria: External-load volume is the sum, across completed detailed regular sets and each EMOM minute, of actual reps multiplied by recorded external kilograms moved (vest, dumbbell total based on count, and/or EZ-bar total; body weight excluded). Do not combine detailed and legacy representations for the same performance. Show the formula and raw totals; label partial workouts and incomplete load data. Timed-only work contributes no rep-load volume; routine edits leave history intact. Do not show volume per minute.
- Scope: Completed/partial session history, prior vs current performance, reps and load trends, total external-load volume from completed regular sets and aggregate EMOM entries, with historical minute/legacy records preserved separately, longest continuous and cumulative hang separately, optional body-weight trend.
- Acceptance criteria: External-load volume is the sum, across completed regular sets and aggregate EMOM entries; historical minute entries retain their own load calculations, of actual reps multiplied by recorded external kilograms moved (vest, dumbbell total based on count, and/or EZ-bar total; body weight excluded). Do not combine detailed and legacy representations for the same performance. Use the current aggregate when it coexists with older representations for one session; never sum both. Show the formula and raw totals; label partial workouts and incomplete load data. Timed-only work contributes no rep-load volume; routine edits leave history intact. Do not show volume per minute.
- Relevant areas: Queries/aggregations, history/progress UI, tests.
- Required validation: Calculation and view tests with mixed loading modes, missing weights, partial workouts, and timed-only exercises; responsive check.
- Non-goals: Coaching, calorie estimates, streaks.
@@ -250,3 +250,29 @@ Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 through T
- Non-goals: New layouts, unrelated UX redesign, light-mode variants, a theme picker, OS-theme switching, new settings or persistent preferences, and changes to workout definitions/storage/timers.
- Decisions required before implementation: Review the exact palette through the UI brief; default scope is a single dark theme. A light/dark switch would require separately approved scope.
- Recommended skills when engaged: Frontend UI Design → Webapp Feature → Frontend Visual QA. This record does not authorize implementation.
### TASK-017: Replace EMOM tables with one weight and one total-reps input
- Status: Complete — Captain explicitly accepted on 2026-11-07
- Engaged: 2026-11-07 on `task/017-emom-totals`, base `codex` / `9c0e820`.
- Requested: 2026-11-07. Captain reiterated that the EMOM minute table is unwanted and only one weight input and one total-reps input are needed.
- Objective: Restore simple aggregate EMOM entry under ADR-020, consistent with the original ADR-014 intent.
- Scope: Replace the normal EMOM input table with exactly one weight (kg) input and one total-reps input per exercise/session. Remove minute rows and the minute/conventional-set mode switch. Keep prescribed protocol guidance, explicit Save, validation and dated local persistence.
- Acceptance criteria: Every EMOM exercise has exactly these two performance inputs, with no minute table, repeated fields, add-set controls, completion checkboxes or mode switch. Values survive Save, reload and date/period navigation with correct isolation. Zero weight is valid; blanks remain missing rather than becoming zero or targets. Browsing writes nothing; invalid values and storage failures remain visible. Existing aggregate and detailed minute records retain original values and semantics without silent conversion, overwritten history, fabricated uniform weights or double-counting. Regular sets, non-EMOM equipment controls, hangs, navigation and the wall clock retain existing behavior; timers remain absent.
- Relevant areas: `src/PerformanceEditor.jsx`, `src/performanceModel.js`, performance/legacy storage adapters and tests, `docs/SPEC.md`, `docs/TASK-015_UI.md` and context documents.
- Required validation: UI assertions for exactly one weight and one total-reps input and no EMOM table/mode switch; IndexedDB save/reload/date-isolation tests; historical aggregate/minute compatibility and zero/blank/error regressions; full tests, lint, build, context validation and `git diff --check`. Verify keyboard use and 320px/desktop layout. Captain manual acceptance is required before Complete.
- Non-goals: Changes to the training programme or other exercise entry, advanced/per-minute entry, timers, history/progress screens and unrelated refactors.
- Dependencies or blockers: TASK-015 is integrated on local `codex` (inspected HEAD `9c0e820`). ADR-020 supersedes its minute-entry requirements and ADR-017's corresponding clause. During implementation define compatible persistence and historical access without silently collapsing varying historical loads. TASK-008 must support new aggregates alongside preserved minute history without double-counting. No additional input fields are authorized.
- Implementation evidence (2026-11-07): Two-input EMOM form, separate aggregate key/format, preserved original editors, aggregate-only suggestions and JSON v3 with v1/v2 import compatibility implemented. 139 tests across 12 files, lint and build pass; context/whitespace checks and refreshed testtask snapshot are recorded in HANDOFF. Reviewed against codex / 9c0e820. Browser UI automation inventory is empty; real 320px/desktop and keyboard visual checks remain for Captain. No commit/merge performed.
#### Accepted TASK-017 validation correction — one input for both sides (2026-11-07)
- Status: Complete — included in Captain acceptance on 2026-11-07.
- Scope: All exercises currently asking separate left/right reps or seconds, including Single-arm preacher curls over a chair, use one reps/seconds input per set labeled as applying to each side. Entering or clearing it updates both sides together. Keep equipment inputs and prescribed side guidance.
- Acceptance: No separate left/right input controls remain. Save/reload, multiple sets, zero/blank drafts and compatible suggestions work. Previously recorded unequal or partial left/right values remain intact on read and untouched Save, shown as read-only history; entering a replacement explicitly applies it to both sides. No schema migration or programme changes.
- Validation: All-exercise control matrix; preacher-curl and hold entry/reload; historical unequal/partial preservation; storage integration; full tests/lint/build/context/whitespace and refreshed TASK-017 test snapshot. Captain acceptance remains required.
- TASK-017 completion evidence (2026-11-07): Captain explicitly stated “task complete. commit all and merge to codex”, accepting EMOM totals and shared per-side inputs. Final automated verification: 143 tests across 13 files, lint, build, context validation and whitespace checks pass. No independent agent browser visual pass is claimed. Captain authorized committing all pending task changes and local codex integration; no push/deployment. Work was done on a dedicated task branch in the original worktree, not a separate implementation worktree; this workflow deviation is recorded, not retroactively corrected. Testtask execution belongs to Captain.