Add lawyer's view: a third field level and print mode (Fixes #29)

Fields and steps are Normal, Lawyer or Secret. Lawyer is stored as
secret: true plus lawyer: true, so older builds treat it as a plain secret.
Print offers masked, lawyer and complete views.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 20:15:47 -05:00
parent edb85d4f64
commit eeba5d00db
10 changed files with 218 additions and 51 deletions

View File

@@ -26,7 +26,7 @@ The passphrase is prompted for (hidden) or read from `FW_PASSPHRASE`.
- `src/version.js` the version shown at the top (`Ver YYMMDDX`); `npm run bump` advances it by hand;
a pre-commit hook (`npm run hooks` once per clone) does it on every commit
that changes the app
- `src/print.js` print helpers (secret masking, header layout)
- `src/print.js` print helpers (secret masking in three views, header layout)
- `src/app.js` + `src/style.css` the UI, including the Print header panel
- `src/template.js` the HTML skeleton shared by `build.js` and in-page Save
- `docs/thumbdrive/` what goes on the drive alongside the HTML file
@@ -135,7 +135,7 @@ Standard, Online and Credit Union. Other kinds of section don't have them.
## Images
Any record can hold pictures (scans of documents, photos of a safe's
contents, a screenshot of where to click). They are another kind of field, so
they have a label, a **secret** checkbox, reorder arrows and a delete button
they have a label, a **Normal / Lawyer / Secret** choice, reorder arrows and a delete button
like any other field. In **Edit** mode, add one of three ways:
- **+ Add image...** in the record, then choose one or more files.
@@ -295,8 +295,13 @@ Documents made by older versions keep working: anything a newer version added
LastPass master password.
## Printing
**Print...** offers "Withhold secrets" (safe overview) and "Include
secrets" (full copy). Print on Letter paper with the browser's own
**Print...** offers "Withhold secrets" (safe overview), "Lawyer's view" and
"Include secrets" (full copy). Every field and step has a level in Edit mode:
**Normal** (always printed), **Lawyer** or **Secret**. Lawyer and Secret values
are both hidden on screen until **Show**. For a bank account, say, the name is
Normal, the account number Lawyer and the balance Secret: the overview prints
only the name, the lawyer's view adds the account number, and the full copy
prints all three. A lawyer's-view copy is still sensitive, so store it too. Print on Letter paper with the browser's own
"Headers and footers" turned off (that is separate from the document header
below). A full copy is as sensitive as the passwords on it: store it in the
fire safe and shred superseded copies. Page layout was checked by rendering