diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-31 01:29:39 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-31 01:29:39 +0900 |
| commit | c1d24e24449808e4235fa586fbeb5760a36bc6bb (patch) | |
| tree | fb829349a2a6b33b5cf63f52d089efac24e1ec7b /src/client/sync/push.test.ts | |
| parent | 264c64090070dc87c4b61077934929e80d4d0142 (diff) | |
| download | kioku-c1d24e24449808e4235fa586fbeb5760a36bc6bb.tar.gz kioku-c1d24e24449808e4235fa586fbeb5760a36bc6bb.tar.zst kioku-c1d24e24449808e4235fa586fbeb5760a36bc6bb.zip | |
feat(client): add note-related tables to client IndexedDB
Add LocalNoteType, LocalNoteFieldType, LocalNote, and LocalNoteFieldValue
interfaces and tables to the client database for Anki-compatible note
system. Update LocalCard interface with noteId and isReversed fields.
Includes Dexie schema version 2 with upgrade handler for existing cards.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/client/sync/push.test.ts')
| -rw-r--r-- | src/client/sync/push.test.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/sync/push.test.ts b/src/client/sync/push.test.ts index 911a8d3..a3ff154 100644 --- a/src/client/sync/push.test.ts +++ b/src/client/sync/push.test.ts @@ -77,6 +77,8 @@ describe("pendingChangesToPushData", () => { { id: "card-1", deckId: "deck-1", + noteId: null, + isReversed: null, front: "Question", back: "Answer", state: CardState.Review, @@ -128,6 +130,8 @@ describe("pendingChangesToPushData", () => { { id: "card-1", deckId: "deck-1", + noteId: null, + isReversed: null, front: "New Card", back: "Answer", state: CardState.New, |
