Standardize editor and remove autosave
Created by: jedmund
Summary
- Replace autosave infrastructure with manual save (Cmd+S and save buttons)
- Add
beforeunloadguards to warn about unsaved changes - Delete dead form components that imported a nonexistent
Editor.svelte - Add
EditorHandletype for consistent editor instance interfaces - Fix
ProjectFormby removing brokeneditorRefand addingStatusDropdownwith save guards
Changes
-
Deleted:
SimplePostForm.svelte, autosave store/controller, and related dead code (~2300 lines removed) - Updated: Post edit/new pages to use manual save flow with Cmd+S support
-
New:
EditorHandletype incomposer/types.tsfor typed editor refs -
Updated:
ProjectForm.sveltewith working status dropdown and save guards
Test plan
-
Verify Cmd+S saves posts correctly -
Verify unsaved changes trigger beforeunload warning -
Verify post creation and editing work without autosave -
Verify project form status changes work correctly