From c480ff113aed23283d13ae911230adf48bc23d28 Mon Sep 17 00:00:00 2001 From: Eric Bell Date: Mon, 23 Nov 2026 21:41:02 -0500 Subject: [PATCH] Refresh OVERVIEW.md: ?reset=1 route, issue range (Refs #19) Co-Authored-By: Claude Sonnet 5.5 --- OVERVIEW.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OVERVIEW.md b/OVERVIEW.md index f745779..692309f 100644 --- a/OVERVIEW.md +++ b/OVERVIEW.md @@ -15,7 +15,7 @@ The owner keeps accounts, documents, contacts, wind-down steps and similar life- | Crypto | WebCrypto: PBKDF2-SHA256 (600,000 iterations) into AES-256-GCM | | Build | `build.js`: concatenates `src/*.js`, no bundler, no dependencies | | Tests | `node --test` (built-in runner). Browser behavior was checked by hand with headless Chromium over CDP, which is not part of the repo. | -| Hosting / issues | Gitea (`gitea.ericthered.tech`), `gt` CLI. Issues #1–#18 track the work. | +| Hosting / issues | Gitea (`gitea.ericthered.tech`), `gt` CLI. Issues #1–#19 track the work. | There are no npm dependencies and no CDN or network calls at runtime. @@ -30,7 +30,7 @@ src/ crypto.js encrypt / decrypt / passphrase rules (blob format below) model.js document schema, validate(), section/record/field/sequence kinds ops.js pure edit helpers: add/move/remove, header, images, sequences, sub-tabs, - revert-to-saved (Cancel), delete-section message + revert-to-saved (Cancel), delete-section message, clearSecrets print.js pure print helpers: secret masking, header layout, frame rules, secret count images.js image helpers (PNG/JPEG sniffing, sizing, data URLs) + browser import pipeline template.js assemble(): the HTML skeleton shared by build.js and in-page Save @@ -65,6 +65,8 @@ A **visual sequence** (`kind: 'sequence'`, numbered `frames` of image + text wit - **Sub-tabs:** `ops.js` holds the pure logic (`tabsOf`, `entriesInTab`, `moveToTab`, `moveWithin`, `removeSubsection`, `printGroups`). The records stay in one array, and the tab bar filters them. The shown tab is in `state.tabs` (not saved). Up/down moves a record past its nearest neighbour in the same tab. Deleting a tab sends its records to General. Print writes one sub-heading per non-empty tab. - **Images:** drag and drop, clipboard paste and file picker all feed `importFiles()`. Files are sniffed by their first bytes, downscaled to at most 1600 px and re-encoded, which strips metadata, and stored as data URLs with a limit of about 3 MB each. +- **Reset (`?reset=1`):** opening the file with `?reset=1` or `#reset=1` shows a banner after unlock offering to erase every secret-flagged field value and secret frame (`clearSecrets()` in `ops.js`, count from `countSecrets`). Labels, structure and flags stay. It is read live (`resetRequested()`), with a `hashchange` listener to re-offer, and `state.resetOffered` dismisses it. Nothing is written until Save, so make a Backup copy first. It's meant for working on layout on a less safe machine. + **Save.** Uses the File System Access API (`showSaveFilePicker`, handle reused) where available, otherwise a Blob download. `assemble()` rebuilds the full HTML from the page's own CSS and JS plus a fresh encrypted payload. "Backup copy" downloads `final-wishes-YYYYMMDD.html`. **Upgrading app code, keeping data.** A file runs the code it was saved with. On the start screen, "Open your existing Final Wishes file" extracts the `#payload` from an older `.html`, unlocks it with the passphrase, and Save then writes it out with the newer code.