Implement TASK-015 metadata-driven exercise logging
This commit is contained in:
+26
-36
@@ -1,56 +1,46 @@
|
||||
# Exercise Tracker current state
|
||||
|
||||
- Last updated: 2026-11-04
|
||||
- Current branch: `task/001-foundation`
|
||||
- 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.
|
||||
|
||||
Code and configuration take precedence over this summary.
|
||||
Code/configuration take precedence over this summary.
|
||||
|
||||
## Application status
|
||||
|
||||
The React/Vite app shows a version 7 seven-day routine with 30 exercise definitions, actual-date navigation, exclusive Morning/Afternoon views, title-only Monday/Friday full body stretch routines, and no dog walks. A large local time-of-day clock stays in the header. Afternoon isometric holds have no prescribed time. The daily hanging goal starts at two minutes, can be edited, and persists in IndexedDB without vest details.
|
||||
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.
|
||||
|
||||
TASK-014 removes the workout, exercise, rest, and EMOM timers and all timer audio. Morning EMOM cards accept one total-reps entry and exercise-specific actual load. Regular repetition exercises accept separate reps and load for each entered set. The next set copies the preceding set's load fields but leaves reps blank. Vest, dumbbell, and EZ-bar inputs follow the routine seed; exercises using both vest and dumbbells show separate fields. A paired-dumbbell field records kilograms per dumbbell, with two dumbbells reflected in the saved total external kilograms. Bodyweight-only work records zero added weight. Earlier single-total entries remain readable and editable as legacy totals rather than being reinterpreted as components. Entries are keyed by local date and exercise in IndexedDB; browsing alone does not save a record. The database remains version 2 and preserves the hanging-goal override store. Prescribed EMOM timing and rest guidance remain visible as targets, with no app timer or volume-per-minute feature.
|
||||
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.
|
||||
|
||||
Broader recording, a full history view, routine editing, backup, and offline reload are still planned work. The latest commit is `e86a2e7` (`Initialize Workout Tracker app shell`); the later task work is uncommitted.
|
||||
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.
|
||||
|
||||
## Storage and compatibility
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
## Validation and limits
|
||||
|
||||
- On 2026-11-04, TASK-014 lock-on verification passed all 27 tests across 7 files, lint and production build in the current worktree. No application changes or browser/manual checks were made; Captain validation remains pending.
|
||||
- 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.
|
||||
|
||||
- On 2026-10-27, all 23 tests across 7 files passed, including strength-entry UI, date isolation, validation, IndexedDB v1-to-v2 upgrade, and hanging-goal preservation. Lint and production build passed.
|
||||
- On 2026-10-28, the revised strength-entry flow passed 27 tests across 7 files, lint, production build, context validation, and `git diff --check`. Tests cover flys, mixed vest/dumbbell entries, next-set weight defaults, legacy totals, and storage consistency. The browser inventory remained empty, so visual/manual verification is still pending.
|
||||
- The available computer-use inventory had no browser, so phone/desktop visual checks could not be run here. The owner previously confirmed TASK-003's UI check; the current TASK-014 layout has not been independently checked in a browser.
|
||||
- Node 24.21.0 is installed outside the default shell PATH at `/home/rob/.nvm/versions/node/v24.21.0/bin`.
|
||||
- Exercise illustrations and detailed technique copy are not supplied; TASK-004 can use placeholders, while TASK-011 requires reviewed assets/content. Deployment location is not selected.
|
||||
## Workflow and next action
|
||||
|
||||
## Current work and priorities
|
||||
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-014 is Complete following Captain's explicit acceptance on 2026-11-04, including suitcase-carry dumbbell inputs and front/side-plank vest inputs. Final automated checks passed 32 tests, lint and build; agent browser QA remained unavailable. TASK-006's timer scope is superseded. TASK-005 remains accepted for additional recording, including hang attempts, hold checkoffs, notes, and other previously accepted records. TASK-008 remains accepted for history and total external-load volume from recorded reps and external weight, without a time denominator.
|
||||
## Floor-fly acceptance correction — 2026-11-04
|
||||
|
||||
## Workflow state
|
||||
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.
|
||||
|
||||
Roborto Workflow 2.0 operating guidance is in `AGENTS.md` and `docs/WORKFLOW.md`; Context System remains 1.0. This is the sole worktree on `task/001-foundation`. It contains uncommitted work spanning multiple tasks. No integration branch, remote, merge policy, worktree directory convention, release branch, or repository testtask adapter is defined. Proposed defaults are documented for Captain review, not yet adopted.
|
||||
## All dumbbell-count inputs removed — 2026-11-04
|
||||
|
||||
## TASK-015 planning status — 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.
|
||||
|
||||
The matching TASK-015 record was expanded after inspection, not duplicated. This session changed documentation only; the running application/database remain unchanged. TASK-015 awaits implementation approval, the exact timer scope, and a safe agreed Git base/worktree arrangement. The latest request clarifies per-minute EMOM logging, actual per-side hold durations, continuous daily-hang target and bodyweight-only walk classification; see ADR-017 and the explicit planning overlays in SPEC/WORKOUT_ROUTINE. Existing TASK-014 Captain validation remains pending. No app tests or browser QA were rerun for this planning-only update.
|
||||
## Completion checkboxes removed — 2026-11-04
|
||||
|
||||
## TASK-014 engaged validation — 2026-11-04
|
||||
|
||||
No app changes were needed based on source review; automated checks passed earlier in this session. Browser inventory is empty and in-app browser unavailable, so real-browser QA remains unverified. A loopback-only Vite acceptance endpoint is running at `http://127.0.0.1:5174/` from this worktree; it uses a distinct browser-storage origin from port 5173. Captain validation remains the completion gate; see HANDOFF for the checklist and environment.
|
||||
|
||||
## Suitcase-carry weight correction — 2026-11-04
|
||||
|
||||
TASK-014 now shows a single-dumbbell kilogram input per suitcase-carry set without requiring repetitions. Different loads (including zero) save/reload by date; a new set copies the preceding load. Existing 30–60-second-per-side targets remain separate and no actual duration is invented. Storage adds `load-sets` records in the existing v2 store without rewriting prior data. All 29 tests across 7 files, lint and build pass. Browser QA remains unavailable and Captain validation is pending.
|
||||
|
||||
## Plank vest correction — 2026-11-04
|
||||
|
||||
TASK-014 now exposes vest kilograms per set for front planks (weight-only, no reps) and side-plank hip raises (reps plus vest). Seed v7 adds unspecified vest load for these two exercises; no prescribed targets or historical records are rewritten. Old bodyweight-only rows remain readable as prior totals and require explicit conversion to component entry. All 32 tests across 7 files, lint and build pass. Browser QA remains unavailable; Captain validation is pending.
|
||||
|
||||
## TASK-014 acceptance — 2026-11-04
|
||||
|
||||
Captain explicitly confirmed “task complete” after reviewing the implemented corrections. TASK-014 is Complete. Earlier pending-validation entries above record the sequence before acceptance, not an outstanding gate. No further task was engaged, and no commit, merge or deployment was performed. TASK-015 and TASK-016 remain awaiting implementation authority.
|
||||
|
||||
## Authorized baseline integration — 2026-11-04
|
||||
|
||||
Captain selected timer-free TASK-015 and authorized committing all current pending work and merging it into local codex before implementation. Branch inspection found only task/001-foundation and no remote; codex will be created from the original foundation commit. ADR-018 and WORKFLOW establish codex as TASK-015's integration base and sequential task/015-equipment-ui branch in this worktree. No TASK-015 merge/push/deployment is authorized. Earlier unresolved timer/Git notes are superseded by this explicit instruction.
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user