mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-18 19:03:41 +00:00
Implement unified storage architecture
- Replace fragmented storage backends with single IndexedDBStorageBackend - Create multi-store StorageBackend interface (storeName parameter) - Remove old backends: IndexedDBBackend, LocalStorageBackend, SessionIndexedDBBackend, WebExtensionStorageBackend - Remove old repositories: ProviderKeysRepository, SessionRepository, SettingsRepository - Simplify AppStorage to directly expose storage methods (getSetting/setSetting, getProviderKey/setProviderKey) - Create SessionsRepository for session-specific operations - Update all consumers to use new simplified API - Update example app to use new storage architecture - Benefits: 10GB+ quota (vs 10MB chrome.storage), single database, consistent API
This commit is contained in:
parent
b3cce7b400
commit
bbbc232c7c
19 changed files with 421 additions and 998 deletions
|
|
@ -30,13 +30,7 @@ export class SessionListDialog extends DialogBase {
|
|||
this.loading = true;
|
||||
try {
|
||||
const storage = getAppStorage();
|
||||
if (!storage.sessions) {
|
||||
console.error("Session storage not available");
|
||||
this.sessions = [];
|
||||
return;
|
||||
}
|
||||
|
||||
this.sessions = await storage.sessions.listSessions();
|
||||
this.sessions = await storage.sessions.getAllMetadata();
|
||||
} catch (err) {
|
||||
console.error("Failed to load sessions:", err);
|
||||
this.sessions = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue