Charge par série : pyramide, montée en charge gardée pour la fois suivante (R2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-23 01:45:28 +01:00
co-authored by Claude Opus 5.5
parent 06a00ab3bb
commit 615348fed3
23 changed files with 406 additions and 33 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ export function warmupPlan(state, session) {
const mode = trackingFor(item, state.trackingOverrides[key]);
// Pas de séries d'approche pour un exercice sans charge (étirement, gainage…).
if (!LOADED_MODES.includes(mode)) return null;
const target = state.workingLoads[key]?.loadKg ?? 0;
// Charge par série : on approche la première série, pas la plus lourde.
const target = state.workingLoads[key]?.setsKg?.[0] ?? state.workingLoads[key]?.loadKg ?? 0;
if (!target || target <= 0) {
return {