aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/atoms/decks.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-15 17:36:13 +0900
committernsfisis <nsfisis@gmail.com>2026-02-15 17:36:13 +0900
commit84be23571d0e52f28abe52371939ce551e998760 (patch)
tree0122f749ebc87b9c02af985de3f69f7e6b9e4e39 /src/client/atoms/decks.ts
parentcbb45c8776444e90f26d27e53241cf5a9ba5ec4f (diff)
downloadkioku-84be23571d0e52f28abe52371939ce551e998760.tar.gz
kioku-84be23571d0e52f28abe52371939ce551e998760.tar.zst
kioku-84be23571d0e52f28abe52371939ce551e998760.zip
feat(deck): add progress bar showing review/total ratio on deck list
Add totalCardCount and reviewCardCount to deck API responses and display a progress bar on the home page for each deck with cards. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/client/atoms/decks.ts')
-rw-r--r--src/client/atoms/decks.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/atoms/decks.ts b/src/client/atoms/decks.ts
index a0e569f..8c8397f 100644
--- a/src/client/atoms/decks.ts
+++ b/src/client/atoms/decks.ts
@@ -8,6 +8,8 @@ export interface Deck {
description: string | null;
dueCardCount: number;
newCardCount: number;
+ totalCardCount: number;
+ reviewCardCount: number;
createdAt: string;
updatedAt: string;
}