aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/shared/card-generator.ts
AgeCommit message (Collapse)Author
2026-05-02refactor(notes): extract card generation into shared modulensfisis
Pull pure card-generation logic (template rendering and the initial FSRS state for new cards) out of the server note repository into src/shared/card-generator.ts so both server and client can call it. The server's note.create / createMany now delegate the rendering work to the shared function and only insert the resulting payload, preserving the existing behavior. Groundwork for offline-first note CRUD on the client. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>