feat(post-form): text-only draft persistence (U6)

Mirror text field values (incl. EasyMDE content) to localStorage on every
edit and restore them on load. Clear the draft only when the server confirms
a successful post (.notices.success) — the invariant that guarantees text
survives validation failures, save errors, and session expiry (login form
shown → form absent → draft left intact for post-reauth restore). Photos are
not persisted (File/Blob can't serialize); on restore an inline hint says
they need re-selecting.

Refs R19 (preserve-on-failure), R20, KTD6.
This commit is contained in:
2026-07-04 16:45:28 +02:00
parent 7f021ab114
commit 9a96d0f19e
2 changed files with 147 additions and 61 deletions
File diff suppressed because one or more lines are too long