aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/dev/architecture.md
AgeCommit message (Collapse)Author
2026-02-08feat(study): use seeded PRNG for deterministic card shuffle ordernsfisis
Shuffle order is now fixed within a study day by seeding mulberry32 with the study day boundary timestamp (3:00 AM rollover). Co-Authored-By: Claude Opus 4.6 <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-04refactor(client): migrate state management from React Context to Jotainsfisis
Replace AuthProvider and SyncProvider with Jotai atoms for more granular state management and better performance. This migration: - Creates atoms for auth, sync, decks, cards, noteTypes, and study state - Uses atomFamily for parameterized state (e.g., cards by deckId) - Introduces StoreInitializer component for subscription initialization - Updates all components and pages to use useAtomValue/useSetAtom - Updates all tests to use Jotai Provider with createStore pattern 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31docs: update architecture.md with Note-based data modelnsfisis
Add documentation for the Anki-compatible Note system: - Note-Card architecture overview with entity relationships - NoteType, NoteFieldType, Note, NoteFieldValue data models - Updated Card model with note_id and is_reversed fields - API endpoints for note types and notes - Template rendering explanation Also mark completed tasks in roadmap.md. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30feat: remove Anki import featurensfisis
Remove the unused Anki import functionality including parser, tests, and CLI script. Update documentation to reflect removal. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12chore(dev): update architecture.mdnsfisis
2025-12-07feat(client): remove registration pagensfisis
2025-12-06feat(dev): change architecture and directory structurensfisis
2025-11-30setup pnpm and tscnsfisis
2025-11-30prepare docsnsfisis