Add Supa account and search changes

This commit is contained in:
Fabian Freund
2026-05-22 18:10:22 +02:00
parent 3a19865b2e
commit 51289f1266
374 changed files with 54061 additions and 5013 deletions
@@ -99,11 +99,17 @@ class BangDataRepository extends _$BangDataRepository {
}
Stream<List<SearchHistoryEntry>> watchSearchHistory({required int limit}) {
return ref
final query = ref
.read(bangDatabaseProvider)
.definitionsDrift
.searchHistoryEntries(limit: limit)
.watch();
.searchHistoryEntries(limit: limit);
return () async* {
// Emit a direct read first so Recent Searches is populated immediately
// on app start instead of waiting for the next bang_history write.
yield await query.get();
yield* query.watch();
}();
}
Future<void> increaseFrequency(BangKey key) {