Skip to content

Add a post-workout recap with strength changes and new bests (#77) - #82

Merged
NeoLorenzo merged 3 commits into
mainfrom
claude/fix-77-workout-recap-f4b9ee
Oct 17, 2026
Merged

NeoLorenzo merged 3 commits into
mainfrom
claude/fix-77-workout-recap-f4b9ee

Conversation

@NeoLorenzo

Copy link
Copy Markdown
Owner

Closes #77 (first slice).

What changes

  • Recap after every completed workout. A mobile-first screen shows:
    • a session summary: date, exercises, completed working sets, and duration only when it's reliable;
    • each exercise's estimated 1RM change against the previous comparable session;
    • whether a lift is a new historical best or just better than last session.
  • No composite score. The summary is a transparent count, for example "2 improvements · 1 new best". Tonnage is never used.
  • Comparable session (Normalize canonical equipment identity across gyms and separate equipment from exercise identity #22 rules): the same exercise with the same canonical equipment, at any gym. Rows without equipment are compared only within the same gym. Grouping reuses My Data's series helpers. Per-dumbbell units come from the recorded equipment.
  • Labels: rows read "Exercise · Equipment", for example "Chest Press · Smith Machine".
  • Also included: recaps can be reopened from Session History and shared as text or an image card. The gym name is left out of shared output.
  • No database changes. The recap is computed client-side from data the existing RLS already allows. Calculations live in the pure, tested workout-recap.js. Decisions are recorded in docs/POST_WORKOUT_RECAP.md.

Validation

npm run agent:check passes locally, including the DB stage (234 tests). The share sheet hasn't been tried on a real phone.

Deploying

Frontend only; no migration.

After a workout completes, a recap shows the session summary, each
exercise's e1RM change against the previous comparable session (same
exercise and canonical equipment, any gym), and new historical bests.
No composite score. Recaps can be reopened from Session History and shared.

Closes #77.
# Conflicts:
#	README.md
#	app.js
#	package.json
#	service-worker.js
With #5 landed, a reopened completed session that is saved again returns to
Session History, and a discarded correction is restored there. Only a normal
workout conclusion opens the post-workout recap. Update the wiring tests and
the recap doc to describe the combined behavior.
@NeoLorenzo
NeoLorenzo merged commit a739f99 into main Oct 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a post-workout recap with strength changes, PRs, and optional session scoring

1 participant