From 9a1ce4983e41db81186e253ce924f3f598a01a4d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 23:59:07 +0000 Subject: [PATCH 1/5] feat(v42): branching tours - hotspots can jump to any page A tour hotspot gets a target (a page id, or null for the next step). New DOM-free src/state/tour-core.js normalizes tours and turns targets into step indexes when the steps are collected, so blank pages and deleted targets fall back to the next step. The shared player follows goto, retraces visited steps on Back and preloads jump targets; the share manifest keeps a goto only when it is a step inside the tour. The Tour panel gets a Goes to picker, the board draws the jumps as dashed arrows (not stored), and schema goes 25 to 26. Also fixes two older bugs found on the way: the callout position picker stored the old side, and dragging a page tile other than the one being edited filed the editor's design under the dragged page. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016tciSQnGXkzRKmBjqMtyUC --- editor/index.html | 5 +- scripts/regression-tests.mjs | 50 +++++++++++++++++++ src/features/board.js | 77 +++++++++++++++++++++++++++++ src/features/pages.js | 8 ++- src/features/palette.js | 4 ++ src/features/share-links.js | 1 + src/features/tour-export.js | 5 +- src/features/tours.js | 64 ++++++++++++++++++++++-- src/render/tour-overlay.js | 11 ++++- src/share/share-core.js | 12 +++-- src/share/tour-player.js | 47 ++++++++++++++---- src/state/serialize.js | 9 ++-- src/state/state.js | 4 +- src/state/tour-core.js | 95 ++++++++++++++++++++++++++++++++++++ src/styles.css | 11 +++++ 15 files changed, 373 insertions(+), 30 deletions(-) create mode 100644 src/state/tour-core.js diff --git a/editor/index.html b/editor/index.html index 838dcae..75a0403 100644 --- a/editor/index.html +++ b/editor/index.html @@ -1253,7 +1253,7 @@

Watermark