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:
2026-03-01 20:44:45 +01:00
parent 7789e7177d
commit fcf642af2a
8 changed files with 358 additions and 79 deletions
+2 -2
View File
@@ -11,8 +11,8 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<title>Gravl - Träning</title>
<script type="module" crossorigin src="/assets/index-DLV768U5.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-VYqTaBQ1.css">
<script type="module" crossorigin src="/assets/index-kl2SjtTw.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-D0xrERyI.css">
</head>
<body>
<div id="root"></div>