diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-15 16:45:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-15 16:45:35 +0900 |
| commit | cea7703ac440c38636ce2abd5baab35a23d05843 (patch) | |
| tree | 38de7bdf13a6b4b006319ee7800206eab9e35215 /src/client/pages/HomePage.test.tsx | |
| parent | 65fcf4111bc64267624b4e348bb704d006de5327 (diff) | |
| download | kioku-cea7703ac440c38636ce2abd5baab35a23d05843.tar.gz kioku-cea7703ac440c38636ce2abd5baab35a23d05843.tar.zst kioku-cea7703ac440c38636ce2abd5baab35a23d05843.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'src/client/pages/HomePage.test.tsx')
| -rw-r--r-- | src/client/pages/HomePage.test.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
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", }; |
