Closed
Labels
agentclaimed by the BetterFit work loopclaimed by the BetterFit work loop
Description
Part of #5. Continues the catalogue swap work merged in #73 and #76.
Add an EquipmentSwapManager.applySwap(workout:workoutExerciseId:newExercise:) overload that selects a WorkoutExercise.id, so a caller can replace the second occurrence of a repeated exercise without touching the first.
- Replace only the selected entry's exercise while preserving its ID, sets and notes and all workout metadata.
- Return false without mutation when the workout entry is missing, including an empty workout.
- Keep the existing exercise-ID overload and its first-match behaviour compatible.
- Cover repeated entries, missing IDs, metadata preservation and both APIs with unit tests, and document the distinction in the API reference.
This slice changes core package behaviour only. App UI, suggestion result types, movement equivalence and load adjustment remain follow-up work. Leave parent #5 open.
Metadata
Metadata
Assignees
Labels
agentclaimed by the BetterFit work loopclaimed by the BetterFit work loop
Activity
johnnyhuy commentedon Nov 14, 2026
agent claim: agent/issue-78-entry-equipment-swap @ 0287167