From f7d32a34c241c4ebddfc4911620efd073291a573 Mon Sep 17 00:00:00 2001 From: Blomios Date: Wed, 22 Jul 2026 13:54:30 +0200 Subject: [PATCH] feat: expose hasAnyLocalData on DataImportUseCase Thin pass-through to the existing LocalDataBackupRepository.hasAnyUserData() port, needed by F2 to decide whether the import confirmation can be simplified per UX cadrage (#84) when the device has no local data yet. --- lib/application/use_cases.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/application/use_cases.dart b/lib/application/use_cases.dart index bf9aeba..17992da 100644 --- a/lib/application/use_cases.dart +++ b/lib/application/use_cases.dart @@ -188,6 +188,8 @@ final class DataImportUseCase { return codec.preview(bytes); } + Future hasAnyLocalData() => repository.hasAnyUserData(); + Future importFrom( Uint8List bytes, { required LocalBackupImportMode mode,