From 83be5ccd5d64c64f65c7efbfb9feb94ab0f75ce6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 7 Dec 2025 19:24:18 +0900 Subject: feat(client): add sync queue management for offline sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement SyncQueue class to manage pending changes for offline sync: - Track unsynced decks, cards, and review logs from IndexedDB - Manage sync status (idle, syncing, error) with listener support - Persist last sync version and timestamp to localStorage - Provide methods to mark items as synced after push - Apply pulled changes from server to local database 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/client/sync/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/client/sync/index.ts (limited to 'src/client/sync/index.ts') diff --git a/src/client/sync/index.ts b/src/client/sync/index.ts new file mode 100644 index 0000000..6f75a29 --- /dev/null +++ b/src/client/sync/index.ts @@ -0,0 +1,9 @@ +export { + SyncQueue, + SyncStatus, + syncQueue, + type PendingChanges, + type SyncQueueListener, + type SyncQueueState, + type SyncStatusType, +} from "./queue"; -- cgit v1.2.3-70-g09d2