Add Cancel to revert unsaved changes in a section

Reverts the section (or print header) on screen to the last open/save
and leaves edit mode.

Closes #11

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 18:24:26 -05:00
parent f5f05a3e26
commit d588e30b9b
5 changed files with 175 additions and 1 deletions

View File

@@ -40,6 +40,12 @@ After sealing, `data/seed.json` is still plaintext. Delete it (and see
- Chrome/Edge: pick the drive file once; later saves overwrite silently.
- Firefox/Safari: a new `final-wishes.html` downloads. Copy it over the
old one on the drive.
- **Cancel** (next to Save, edit mode only) throws away the unsaved
changes to the section on screen, back to how it was at the last open
or save, and leaves edit mode. It asks first if anything changed. It
works on the Print header page too. Other sections keep their unsaved
edits. A section you added this session is removed. Deleting or moving
sections is not undone by Cancel, and neither is a passphrase change.
3. Saving updates "Last update" and the per-record dates. "Last update" is
what the printed header shows. Editing the header settings themselves does
not change it.

View File

@@ -29,6 +29,8 @@ TO PRINT IT
IF YOU NEED TO CHANGE SOMETHING
Click "Edit", make the change, click "Done editing", then "Save".
Changed your mind? "Cancel" undoes the unsaved changes to the section
you are looking at.
Chrome and Edge ask where to save the first time: choose this drive and
the same file name, final-wishes.html, and agree to replace it.
Firefox downloads a new final-wishes.html to your Downloads folder