Commit Graph

10 Commits

Author SHA1 Message Date
05ffcc8561 Add sanitize.js: secret-free copy under a new passphrase (Refs #19)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 07:26:27 -05:00
a2fcc65759 Show the app version at the top of the page (Ver YYMMDDX)
Adds src/version.js, bump-version.js and a pre-commit hook that bumps the
version in commits that change the app.

Closes #15

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 19:01:33 -05:00
f5f05a3e26 Add images as a record field (drop, paste, import)
Images are downscaled, re-encoded and stored inside the encrypted document.

Closes #10

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 16:01:24 -05:00
70c384cdcb Add configurable running print header
The line printed on every page is now a header stored in the document as
header.fields: any number of Text / Last updated fields, each optionally
aligned left or right (at most one of each). Printed order is left,
unaligned, right. Edited from a Print header panel with live preview;
documents without a header use the previous title/last-update default.
The header is a repeating table header so it sits in flow and cannot
overlap body text, replacing the fixed-position footer.

Also add "Open your existing Final Wishes file" to the start screen so
data in an older encrypted file can be carried into a newer build.

Closes #9

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 13:23:31 -05:00
fec23c3e80 Add encrypted build and save flow
build.js seals a JSON document into the single-file HTML (passphrase from
a hidden prompt or FW_PASSPHRASE, 12 character minimum). In the page,
Save writes via the File System Access API when available and downloads
otherwise; Backup copy downloads final-wishes-YYYYMMDD.html; Ctrl+S and
Change passphrase are supported. Build and Save share assemble() in
template.js, replacing src/index.html. Tests confirm the built file
holds no plaintext and that the payload round-trips.

Closes #6

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 08:17:20 -05:00
e291ee75b6 Add print layout
Print dialog with withhold/include secrets modes, cover page with
contents, one section per page, non-splitting record blocks, TBD
highlighting that survives black and white, tick boxes on steps and
checklist items, and a per-page footer. Print content is built on demand
and cleared after printing. Pure display helpers live in print.js with
tests.

Closes #5

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 08:13:11 -05:00
d882debb9b Add viewer/editor UI
Passphrase unlock (or open a plain JSON file while no payload is
embedded), sectioned navigation, read-only cards with masked secret
fields and a reveal toggle, and an edit mode with add/remove/reorder for
sections, records, fields and items. Pure edit operations live in
ops.js with tests. DOM is built with textContent only.

Closes #4

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 08:10:21 -05:00
2c713f3a9b Add document data model and validation
Define the sections/records/items schema with secret-flagged fields and
a validator with tests. build.js bundles model.js. The PDF-derived seed
lives in the gitignored data/ directory.

Closes #3

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 08:04:03 -05:00
9fa6096a6c Add passphrase encryption module
PBKDF2-SHA256 -> AES-256-GCM via WebCrypto, with versioned blob header
authenticated as GCM additional data. Tests cover round trip, wrong
passphrase, tampering and malformed input. build.js bundles crypto.js
into the single-file output.

Closes #2

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 08:00:40 -05:00
fa6ba95d3e Scaffold project
Add src/ shell, build.js single-file bundler, package.json and
.gitignore (excludes PDFs, data/, dist/).

Closes #1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 07:57:25 -05:00