screen-locker/stronglift_replacement
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
..
workout_app workout_app: offline-first workout sync 2026-11-27 17:09:54 +01:00
DOCS-workout-app-requirements.md Adopt the four markdown namespaces and gate them 2026-08-24 15:53:42 +02:00