Capture walkthroughs online in a separate tool, merge them in offline (Fixes #28)

build.js now also writes capture.html: no document, no payload, no storage.
It captures walkthroughs and exports an encrypted .fwcapture bundle (magic
FC, own passphrase). The main app's Import captures... opens a bundle and
places each walkthrough in a chosen section or sub-tab; nothing is written
until Save and the bundle is never modified.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 15:41:19 -05:00
parent 273c714fc4
commit 673560a249
12 changed files with 443 additions and 9 deletions

View File

@@ -262,6 +262,16 @@ export function addCapture(seq, image) {
return f;
}
// Merge a captured walkthrough ({ title, captured, frames: [{ image }] }) from a capture
// bundle (issue #28) into `section`, as a new visual sequence. Returns the sequence.
export function importWalkthrough(doc, section, wt, tabId = '') {
const q = addSequence(doc, section, tabId);
q.title = String(wt.title || '').trim() || 'Captured walkthrough';
q.captured = wt.captured;
for (const f of wt.frames) addFrame(q, f.image);
return q;
}
// ---- what a section holds (for the delete confirmation) ----
export function sectionContents(section) {
const c = { records: 0, items: 0, sequences: 0, images: 0, text: false };