Reproduction
- Open a screenplay project with a configured
target_page_count (for example, 120).
- Open Project Settings, change the genre or pen name, and save.
- Read the project again:
target_page_count is now null.
Expected
Saving unrelated project metadata preserves the screenplay page-count target.
Evidence
On main at 54712ef, src/lib/components/ProjectSettingsDialog.svelte sends only author_pen_name, genre, description, and word_target in update_project_settings. src-tauri/src/commands/crud.rs unconditionally assigns project.target_page_count = settings.target_page_count, so the omitted optional field clears the persisted value.
Found while implementing #225. This behavior predates the writing-statistics feature.
Reproduction
target_page_count(for example, 120).target_page_countis now null.Expected
Saving unrelated project metadata preserves the screenplay page-count target.
Evidence
On main at 54712ef,
src/lib/components/ProjectSettingsDialog.sveltesends onlyauthor_pen_name,genre,description, andword_targetinupdate_project_settings.src-tauri/src/commands/crud.rsunconditionally assignsproject.target_page_count = settings.target_page_count, so the omitted optional field clears the persisted value.Found while implementing #225. This behavior predates the writing-statistics feature.