04-05: Reset to Original feature - custom workouts can be reverted to program versions
- Added reset button (refresh icon) to custom workout cards - Implemented confirmation dialog to prevent accidental resets - Integrated with DELETE /api/custom-workouts/:id endpoint - Added CSS styling: reset button, success message, modal dialog - Added refresh icon to SVG library - Frontend build successful Changes: - frontend/src/pages/WorkoutSelectPage.jsx (reset flow logic) - frontend/src/App.css (170 new lines for reset/modal styling) - frontend/src/components/Icons.jsx (refresh icon) - Checkpoint updated with task completion metadata
This commit is contained in:
+16
-9
@@ -1,13 +1,20 @@
|
||||
{
|
||||
"lastRun": "2026-03-01T17:38:00+01:00",
|
||||
"lastRun": "2026-03-01T20:42:00+01:00",
|
||||
"status": "completed",
|
||||
"phase": "04-workout-modification",
|
||||
"activeTask": "04-03-frontend-workout-edit",
|
||||
"tasksCompleted": ["01-input-ux", "02-flexible-sets", "03-design-polish", "04-01-schema-migration", "04-02-backend-api", "04-03-frontend-workout-edit"],
|
||||
"nextTask": "04-04-visual-distinction",
|
||||
"agentSession": "claude-code-frontend",
|
||||
"agentType": "claude-code-local-exec",
|
||||
"spawnTime": "2026-03-01T17:38:00+01:00",
|
||||
"result": "Phase 04-03 complete. Edit workflow implemented: ExercisePicker modal, swap/add/remove exercise flows, fork confirmation dialog, API integration (POST/PUT custom-workouts). All success criteria met. Ready for 04-04.",
|
||||
"notes": "Previous attempt hit Gemini quota limit. Recovered at 17:38. Advancing to 04-04: Add visual distinction badges (custom vs program) on WorkoutSelectPage."
|
||||
"activeTask": "04-05-reset-to-original",
|
||||
"tasksCompleted": ["01-input-ux", "02-flexible-sets", "03-design-polish", "04-01-schema-migration", "04-02-backend-api", "04-03-frontend-workout-edit", "04-04-visual-distinction", "04-05-reset-to-original"],
|
||||
"nextTask": "04-06-persistence-improvements",
|
||||
"agentSession": "local-exec",
|
||||
"agentType": "gravl-pm-cron",
|
||||
"spawnTime": "2026-03-01T20:42:00+01:00",
|
||||
"result": "Phase 04-05 complete. Reset to Original feature fully implemented. Changes: 1) Added refresh button to custom workout cards (visible only on 'Anpassad' workouts). 2) Implemented handleResetClick + handleConfirmReset flow with confirmation dialog ('Är du säker? Dina ändringar kommer att försvinna...'). 3) DELETE /api/custom-workouts/:id endpoint verified (exists in backend). 4) Added CSS styling: .reset-btn (orange icon button with hover effects), .success-message (green slide-down animation), .modal-overlay/.modal-dialog/.modal-btn (reusable confirmation dialog). 5) Added refresh icon to Icons.jsx SVG library. Frontend build successful with no errors.",
|
||||
"notes": "Task 04-05 complete. Custom workouts can now be reset to original program versions. User gets confirmation dialog before deletion. UI updates show badge change from 'Anpassad' to 'Program' after reset. Next: 04-06 (persistence improvements or advanced features like workout export/backup).",
|
||||
"filesModified": [
|
||||
"frontend/src/pages/WorkoutSelectPage.jsx",
|
||||
"frontend/src/App.css",
|
||||
"frontend/src/components/Icons.jsx"
|
||||
],
|
||||
"buildStatus": "success",
|
||||
"buildTime": "3.59s"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user