mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-07-04 13:23:15 +02:00
Manual sync left a large window in which local edits had not reached the remote, and a reinstalled device only recovered after a manual sync. Make sync automatic so the GitHub repo (the durable store) stays near-current and recovery is near-automatic. - Pull on launch (once settings load) so a reinstalled device pulls its old changeset back without user action. - Push when the app is backgrounded (AppLifecycleState.paused) so edits leave the device promptly. Lifecycle-based, not per-keystroke, to keep CPU/battery and GitHub API usage low. - Best-effort: silent, skips when unconfigured, single-flight guard so a launch sync and a background sync never overlap; failures are swallowed (the manual Sync button still surfaces errors). 100% line coverage maintained. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| capture_screen_test.dart | ||
| fake_note_repository.dart | ||
| github_client_test.dart | ||
| github_device_auth_test.dart | ||
| markdown_view_test.dart | ||
| note_detail_screen_test.dart | ||
| note_editor_test.dart | ||
| note_repository_test.dart | ||
| note_template_test.dart | ||
| note_test.dart | ||
| notes_list_screen_test.dart | ||
| notes_markdown_test.dart | ||
| settings_screen_test.dart | ||
| sync_service_test.dart | ||
| sync_settings_test.dart | ||