feat(receipt-import): add refresh categories endpoint and UI integration

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Nils-Johan Gynther
2026-05-03 10:48:06 +02:00
parent 6503d29801
commit b2eb870ec7
7 changed files with 79 additions and 16 deletions
@@ -41,4 +41,12 @@ class ProfileRepository {
);
return UserProfile.fromJson(data);
}
Future<void> refreshCategories() async {
final token = await _ref.read(authStateProvider.future);
await guardedApiCall(
_ref,
() => _apiClient.postJson(ReceiptImportApiPaths.refreshCategories, body: {}, token: token),
);
}
}