mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-27 19:09:21 +01:00
A finished workout's record now lands in a local crdt log (workout_log.json) before any network call. Every sync tick pushes that log, so a failed or unconfigured push goes out with the next tick (home open, app resume, a 5-minute WorkoutResync retry). The re-push carries the same record and clock; the PC credits once per type:date anyway. Every tick and every live history read merges what it pulled into the same log, so PC records stay readable offline and after a restart. History shows local rows plus cached synced rows at once, then refreshes from the live read in the background. Ticks run one at a time, each cut off after 2 min so a hung request cannot block the queue. Bug-class-check: stronglift_replacement/workout_app/test/services/workout_sync_offline_test.dart, test/screens/workout_finish_keeps_record_test.dart, test/screens/history_offline_test.dart Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| github_mirror_screen_widgets.dart | ||
| github_mirror_screen.dart | ||
| history_screen_charts.dart | ||
| history_screen_data.dart | ||
| history_screen_load.dart | ||
| history_screen_painter.dart | ||
| history_screen_planned.dart | ||
| history_screen_runs.dart | ||
| history_screen_tiles.dart | ||
| history_screen.dart | ||
| home_screen_cards.dart | ||
| home_screen_launch.dart | ||
| home_screen_navigation.dart | ||
| home_screen_sync.dart | ||
| home_screen.dart | ||
| manual_workout_actions.dart | ||
| manual_workout_form_parts.dart | ||
| manual_workout_screen.dart | ||
| run_detail_screen.dart | ||
| run_screen_numbers.dart | ||
| run_screen_parts.dart | ||
| run_screen_pulse.dart | ||
| run_screen_state.dart | ||
| run_screen.dart | ||
| settings_screen_actions.dart | ||
| settings_screen_deload.dart | ||
| settings_screen_exercise_list.dart | ||
| settings_screen_exercise_sections.dart | ||
| settings_screen_pc_link.dart | ||
| settings_screen_rows.dart | ||
| settings_screen_sandbox.dart | ||
| settings_screen_sections.dart | ||
| settings_screen_sound.dart | ||
| settings_screen_widget.dart | ||
| settings_screen.dart | ||
| workout_screen_body.dart | ||
| workout_screen_breaks.dart | ||
| workout_screen_dialogs.dart | ||
| workout_screen_finish.dart | ||
| workout_screen_intents.dart | ||
| workout_screen_session.dart | ||
| workout_screen_taps.dart | ||
| workout_screen.dart | ||