Compare commits
2 Commits
673560a249
...
edb85d4f64
| Author | SHA1 | Date | |
|---|---|---|---|
| edb85d4f64 | |||
| e4cfd0fd1c |
@@ -44,6 +44,8 @@ test/ one test file per src module, plus a build test
|
||||
docs/
|
||||
thumbdrive/README.txt executor's one-page instructions (copied to the drive)
|
||||
PLAN.md original plan
|
||||
HANDOFF.md notes on open issue #20 (save writes a 0-byte file) and the pending decision on download-by-default
|
||||
null.html, null.withWorkflow.html committed sanitized sample copies (secrets erased via `sanitize.js`); null.withWorkflow.html includes a sample capture workflow
|
||||
```
|
||||
|
||||
Git-ignored on purpose: `*.pdf`, `data/` (plaintext working copies with real secrets), `dist/`, `node_modules/`.
|
||||
@@ -74,7 +76,7 @@ A **visual sequence** (`kind: 'sequence'`, numbered `frames` of image + text wit
|
||||
- **Capture online, merge offline (issue #28):** `build.js` also writes `capture.html` (modules `crypto, images, capture, version` + `src/capture-app.js`, no document, no payload, no storage). It captures walkthroughs and exports an encrypted bundle: `src/capture.js` (`sealBundle`, `openBundle`, `validateBundle`, `destinations`), the blob uses magic `"FC"` 0x01 via the `magic` argument of `encrypt`/`decrypt`, so bundles and documents can't be confused. The main app's **Import captures…** (`importCaptures()` in `app.js`) opens a bundle, lets the user choose a destination per walkthrough, and `importWalkthrough()` in `ops.js` adds each as a sequence. Nothing is written until Save; the bundle file is never modified. Annotation happens after import.
|
||||
- **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. If the write throws `NotAllowedError`/`SecurityError` (Chrome creates an empty file, then refuses the write; seen on a COSMIC/Wayland desktop with portal dialogs, issue #20), `save()` drops the handle and downloads `final-wishes.html` instead, with an explanatory status. "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.
|
||||
|
||||
@@ -114,5 +116,5 @@ No database. The document is a JSON object, encrypted and embedded in the HTML f
|
||||
- **Blob size:** images are embedded in the encrypted payload and make the file bigger and saves slower.
|
||||
- **Skipped test:** one test in `test/model.test.js` is skipped unless the gitignored `data/seed.json` exists.
|
||||
- **Browser coverage:** features were verified in headless Chromium only; Firefox and Safari drop and paste are untested.
|
||||
- **Open work:** issue #8 (security clean-up) remains open. It is the owner's own tasks: rotating exposed secrets, refreshing stale data and keeping a second encrypted copy.
|
||||
- **Open work:** issue #20 (in-place save refused by Chrome on one machine; see `HANDOFF.md`) is open, with a pending choice to make download the default save. Issue #8 (security clean-up) remains open. It is the owner's own tasks: rotating exposed secrets, refreshing stale data and keeping a second encrypted copy.
|
||||
- **Git history:** commit `9fa6096` contains a PIN that matched a real one from the source material. It was removed from the code in `7a81637` but not from history, so treat it as exposed.
|
||||
|
||||
Reference in New Issue
Block a user