Commit Graph
13 Commits
Author SHA1 Message Date
pj 14eb3c4427 fix(persist): flush pending save on navigate-away and quit
Edits are saved on an 800ms debounce, so leaving a book within that
window lost the latest changes. Flush a dirty book before openBook /
closeBook swap state (covers All books, open-another, Cmd+N), and add a
window close-request handler that saves before destroying on quit.

Claude-Session: https://claude.ai/code/session_01RzTWrLiy4zGuw2hZSQGamk
2026-06-22 13:16:33 -04:00
pj 0bc3e36ee6 feat(editor): persist active chapter per book
Remember which chapter was open per book and restore it on reopen,
falling back to the first chapter when the saved id is no longer valid.

Claude-Session: https://claude.ai/code/session_01RzTWrLiy4zGuw2hZSQGamk
2026-06-22 13:15:01 -04:00
pj 72d698e427 changes 2026-06-22 12:40:29 -04:00
pj 7cc36e3e40 changes 2026-06-22 09:56:20 -04:00
pj fa1c89af63 changes 2026-06-21 14:37:02 -04:00
pj 0e0d334f6a changes 2026-06-20 23:46:10 -04:00
pj c86d5a7d5c changes 2026-06-20 19:48:18 -04:00
pj 734ded73ac changes 2026-06-20 19:23:28 -04:00
pj 9991d318ba feat(theme): persistent light/dark toggle in the titlebar 2026-06-20 18:46:43 -04:00
pj a6404847d1 refactor(store): nullable open book with open/close for library nav 2026-06-20 15:09:13 -04:00
pj da94acc0ec feat(setup): book metadata and settings panel 2026-06-20 13:02:30 -04:00
pj aedf8b8a63 feat(io): save and open .margin projects with cmd-s and cmd-o 2026-06-20 12:54:01 -04:00
pj c76e5b0a5f feat(model): add document model and book store 2026-06-20 12:28:43 -04:00