feat: muscle map Fatigue + Strength (detraining) views
Per-muscle fatigue (72h window, 36h half-life, .25/.5 bands) and retained strength (14d plateau, 28d half-life, .5 floor) views on the Stats page behind a Balance | Fatigue | Strength segmented control. Pure recovery.js module with fatiguedMuscles/detrainedMuscles hooks, owner-approved backward-compatible absolute-level BodyMap extension, 8 i18n keys across English fallback + 11 locale packs, mounted interaction tests.
This commit is contained in:
1 parent
551b072c54
commit
eeee4b461c
21 files changed
+1307
-35
No files matched your search
@@ -47,11 +47,13 @@ function View({ view, levels, onMuscle, selected }) {
|
||||
/**
|
||||
* <BodyMap load={{ chest: 12, … }} body="male" />
|
||||
* `load` is effective sets per muscle (see lib/muscles.js); shading is relative to
|
||||
* the hardest-worked muscle in that same load, so it always reads as a balance.
|
||||
* the hardest-worked muscle in that same load, so it always reads as a balance. Pass ordered
|
||||
* `{ at, level, exclusive? }` `thresholds` for a fixed absolute scale (recovery views use this
|
||||
* to keep their semantic bands stable); omitting it preserves the balance behavior.
|
||||
*/
|
||||
export default function BodyMap({ load = {}, body = 'male', onMuscle, selected, className = '' }) {
|
||||
export default function BodyMap({ load = {}, thresholds, body = 'male', onMuscle, selected, className = '' }) {
|
||||
const paths = useBodyPaths()
|
||||
const levels = levelsOf(load)
|
||||
const levels = levelsOf(load, thresholds)
|
||||
const g = paths && (paths[body] || paths.male)
|
||||
return (
|
||||
<div className={'bodymap ' + className}>
|
||||
|
||||
Reference in new issue
Block a user