screen-locker/stronglift_replacement/workout_app/test
Krzysztof kuhy Rudnicki 74be875900 workout_app: offline-first workout sync
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>
2026-11-27 17:09:54 +01:00
..
models workout_app: deload after a training gap at load 2026-11-21 00:11:54 +01:00
sandbox workout_app: drop geolocator for LocationManager 2026-11-20 23:33:40 +01:00
screens workout_app: offline-first workout sync 2026-11-27 17:09:54 +01:00
services workout_app: offline-first workout sync 2026-11-27 17:09:54 +01:00
ui Move workout_app to Flutter 3.50 material_ui 2026-11-16 08:54:33 +01:00
widgets Fix gap deload tile test label lookup 2026-11-21 00:11:54 +01:00
app_root_dialog_test.dart Move workout_app to Flutter 3.50 material_ui 2026-11-16 08:54:33 +01:00
fake_audio_platform.dart workout_app: run the break countdown in a foreground service with notifications 2026-09-13 20:28:36 +02:00
fake_break_service.dart Add set haptics, finish chime, sound switch 2026-11-01 21:46:09 +01:00
fake_path_provider.dart workout_app: run the break countdown in a foreground service with notifications 2026-09-13 20:28:36 +02:00
fake_pc_pairing.dart workout_app: send finished workout to the PC instantly; PC link pairing; summary <100 ms 2026-10-09 19:08:22 +02:00
fake_platform_location.dart workout_app: drop geolocator for LocationManager 2026-11-20 23:33:40 +01:00
fake_run_engine.dart Host the run in the foreground service 2026-11-17 20:59:06 +01:00
fake_run_service.dart Host the run in the foreground service 2026-11-17 20:59:06 +01:00
fake_run_uploader.dart WIP run screen 2026-11-10 16:12:59 +01:00
fake_secure_storage.dart Add phone-workout GitHub sync via shared crdt_sync (Workstream C) 2026-07-11 00:06:59 +02:00
firebase_backend_google_test.dart Tests can no longer write the live desktop Firebase credential 2026-09-27 08:35:18 +02:00
flutter_test_config.dart workout_app: offline-first workout sync 2026-11-27 17:09:54 +01:00
google_sign_in_backend_test.dart Swap google_sign_in for google_account_token 2026-11-10 16:48:04 +01:00
icon_finders.dart Move workout_app to Flutter 3.50 material_ui 2026-11-16 08:54:33 +01:00
main_lifecycle_test.dart Move workout_app to Flutter 3.50 material_ui 2026-11-16 08:54:33 +01:00
pc_poke_contract_test.dart workout_app: send finished workout to the PC instantly; PC link pairing; summary <100 ms 2026-10-09 19:08:22 +02:00
run_controller_rig.dart Adapt run host to the real recorder API 2026-11-17 21:08:45 +01:00
run_host_rig.dart Fix run-mode gates: logs, file caps, coverage 2026-11-17 22:35:32 +01:00
run_persist_rig.dart Persist runs: tests, trims, adapter coverage 2026-11-17 21:28:45 +01:00
run_recorder_persist_rig.dart Fix run-mode gates: logs, file caps, coverage 2026-11-17 22:35:32 +01:00
run_test_fixtures.dart One-mode run, pace target, idle map 2026-11-10 18:47:53 +01:00
run_watchdog_rig.dart Fix run-mode gates: logs, file caps, coverage 2026-11-17 22:35:32 +01:00
text_free_guard_test.dart Move workout_app to Flutter 3.50 material_ui 2026-11-16 08:54:33 +01:00
text_free_guard.dart Guard workout app screens against painted words 2026-11-11 01:28:49 +01:00
text_free_widgets_guard_test.dart Drop gaming from credit toast and poke 2026-11-16 16:13:46 +01:00
widget_test.dart Move workout_app to Flutter 3.50 material_ui 2026-11-16 08:54:33 +01:00