feat(profile): add local backup export/import UI (#84 F1/F2)

- F1: "Sauvegarde locale" panel in Profil (both signed-out/signed-in
  states, positioned per UX cadrage), "Exporter mes données" calling
  DataExportUseCase.exportAll() then handing the file to the system
  share sheet, with the exact UX success/error snackbars.
- F2: "Importer des données" picks a file, previews it, then confirms
  with the exact UX dialogs: simplified single-choice when there is no
  local data yet, Fusionner/Remplacer tout (with a destructive second
  confirmation) otherwise. All typed LocalBackupValidationError cases
  are mapped to their dedicated dialog copy, including the active
  workout session block.
This commit is contained in:
2026-07-22 13:54:35 +02:00
parent f7d32a34c2
commit 889f07cd1d
2 changed files with 454 additions and 1 deletions

View File

@ -227,6 +227,8 @@ final class _HomeScreenState extends State<HomeScreen> with RouteAware {
authUseCases: widget.bootstrap.authUseCases,
syncUseCases: widget.bootstrap.syncUseCases,
shareUseCases: widget.bootstrap.shareUseCases,
dataExportUseCase: widget.bootstrap.dataExportUseCase,
dataImportUseCase: widget.bootstrap.dataImportUseCase,
),
),
),