From 84be23571d0e52f28abe52371939ce551e998760 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 15 Feb 2026 17:36:13 +0900 Subject: 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 --- src/client/pages/HomePage.test.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/client/pages/HomePage.test.tsx') diff --git a/src/client/pages/HomePage.test.tsx b/src/client/pages/HomePage.test.tsx index 3d15777..de7a768 100644 --- a/src/client/pages/HomePage.test.tsx +++ b/src/client/pages/HomePage.test.tsx @@ -94,6 +94,8 @@ const mockDecks = [ description: "Common Japanese words", dueCardCount: 5, newCardCount: 0, + totalCardCount: 100, + reviewCardCount: 60, createdAt: "2024-01-01T00:00:00Z", updatedAt: "2024-01-01T00:00:00Z", }, @@ -103,6 +105,8 @@ const mockDecks = [ description: null, dueCardCount: 0, newCardCount: 0, + totalCardCount: 0, + reviewCardCount: 0, createdAt: "2024-01-02T00:00:00Z", updatedAt: "2024-01-02T00:00:00Z", }, @@ -256,6 +260,8 @@ describe("HomePage", () => { description: null, dueCardCount: 0, newCardCount: 0, + totalCardCount: 0, + reviewCardCount: 0, createdAt: "2024-01-01T00:00:00Z", updatedAt: "2024-01-01T00:00:00Z", }; @@ -336,6 +342,8 @@ describe("HomePage", () => { description: "A new deck", dueCardCount: 0, newCardCount: 0, + totalCardCount: 0, + reviewCardCount: 0, createdAt: "2024-01-03T00:00:00Z", updatedAt: "2024-01-03T00:00:00Z", }; -- cgit v1.3-1-g0d28