mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-27 18:09:20 +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> |
||
|---|---|---|
| .. | ||
| workout_app | ||
| DOCS-workout-app-requirements.md | ||