From cea7703ac440c38636ce2abd5baab35a23d05843 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 15 Feb 2026 16:45:35 +0900 Subject: feat(deck): display new card count on deck detail page Add newCardCount alongside Total and Due stats in the deck detail view, queried from cards with state=New via a new countNewCards repository method. Co-Authored-By: Claude Opus 4.6 --- src/client/pages/HomePage.test.tsx | 4 ++++ 1 file changed, 4 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 179c649..3d15777 100644 --- a/src/client/pages/HomePage.test.tsx +++ b/src/client/pages/HomePage.test.tsx @@ -93,6 +93,7 @@ const mockDecks = [ name: "Japanese Vocabulary", description: "Common Japanese words", dueCardCount: 5, + newCardCount: 0, createdAt: "2024-01-01T00:00:00Z", updatedAt: "2024-01-01T00:00:00Z", }, @@ -101,6 +102,7 @@ const mockDecks = [ name: "Spanish Verbs", description: null, dueCardCount: 0, + newCardCount: 0, createdAt: "2024-01-02T00:00:00Z", updatedAt: "2024-01-02T00:00:00Z", }, @@ -253,6 +255,7 @@ describe("HomePage", () => { name: "No Description Deck", description: null, dueCardCount: 0, + newCardCount: 0, createdAt: "2024-01-01T00:00:00Z", updatedAt: "2024-01-01T00:00:00Z", }; @@ -332,6 +335,7 @@ describe("HomePage", () => { name: "New Deck", description: "A new deck", dueCardCount: 0, + newCardCount: 0, createdAt: "2024-01-03T00:00:00Z", updatedAt: "2024-01-03T00:00:00Z", }; -- cgit v1.3-1-g0d28