Files
Excersise-Tracker/docs/HANDOFF.md
T

44 lines
5.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Exercise Tracker handoff
> Replaceable snapshot; repository code and maintained context take precedence.
- Updated: 2026-11-11.
- Active: TASK-008 History and progress. Captain engaged Frontend UI Design → Webapp Feature with the lock-on defaults; Complete following Captain’s explicit “task complete” acceptance on 2026-11-11. Captain subsequently authorized commit and local codex merge.
- Source: `/home/rob/projects/exercise-tracker/.task-worktrees/task-008`, branch `task/008-history-progress`, base codex `e3bd365`.
- Home remains codex `e3bd365` with active task/current-state/handoff context only. Application, design/spec/decision and tests stay in the 008 source. Other implementation worktrees/stashes/missing registrations are preserved. No task commit/merge/push/deploy authorized.
## Delivered
Real History replaces its placeholder: From/To date and recorded-period filters, Refresh/Retry, Clear filters, newest-first date disclosures, read-only saved actuals/notes/daily body weight, compatible exercise series/metric selection, latest vs previous values/change, recorded highs, and separate body-weight trend. SVG plots have readable HTML date/scale labels and accessible exact-value lists; missing points break lines and one point does not invent a comparison. Date row details mount only when opened. Existing header/clock/navigation and dark styling remain.
Counts describe recorded completed/draft rows, never completion of a whole prescribed workout. Notes-only/weight-only observations are labelled. Calculations use saved definitions, actual loads/counts and completed rows; body weight/timed work have no rep-load volume. Display the formula, raw per-row/known session totals, zero/partial/missing/overflow distinctions, longest continuous and cumulative hangs separately. Alternate representations are not double-counted: emom-total takes precedence even as a draft; originals remain in excluded disclosures. Legacy data has no period/definition/completion snapshot, so original totals are not reinterpreted. If detailed data exists on the same date/exercise, legacy stays at date level excluded; otherwise it is a separate Earlier records group. Legacy and changed measurement/equipment/format/count/load-field modes do not share detailed comparison series.
One consistent readonly transaction validates performanceEntries/strengthEntries/workoutDetails. Invalid/unsupported data fails visibly without modification or silent empty success. No writes, schema/backup/dependency/programme changes, editing/deleting history, timers, coaching, calories or streaks. Date filters apply to daily weight; period filters do not split it.
Design and math brief: docs/TASK-008_UI.md. Contract: TASK-008 section in docs/SPEC.md. Durable decision: ADR-023. Candidate overview describes History; home overview stays the integrated baseline until authorized merge.
## Validation
- Final full suite: 234/234 tests across 22 files pass with `npm test -- --maxWorkers=1`, including the final rendering and legacy weight-only UI cases. Earlier focused rendering/async checks also passed.
- Final lint/build and no-launch source preflight `--check 008` pass. Context validation: 0 warnings; whitespace and diff review against e3bd365 pass.
- New calculation/storage/UI/async coverage includes mixed/saved/asymmetric-side loads, bars, zeros, drafts/missing loads, timed work, continuous/cumulative hangs, duplicate representations, legacy unknowns, overflow, compatibility separation/order, notes/weight-only observations, readonly transaction/data preservation, invalid/unavailable storage, empty/loading/filter/detail/chart/retry/refresh and late-response cancellation. Existing tests are retained.
- No independent browser/console/network/desktop/mobile/keyboard review claimed. Captain explicitly accepted the candidate; TASK-008 is Complete. No independent agent visual review is claimed. No agent runner/browser/server/manual snapshot launch or session cleanup.
## Captain manual test
From project home:
```bash
./scripts/testtask.sh 008
```
Expected source: `/home/rob/projects/exercise-tracker/.task-worktrees/task-008`. The isolated fresh profile initially has no history. Use Today/Week to save actual performance on two dates for the same exercise/period, including zero external weight and a partial later entry. Enter session/exercise notes and daily weight on suitable dates. In History:
1. Confirm newest-first dates, completed/draft/notes-only/weight-only labels; expand dates and check exact reps, component loads/counts, durations and notes. Browsing must not save or change entries.
2. Filter date range and Morning/Afternoon, check an invalid/reversed range and empty matches, Clear filters and Refresh. Daily weight is shared and follows date range rather than period.
3. Select a compatible exercise/metric; compare latest/prior values and recorded high with original actuals. Volume formula/raw totals must match completed actuals. Two saved sessions enable a comparison; one point remains explicitly one point. Open exact recorded values.
4. Save two afternoon hang attempts (e.g. 60 and 75 sec): longest is 75, cumulative is 135, not a continuous 135-sec achievement. Check daily weight has its own chart and is excluded from load volume.
5. At desktop/320px, check readable chart labels/scales/values, wrapping rows/notes/filter labels, no horizontal overflow, keyboard focus/order, date and progress selectors, disclosures and existing navigation/clock.
Legacy/minute overlap, weight-only originals, failure/cancellation and arithmetic overflow have automated fixtures; do not claim manually seeded old data or fault injection. Captain alone launches/stops real testtask. Do not edit snapshots. TASK-008 is accepted/Complete and authorized for local commit/merge.