Complete TASK-005 dated notes and daily body weight
This commit is contained in:
@@ -354,3 +354,15 @@ Adapter exports now use JSON envelope v3 and continue importing v1/v2 as well as
|
||||
### 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.
|
||||
|
||||
|
||||
## TASK-005 dated observations contract — 2026-11-11
|
||||
|
||||
This current contract supersedes earlier database/backup version descriptions for the TASK-005 candidate. Existing performance schemaVersion 1 and all original storage semantics remain unchanged.
|
||||
|
||||
- Session notes are optional plain text by local date and Morning/Afternoon period. Exercise notes are optional plain text by date/period/exercise ID, independent of aggregate/minute/legacy representation. These are dated observations, not permanent exercise-library instructions, per-set/minute notes or automatic previous-session suggestions. Limit 4000 characters; preserve entered text, treating blank/whitespace-only Save as removal.
|
||||
- Body weight is an optional finite positive decimal kg measurement once per local date, shared across both periods; blank Save removes it. It does not contribute external-load volume and is never copied from targets or previous sessions.
|
||||
- Each field has an independent explicit Save. Clear edits only its draft; Save confirms removal. Saving observations never saves/completes sets. Navigation follows existing discard-of-unsaved-draft behavior; late reads/save feedback cannot enter another date/period/exercise editor. Read failures disable overwriting and offer retry; write failures preserve drafts.
|
||||
- IndexedDB v4 adds `workoutDetails`, preserving all prior stores/records. Keys: `date:period:session-note`, `date:period:exerciseId:exercise-note`, `date:body-weight`. Values have `schemaVersion: 1`, `kind`, `date`, applicable `period`/`exerciseId` and either `text` or `weightKg`. Validate identity, record fields, values and key consistency.
|
||||
- JSON exports use envelope v4 with `workoutDetails`; imports accept v1/v2/v3/v4. Older envelopes contain no observation store; even an explicit old-format replacement preserves existing observations rather than inferring their deletion. V4 replacement covers all four stores atomically. Validate all records before mutation; duplicate/non-replacing import failures roll back all stores. Older app builds cannot open a v4 database or read v4 backups; retain this app version for restoring new data. No downgrade/rewrite of historical records and no backup UI in this task.
|
||||
- UI composition and state/accessibility/responsive specification: `TASK-005_UI.md`. Existing programme notes remain distinct from personal observations. History charts remain TASK-008; backup interface remains TASK-009.
|
||||
|
||||
Reference in New Issue
Block a user