diff options
| author | Claude <noreply@anthropic.com> | 2026-01-12 08:57:51 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-01-12 08:57:51 +0000 |
| commit | 887630365ff0531a0556cb71a6b1be0956c41d06 (patch) | |
| tree | f0cebd927c2292a40f123a694c6aa561768ad7a3 /src/server/routes/study.test.ts | |
| parent | f8e4be9b36a16969ac53bd9ce12ce8064be10196 (diff) | |
| download | kioku-887630365ff0531a0556cb71a6b1be0956c41d06.tar.gz kioku-887630365ff0531a0556cb71a6b1be0956c41d06.tar.zst kioku-887630365ff0531a0556cb71a6b1be0956c41d06.zip | |
feat(deck): show due card count on deck list page
Display a badge with the number of cards due for study today next to
each deck name on the home page. The count is fetched along with deck
data from the API to minimize additional network requests.
Diffstat (limited to 'src/server/routes/study.test.ts')
| -rw-r--r-- | src/server/routes/study.test.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/routes/study.test.ts b/src/server/routes/study.test.ts index e2fb457..a5ac817 100644 --- a/src/server/routes/study.test.ts +++ b/src/server/routes/study.test.ts @@ -25,6 +25,7 @@ function createMockCardRepo(): CardRepository { softDelete: vi.fn(), softDeleteByNoteId: vi.fn(), findDueCards: vi.fn(), + countDueCards: vi.fn(), findDueCardsWithNoteData: vi.fn(), findDueCardsForStudy: vi.fn(), updateFSRSFields: vi.fn(), |
