Complete TASK-017 simplified EMOM and per-side entry
This commit is contained in:
+15
-30
@@ -1,46 +1,31 @@
|
||||
# Exercise Tracker current state
|
||||
|
||||
- Last updated: 2026-11-04
|
||||
- Worktree: `/home/rob/projects/exercise-tracker`; accepted TASK-015 source branch `task/015-equipment-ui`, authorized integration target `codex`. Verify current branch/HEAD from Git.
|
||||
- TASK-015 integration base: `669bfc3`; Captain authorized committing the accepted task and fast-forward merging it to local `codex` on 2026-11-04.
|
||||
- Last updated: 2026-11-07
|
||||
- TASK-017: Complete following Captain's explicit acceptance and commit/local codex merge authorization on 2026-11-07.
|
||||
- Source worktree: `/home/rob/projects/exercise-tracker`; task branch `task/017-emom-totals`, integration branch `codex`, base `9c0e820`. Use Git to verify resulting refs/HEAD after integration.
|
||||
|
||||
Code/configuration take precedence over this summary.
|
||||
|
||||
## Application status
|
||||
## Application
|
||||
|
||||
TASK-014 is Complete following Captain's explicit acceptance, including suitcase-carry dumbbell weights and front/side-plank vest inputs. Completed TASK-015 now uses seed v8 with 30 versioned exercise definitions. Equipment capabilities and measurement types drive reusable controls; definitions have no fixed resistance. New logging supports independent set/minute loads, dumbbell kg each/count, left/right reps or seconds, duration-only work, completion derived on explicit successful Save, partial drafts and compatible previous-session suggestions. Deep-push-up dumbbells remain handles rather than lifted resistance.
|
||||
React/Vite/React-Bootstrap local workout app, seed v8 with 30 exercise definitions. Actual-date and Morning/Afternoon navigation, persistent wall clock, untimed recording, continuous daily-hang goal and attempts, equipment-specific load controls, partial drafts, explicit Save completion and compatible previous-session suggestions remain.
|
||||
|
||||
New EMOM work has ten minute rows and derived completed totals; conventional sets can be selected for an empty entry. Daily hang is bodyweight-only, with separate attempts, longest continuous/cumulative results and an editable initially 120-second continuous target. No workout, exercise, rest or EMOM timers/audio return. The persistent local clock, actual-date navigation, Morning/Afternoon switching, optional exercise order/ranges and Monday/Friday empty stretch headings remain. Dog walks remain excluded; their bodyweight-only assignment is documentation context.
|
||||
TASK-017 replaces normal EMOM minute tables with exactly Weight (kg) and Total reps; no minute/set switch. New `emom-total` records retain one reps/vestKg/completion row and snapshots under a separate `:emom-total` key. Older aggregate/minute records remain untouched in collapsed Earlier records with original editors. Never sum coexisting representations; future history must use the current aggregate where present.
|
||||
|
||||
Exercise details reveal available routine notes and explicit missing-content/image placeholders. Reviewed muscle/technique copy and illustrations remain TASK-004/TASK-011. Full history/progress, routine editor, backup UI, offline release and dark theme remain separate tasks. TASK-005 retains notes/body weight and recording extensions outside TASK-015.
|
||||
Per-side exercises, including preacher curls and bird-dog holds, now use one Reps (each side) or Seconds (each side) input per set. Explicit edits write both stored side values together. Unequal/partial historical values remain intact on read and untouched Save, displayed as text until replaced. Equipment, prescribed side guidance and historical per-side calculation semantics remain compatible. Zero is explicit; blanks remain incomplete. No schema migration or programme change.
|
||||
|
||||
## Storage and compatibility
|
||||
No timers/audio, dog walks, dark theme, full history/progress, routine editor, backup UI or offline-release work was added. TASK-015 remains Complete. TASK-016 is planning-only. TASK-005 and TASK-008 remain accepted future work; other task statuses are in TASKS.
|
||||
|
||||
IndexedDB v3 adds performanceEntries plus a compound exercise/period/format index. Original routineOverrides and strengthEntries are unchanged. Detailed schemaVersion 1 records retain definition/prescription snapshots and actual values/load/completion rows; incomplete values are null and explicit zero stays zero. Legacy aggregate EMOM, rep sets, component/total-only and weight-only records remain separately available in their original editor; no minute/side/duration values are inferred and detailed saves do not overwrite them.
|
||||
## Storage
|
||||
|
||||
The JSON adapter (no Settings UI) exports all three stores as v2 and accepts a v1 envelope containing the two legacy stores. It validates before writes and imports atomically; duplicates abort without changing existing data unless replacement is explicitly requested. No earlier shipping backup format existed. Future TASK-009 owns preview, confirmations and user-facing conflict policy. UI period preference remains in localStorage; full settings backup is future TASK-009 work.
|
||||
IndexedDB v3 retains routineOverrides, strengthEntries and performanceEntries. Detailed schemaVersion 1 records retain definition/prescription snapshots. JSON adapter exports envelope v3 and imports v1/v2/v3 atomically; old records are not silently converted. Old app builds do not support the new aggregate format. No Settings backup UI exists. User data was not cleared.
|
||||
|
||||
## Validation and limits
|
||||
## Validation and workflow
|
||||
|
||||
- TASK-015 final verification: 129 tests across 11 files, lint, production build, Context System validation (0 warnings) and whitespace checks pass on 2026-11-04. Manual checklist is in HANDOFF. Tests cover every exercise's applicable/absent controls, variable/zero loads, counts, sides, durations, completion/drafts, suggestions, minute EMOM, continuous hang, actual App→IndexedDB integration, v1/v2 upgrades, indexed lookups, rollback and JSON round trips.
|
||||
- Reviewed tracked and new task files against `codex` / `669bfc3`. Test-only fake-indexeddb 6.2.7 added; no runtime dependency change. Review corrections include target snapshot timing, preserving entered counts during suggestions and excluding invalid completed drafts from totals.
|
||||
- Browser inventory is empty; in-app browser unavailable as previously checked. No visual screenshots, browser-console/network audit, real mobile/desktop overflow check or formal accessibility audit is claimed. Semantic labels/focus/disclosures are tested/static-reviewed. Captain accepted TASK-015 on 2026-11-04; no separate agent browser pass is claimed.
|
||||
- The loopback-only Vite server at `http://127.0.0.1:5174/` was verified serving the current TASK-015 App module. Other ports/origins have independent browser storage; no real data was cleared. This is not an offline-release or deployment check.
|
||||
- npm audit during dev-dependency installation reports existing Vite 8.0.3 / Vitest 4.1.11 toolchain advisories (1 high, 2 moderate package findings). Those baseline versions are unchanged; no advisory is attributed to fake-indexeddb. No automatic dependency upgrade was made.
|
||||
- Node 24.21.0 is available at `/home/rob/.nvm/versions/node/v24.21.0/bin`; repository minimum is 20.19. No backend, authentication, cloud, remote or deployment target exists.
|
||||
Final TASK-017 checks: 143 tests across 13 files, lint, production build, context validation (0 warnings) and whitespace checks pass on 2026-11-07. Coverage includes actual UI/IndexedDB save/reload/date isolation, aggregate/minute separation, historical edit isolation, shared side fields, old unequal/partial values, zero/blank/error paths, suggestions and JSON compatibility. Agent UI inventory was empty; no independent screenshot/mobile/desktop/keyboard visual pass is claimed. Captain explicitly accepted the task.
|
||||
|
||||
## Workflow and next action
|
||||
The testtask wrapper/config/hook and hash-verified allowlisted snapshot capability are provisioned. Only Captain runs testtask; agents must not launch/restart it, open browser windows or stop testing sessions without explicit instruction. Snapshot files are ignored by Git, tests and lint. No testtask/browser is launched for final integration.
|
||||
|
||||
TASK-015 is Complete following Captain’s explicit acceptance on 2026-11-04 after the count-input and checkbox corrections. TASK-016 remains planning-only. Captain has now authorized committing TASK-015 and merging it to local codex. No push/deployment is authorized. Verify the resulting refs and clean worktree after integration. No repository testtask adapter exists. See HANDOFF for the exact source/test endpoint and completed-task checklist and handoff.
|
||||
TASK-017 implementation used the original worktree on a dedicated branch rather than a separate implementation worktree; this deviation was acknowledged. Manual-test snapshots are evidence environments, never implementation worktrees. Captain retains future commit/merge/release authority. No push or deployment is authorized.
|
||||
|
||||
## Floor-fly acceptance correction — 2026-11-04
|
||||
|
||||
Floor flys now fix the dumbbell count at two and omit the redundant count input. Kg-per-dumbbell entry and saved count/volume remain accurate. Definition v2 and shared metadata-driven visibility preserve existing paired snapshots without rewriting records; other exercise count behavior is unchanged. Captain accepted this correction with TASK-015 completion on 2026-11-04.
|
||||
|
||||
## All dumbbell-count inputs removed — 2026-11-04
|
||||
|
||||
Captain extended the correction to every exercise. The shared editor hides all count controls; kg-per-dumbbell entry remains. Counts stay in stored records/calculations, with definition defaults for new rows and existing historical counts preserved. Older incomplete null counts are filled from their saved definition on explicit Save only, so they can be completed without a hidden-field validation failure. Browsing never rewrites data. Captain accepted this correction with TASK-015 completion on 2026-11-04.
|
||||
|
||||
## Completion checkboxes removed — 2026-11-04
|
||||
|
||||
Captain requested removing redundant completion checkboxes. Explicit Save now completes fully filled valid rows; incomplete rows remain drafts and invalid entered values remain errors. Suggestions and failed saves do not create achieved totals. Editing a saved row resets only its unsaved draft state until a successful Save. Existing persisted completion flags/history stay unchanged on read, and the database schema is unchanged. Captain accepted this correction with TASK-015 completion on 2026-11-04.
|
||||
Node minimum is 20.19; validation uses `/home/rob/.nvm/versions/node/v24.21.0/bin`. Baseline Vite/Vitest advisories were previously reported (1 high, 2 moderate); dependency versions are unchanged. No backend, authentication, remote or deployment target exists.
|
||||
|
||||
Reference in New Issue
Block a user