mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-27 18:29:18 +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> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| lib | ||
| linux | ||
| scripts | ||
| test | ||
| tools | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| DOCS-workout-app-context.md | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
workout_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.