Refresh OVERVIEW.md: ?reset=1 route, issue range (Refs #19)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 21:41:02 -05:00
parent 6048398c1e
commit c480ff113a

View File

@@ -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 | | Crypto | WebCrypto: PBKDF2-SHA256 (600,000 iterations) into AES-256-GCM |
| Build | `build.js`: concatenates `src/*.js`, no bundler, no dependencies | | 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. | | 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. 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) crypto.js encrypt / decrypt / passphrase rules (blob format below)
model.js document schema, validate(), section/record/field/sequence kinds model.js document schema, validate(), section/record/field/sequence kinds
ops.js pure edit helpers: add/move/remove, header, images, sequences, sub-tabs, 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 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 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 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. - **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. - **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`. **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. **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.