feat(online): statut de synchronisation discret et action manuelle (ticket #68)

Affiche le statut de synchronisation sur profile_screen.dart et
home_screen.dart avec une action de déclenchement manuel, en
formulation neutre (jamais "Erreur"/"Échec" ni couleur alarmante :
"Synchronisation en attente", "Nouvelle tentative automatique").
flutter pub get OK, dart format appliqué, analyze propre (mêmes infos
préexistantes), 127/127 tests verts, build APK debug validé.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 22:05:55 +02:00
parent 7b63792a85
commit 557bfbb37e
4 changed files with 409 additions and 25 deletions

View File

@ -125,6 +125,10 @@ final class SyncUseCases {
final Clock clock;
final String deviceId;
Future<SyncMetadataSnapshot> currentStatus() {
return metadataRepository.read();
}
Future<SyncRunSummary> synchronize({required bool manual}) async {
final token = await tokenStore.readToken();
if (token == null) {