Add "Duplicate Mesocycle" feature to iterate on existing programs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Start at the MesocycleCard menu and mesocycle detail/edit view, the entry points named in the issue. Trace how mesocycles, split days, exercises, IDs, status, and dates are stored locally before deciding where duplication belongs. Done means a distinct offline copy opens in edit mode with copied configuration, reset history/status, a generated name, and an unchanged original.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
User Story
As a lifter,
I want to copy an existing mesocycle to create a new one,
So that I can keep exercises that work well for me while adjusting only what needs to change.
Background
Experienced lifters often want to iterate on their training programs rather than start from scratch each mesocycle:
- Keep what works: Certain exercises produce great results and should carry forward
- Swap what doesn't: Replace exercises that caused issues (joint pain, poor mind-muscle connection)
- Progressive programming: Slightly modify volume or exercise selection based on previous block's feedback
- Seasonal adjustments: Make minor tweaks for equipment availability or schedule changes
Currently, creating a new mesocycle requires configuring everything from scratch, even if 80-90% of the program would be identical to the previous one.
Acceptance Criteria
- Add a "Duplicate" or "Copy" action to existing mesocycles (on MesocycleCard or detail view)
- Create a new mesocycle with all settings copied:
- Split type and day names
- All exercises assigned to each split day
- Exercise order within each day
- Open the new mesocycle in edit mode immediately after duplication
- Auto-generate a name like "{Original Name} (Copy)" or "{Original Name} - Week X"
- Allow user to edit the name before or after creation
- The new mesocycle should be in "Not Started" status
- Original mesocycle remains unchanged
- Works fully offline
UI/UX Considerations
- Duplicate action should be accessible from:
- Mesocycle card menu (three dots / overflow menu)
- Mesocycle detail/edit view
- Clear indication that this creates a copy, not modifies the original
- Consider showing a brief "Copied from {name}" reference in the new mesocycle
- Toast notification confirming successful duplication
Technical Notes
- Core (free) feature - local-only operation
- New mesocycle gets a new unique ID
- Copy exercise references (exerciseId), not the exercises themselves
- Reset any workout history - new mesocycle starts fresh
- Consider whether to copy:
- ✅ Split configuration and exercises
- ✅ Mesocycle name (with suffix)
- ❌ Workout history/logs
- ❌ Start/end dates (user sets new dates)
- ❌ Completion status (always starts as not started)
User Flow
- User views their mesocycle list or a completed mesocycle
- User clicks "Duplicate" action
- New mesocycle is created with copied configuration
- User is taken to edit view of the new mesocycle
- User can:
- Rename the mesocycle
- Adjust exercises in any split day
- Remove/add exercises as needed
- User saves when ready
Out of Scope (for this issue)
- Merging multiple mesocycles
- Copying only specific split days between mesocycles
- Sharing/importing mesocycles from other users
- Version history or diff view between mesocycles
Related
- #71 - Copy exercises between splits within a mesocycle
- Mesocycle management workflow
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
copse-dev/agent-pane#2953 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Apertabug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
calcite-components needs triage refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Esri/calcite-design-system#15203 ·