mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-04 12:42:18 +01:00
Persists the WorkoutSummary alongside each saved workout as a sidecar JSON file (workout-…fit.json) so the past-workouts list can render duration, distance, avg power, and avg HR per row without parsing the FIT. Reading is best-effort — older workouts without a sidecar fall back to the previous filename-only layout. Splits WorkoutsListPage into a Scaffold-wrapped page (kept for backwards compatibility / desktop nav) and a chrome-free WorkoutsList widget that the MiniWorkoutCard now mounts inside openSheet at the bottom edge. WorkoutsList renders a small header and the "open folder" shortcut when its showHeader flag is set so it stays self-contained inside the sheet. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>