Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
docs(muscles): clarify zero-credit mappings
Emil Zapata7f7a560cc6b6
diff --git a/frontend/src/lib/exercise-muscle-batch-1.js b/frontend/src/lib/exercise-muscle-batch-1.jsindex d0a8b5429..7f398b02b 100644--- a/frontend/src/lib/exercise-muscle-batch-1.js+++ b/frontend/src/lib/exercise-muscle-batch-1.js@@ -14,9 +14,9 @@ export const OLYMPIC_LIFT_METADATA = Object.freeze(olympic)export { MACHINE_BATCH_2 }/**- * Reserved for owner-approved corrections. This layer is intentionally separate from the- * generated batch so a correction can replace a generated body part or muscle list without- * editing generated data. Explicit metadata on a user/custom exercise wins as well.+ * Populated owner-approved correction overlay, separate from the generated batches. These+ * corrections retain explicit zero-credit muscle associations without editing generated data.+ * Explicit metadata on a user/custom exercise wins as well.*/const completeWeights = weights => Object.freeze(weights)const overridesFor = (ids, muscleWeights) => Object.fromEntries(diff --git a/frontend/src/lib/strength-exercises.js b/frontend/src/lib/strength-exercises.jsindex 07e1b108f..ecdeb8c39 100644--- a/frontend/src/lib/strength-exercises.js+++ b/frontend/src/lib/strength-exercises.js@@ -150,9 +150,9 @@ export function strengthExerciseRows(S, now) {}/**- * Strength rows for the exercises whose logged snapshot includes `slug` (primary 1 /- * secondary 0.4 badge), each with the exercise's OWN decay and expected current 1RM - the- * tapped muscle filters the list, the row still speaks for the exercise.+ * Strength rows for exercises with positive resolved muscle credit for `slug`; catalogue+ * metadata takes precedence over saved snapshots when available. Each row keeps the exercise's+ * OWN decay and expected current 1RM - the tapped muscle filters the list, not the row's metrics.*/export function strengthExerciseRowsForMuscle(S, now, slug) {const seen = new Map()diff --git a/website/docs.html b/website/docs.htmlindex ef96bc0eb..fb196f094 100644--- a/website/docs.html+++ b/website/docs.html@@ -412,7 +412,11 @@the exercises that built it with their estimated 1RM.</li></ul>It also previews what a routine hits while you build it, and shows what you just- trained when you finish.</li>+ trained when you finish.+ <p>An explicit muscle credit of <b>0</b> retains the association metadata but contributes+ no effective sets, fatigue, per-muscle strength stimulus, last-trained recency or body-map+ training intensity for that muscle. This is separate from logging an exercise with zero+ load. Secondary muscle credit remains <b>0.4</b> when no override is specified.</p></li><li><b>Body-weight chart</b> with a goal line you set — gains and losses colored bywhether they move toward it.</li><li><b>PRs</b> detected as you train, listed per exercise.</li>