From ce9011bf351d9666bb2e81c92ae06a0eb1716d12 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 31 Dec 2025 13:25:42 +0900 Subject: feat(study): render note-based cards using template system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update StudyPage to support both legacy cards (direct front/back) and note-based cards (template rendering with field values). Add new CardForStudy type that includes note type templates and field values as a name-value map for efficient client-side rendering. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/server/routes/study.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/server/routes/study.ts') diff --git a/src/server/routes/study.ts b/src/server/routes/study.ts index ccb0692..9c16699 100644 --- a/src/server/routes/study.ts +++ b/src/server/routes/study.ts @@ -51,11 +51,7 @@ export function createStudyRouter(deps: StudyDependencies) { } const now = new Date(); - const dueCards = await cardRepo.findDueCardsWithNoteData( - deckId, - now, - 100, - ); + const dueCards = await cardRepo.findDueCardsForStudy(deckId, now, 100); return c.json({ cards: dueCards }, 200); }) -- cgit v1.2.3-70-g09d2