Repository navigation
Conversation
- WorkoutSession and WorkoutSet: a finished workout is saved whole from the phone, idempotent by clientId, and creates the ActivityLog so the feed, challenges and calories work unchanged - PRs (weight, estimated one-rep max, bodyweight reps) marked against earlier sessions; per-exercise history with Epley estimates - Plans run by session order: WorkoutPlan.nextSession advances on finish - Progression rules: double progression, steps capped at one equipment step or 5%, deloads after stalls or missed weeks, and holds for a big deficit, low protein or short sleep, each with an explanation the coach can repeat - Say it: common phrasings read by rules without a model call; the rest by the model, sharing Smart log's daily limit - Feed shows set and PR counts, never weights
- HealthMetric: HRV (SDNN or RMSSD, kept apart), resting heart rate, breathing rate, sleeping temperature, VO2max and menstrual flow - Imported workouts carry average heart rate and distance; calories use the device's figure, then Keytel et al. (2005), then METs, and record which in calorieMethod - A second sync with the same data changes nothing - Cycle data needs its own consent, is deleted when it's withdrawn, and never reaches the coach, the feed or coach memory - The coach sees recent recovery metrics against their 30-day average
- Workout screen: sets start at today's target with last time beside each, so a repeated set is one tap; rest timers by set type; supersets; plate and warm-up calculators; add, swap and reorder exercises; PRs as they happen; Say it - The workout in progress is kept on the phone; a finished one waits there and is sent with a persisted React Query mutation, so it survives being offline and a restart, and is only sent for the account it belongs to - Home and the plan show the next session by order, with Start workout, or Log as done for a run or class - Saved workouts open from the Activity tab with their sets; exercise history shows estimated 1RM or top weight over time - The feed shows set and PR counts - Backend: exercise search by movement, workout titles checked like names, and Say it's name lookup ignores spaces and hyphens
- Reads HRV (SDNN or RMSSD), resting heart rate, breathing rate, sleeping temperature (Apple's as a deviation from earlier nights), VO2max, and each workout's average heart rate and distance - Cycle data only after its own consent in GRIT; turning it off deletes it - Optionally writes logged meals' calories, macros and caffeine to Apple Health or Health Connect, updating and removing them with the log - The settings screen explains why each kind of data is read; the first sync imports two months; people who connected before are asked once for the new kinds - New Health Connect permissions and Apple's write description
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 6 from
docs/PLAN_PHASES_5_TO_9.md: set-by-set strength logging, progression rules, and a wider health import.Strength logging (6.1)
WorkoutSession/WorkoutSet. A finished workout is sent whole and saved once perclientId. It creates theActivityLog, so the feed, challenges, calories and streaks work unchanged.WorkoutPlan.nextSession), so a missed day doesn't skip a session.Progression rules (6.2)
Health data (6.3)
HealthMetric: HRV (SDNN or RMSSD, stored apart), resting heart rate, breathing rate, sleeping temperature, VO2max and menstrual flow.calorieMethodrecords which.consentCycleData), is deleted when that's withdrawn, and never reaches the feed, challenges, the coach or coach memory.Migration
20261108120000_phase6_strength_health. Additive, with RLS on the new tables; already applied to Supabase.Testing
main.