Update OVERVIEW.md for the Masked print view (Refs #31)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 14:00:58 -05:00
parent 90e8a3a850
commit 8d1e1846e6

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–#19 track the work. | | Hosting / issues | Gitea (`gitea.ericthered.tech`), `gt` CLI. Issues track the work (latest: #31). |
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.
@@ -80,7 +80,7 @@ A **visual sequence** (`kind: 'sequence'`, numbered `frames` of image + text wit
**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.
**Print.** Built only when Print is chosen and cleared on `afterprint`, so secrets don't linger in the DOM. It is a `<table>` whose `<thead>` holds the running header, which the browser repeats at the top of every page. Each section starts a new page (a section with sub-tabs gets a sub-heading per non-empty tab), records and sequence steps avoid page breaks inside them, and checklist items have tick boxes. The print dialog offers three views (issue #29): "withhold secrets" (default, mode `masked`), "lawyer's view" (`lawyer`: shows secrets flagged `lawyer: true`, still withholds plain secrets) "lawyer's summary" (`summary`, issue #30: `summaryGroups()` in `print.js` lists only records with lawyer-level text fields, each with just those fields, built by `printSummary()` in `app.js`) and "include secrets" (`complete`). `isHidden()`, `displayValue()`, `frameView()` and `usesView()` in `print.js` take the mode (a boolean still works: true is complete); `levelOf()`/`setLevel()` in `ops.js` keep the flags canonical and the edit UI uses a Normal/Lawyer/Secret select. Older builds read a lawyer-level item as a plain secret, which fails closed. `countByLevel()` feeds the dialog counts; `?reset=1` still erases lawyer-level values. Images are decoded before `window.print()`. **Print.** Built only when Print is chosen and cleared on `afterprint`, so secrets don't linger in the DOM. It is a `<table>` whose `<thead>` holds the running header, which the browser repeats at the top of every page. Each section starts a new page (a section with sub-tabs gets a sub-heading per non-empty tab), records and sequence steps avoid page breaks inside them, and checklist items have tick boxes. The print dialog offers five views (issues #29, #30, #31): "withhold secrets" (default, mode `masked`), "lawyer's view" (`lawyer`: shows secrets flagged `lawyer: true`, still withholds plain secrets), "lawyer's summary" (`summary`, issue #30: `summaryGroups()` in `print.js` lists only records with lawyer-level text fields, each with just those fields, built by `printSummary()` in `app.js`) "Masked" (`obscured`, issue #31: like complete, but `maskDigits()` in `print.js` turns every digit in a secret value, and in a secret frame's text and if-stuck note, into a bullet; secret images and secret frames with a picture are withheld, because a picture can't be masked) and "include secrets" (`complete`). Note the naming trap: the UI label "Masked" is mode `obscured`, because `masked` already meant withhold. `isHidden()`, `displayValue()`, `frameView()` and `usesView()` in `print.js` take the mode (a boolean still works: true is complete); `levelOf()`/`setLevel()` in `ops.js` keep the flags canonical and the edit UI uses a Normal/Lawyer/Secret select. Older builds read a lawyer-level item as a plain secret, which fails closed. `countByLevel()` feeds the dialog counts; `?reset=1` still erases lawyer-level values. Images are decoded before `window.print()`.
## Integrations ## Integrations