From 38b8fc0e9927c4146b4c8b309b2bcc644abd63d0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 25 Feb 2026 23:02:35 +0900 Subject: feat(decks): add default note type setting per deck Allow each deck to specify a default note type that is auto-selected when creating new notes. Includes DB schema migration, server API updates, sync layer support, and UI for editing the default in the deck settings modal. Co-Authored-By: Claude Opus 4.6 --- src/client/sync/crdt/repositories.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/sync/crdt/repositories.test.ts') diff --git a/src/client/sync/crdt/repositories.test.ts b/src/client/sync/crdt/repositories.test.ts index f7b75b3..c400b22 100644 --- a/src/client/sync/crdt/repositories.test.ts +++ b/src/client/sync/crdt/repositories.test.ts @@ -35,6 +35,7 @@ describe("crdtDeckRepository", () => { userId: "user-1", name: "Test Deck", description: "A test deck", + defaultNoteTypeId: null, createdAt: now, updatedAt: now, deletedAt: null, @@ -378,6 +379,7 @@ describe("entitiesToCrdtDocuments", () => { userId: "user-1", name: "Deck 1", description: null, + defaultNoteTypeId: null, createdAt: now, updatedAt: now, deletedAt: null, @@ -389,6 +391,7 @@ describe("entitiesToCrdtDocuments", () => { userId: "user-1", name: "Deck 2", description: "Second deck", + defaultNoteTypeId: null, createdAt: now, updatedAt: now, deletedAt: null, @@ -415,6 +418,7 @@ describe("mergeAndConvert", () => { userId: "user-1", name: "Remote Deck", description: null, + defaultNoteTypeId: null, createdAt: now, updatedAt: now, deletedAt: null, @@ -436,6 +440,7 @@ describe("mergeAndConvert", () => { userId: "user-1", name: "Original", description: null, + defaultNoteTypeId: null, createdAt: now, updatedAt: now, deletedAt: null, @@ -476,6 +481,7 @@ describe("mergeAndConvert", () => { userId: "user-1", name: "Same", description: null, + defaultNoteTypeId: null, createdAt: now, updatedAt: now, deletedAt: null, -- cgit v1.3-1-g0d28