Pulls 'Open connection settings' (×2 in customize.dart), 'No target
selected' / 'Stay' / 'Leave' / 'Show experimental' /
'Connection Settings' / 'this trainer app' fallback in
trainer_connection_settings.dart, 'Not Supported on Web' toast and
'Recommended' badge in connection_method.dart, and the workout share
text in workout_summary_dialog.dart into the ARB.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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>
The separate MiniWorkoutPage is gone. All start/pause/stop actions now live
inside MiniWorkoutCard on the smart-trainer details page: a Play icon while
idle; a running timer + Pause/Resume + Stop icons while recording. On stop,
the post-workout summary opens as a shadcn AlertDialog (grid of stat tiles
with themed icons for duration, distance, avg/max power, cadence, speed,
avg/max HR) with Share and Open-folder actions, instead of pushing a
separate page. WorkoutsListPage remains a page for now.
start() mutates core.workoutRecorder.state, which MiniWorkoutCard on the
route below subscribes to via ValueListenableBuilder. Firing it inside
initState triggers a setState on that ancestor mid-build and crashes with
"cannot be marked as needing to build because the framework is already in
the process of building widgets". Deferring to a post-frame callback runs
the mutation after the current build completes.
Adds MiniWorkoutPage with elapsed-time display, 2×2 live metric grid,
and pause/resume/stop controls; includes WorkoutSummaryPage stub so the
branch stays green until Task 7.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>