aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/pages/DeckCardsPage.test.tsx
AgeCommit message (Collapse)Author
5 daysfeat(decks): add default note type setting per deckHEADmainnsfisis
Allow each deck to specify a default note type that is auto-selected when creating new notes. Includes DB schema migration, server API updates, sync layer support, and UI for editing the default in the deck settings modal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 daysfeat(cards): display FSRS difficulty level in card browse viewClaude
Show per-card difficulty (D: X.X) in the card list alongside existing metrics (reps, lapses). Hidden for unreviewed cards (difficulty = 0). https://claude.ai/code/session_019XoFbra6drKrZpHASUzKDq
2026-02-15feat(deck): add progress bar showing review/total ratio on deck listnsfisis
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>
2026-02-15fix(types): use CardStateType instead of number for card state fieldsnsfisis
Card and StudyCard interfaces used generic number for state, causing type errors when indexing Record<CardStateType, ...> maps. Also adds missing FSRS fields to client Card interface to match API response. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15feat(deck): display new card count on deck detail pagensfisis
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>
2026-02-12feat: 学習カード数の上限を撤廃Claude
REVIEW_CARDS_LIMIT(復習カード80枚制限)とnewCardsPerDay(1日の新規カード制限) を削除し、期日が来たすべてのカードを制限なく返すように変更。 削除した主な要素: - REVIEW_CARDS_LIMIT定数とカード取得時のlimitパラメータ - newCardsPerDayフィールド(DB schema, 型定義, Zod schema, sync, CRDT) - countDueNewCards, countDueReviewCards, findDueNewCardsForStudy, findDueReviewCardsForStudy(CardRepository) - countTodayNewCardReviews(ReviewLogRepository) - デッキルートからのReviewLogRepository依存 https://claude.ai/code/session_018hrEJ9vg3RPoeAPyEc17gS
2026-02-04refactor(ui): remove card count from note group headernsfisis
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01refactor(atoms): migrate to jotai-tanstack-query from custom reloadable atomsnsfisis
Replace custom createReloadableAtom/createReloadableAtomFamily with atomWithSuspenseQuery from jotai-tanstack-query, leveraging TanStack Query's built-in caching, invalidation, and Suspense support. - Add @tanstack/query-core and jotai-tanstack-query dependencies - Create shared QueryClient instance (src/client/queryClient.ts) - Migrate all data atoms (decks, cards, study, noteTypes) to atomWithSuspenseQuery - Update page components to use .data destructuring and queryClient.invalidateQueries() - Update all test files to use QueryClient for data hydration - Remove src/client/atoms/utils.ts (no longer needed) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20feat(deck): separate card list from deck detail pageClaude
Separate the card list view from the deck learning page to prevent users from seeing cards they are about to study. The deck detail page now shows only study statistics with a "Study Now" button and a "View Cards" link. - Add new DeckCardsPage component at /decks/:deckId/cards for managing cards - Simplify DeckDetailPage to show deck stats and navigation buttons - Update routing in App.tsx with proper route ordering - Add comprehensive tests for both pages