add proper persistence expirations and collapse the connection section by default

This commit is contained in:
Fabian Freund committed 2026-07-30 14:01:37 +02:00
1 parent f1de9b420b
commit da6a4e751e
10 files changed
+42 -4

No files matched your search

@@ -113,6 +113,9 @@ class SmallWebSessionController extends _$SmallWebSessionController {
final persistFuture = persist(
ref.watch(riverpodDatabaseStorageProvider),
key: 'SmallWebSessionState',
options: const StorageOptions(
cacheTime: StorageCacheTime(Duration(days: 30)),
),
encode: (state) => jsonEncode(
(state.value ?? SmallWebSessionState.initial(SmallWebSourceKind.kagi))
.toJson(),