pkg:clod/com.clodhub/guided-tour 0.11.0 Step-by-step lessons that pause play while a player learns: steps, highlighting, pausing and progress kept on the device, with the lesson content supplied by the application. `guided-tour` teaches a person to use an application a little at a time. A lesson is a short list of steps; each step has a heading, a sentence and the name of the element on screen it is about. When the application asks for a lesson (`want`), it is shown once ever, after any already waiting: the screen is dimmed except a circle of light round the step's element, and a card on the other half of the screen gives the sentence with progress dots and Skip and Next (the last step ends the lesson). While a lesson is open `holding` is true so the host can hold play for everyone. Progress is kept on the device, one flag per lesson, along with whether the person wants to be guided at all (asked once). A lesson belongs to a screen and goes when that screen does. The mechanism is here and tested; the lessons are data the application supplies, and nothing in the component knows what the application is about. A small neutral sample lesson set (`tests/fixtures/lessons.json`) is the test data. Examples On first use the application asks whether the person is a beginner; yes turns guidance on and the home lesson shows its steps one at a time, each ringing a different button, until Got it; the same lesson never shows again. At a table the first time something happens (a first bet, the first community cards) a short lesson opens, play is held for everyone while it is open, and it goes if the person leaves the screen. A "reset hints" button calls `reset` and every lesson shows again. Package URL: pkg:clod/com.clodhub/guided-tour@0.11.0 Class: Guided tour (pkg:clod/com.clodhub/guided-tour-class@1.1.0): Step-by-step lessons that point at parts of the screen. Any component of this class can fill a recipe slot that asks for it. Category presentation/onboarding; https://clodhub.com/classes/guided-tour-class.txt; 0 other components of this class: https://clodhub.com/components.txt?class=pkg%3Aclod%2Fcom.clodhub%2Fguided-tour-class Provides (1) - guided-tour (com.clodhub/guided-tour 1.0.0): Step-by-step lessons that pause play while a player learns. The mechanism (steps, highlighting, pausing, progress kept on the device) is here; what the lessons say and which element each step rings stay with the application. Progress is one storage key per lesson (prefix plus lesson id) and one key for whether the person wants to be guided. The card uses the controls component's panel and button, text comes through the language component's lookup, and the storage is where the preferences component keeps the device's choices. Web: implementation/web/tour-model.ts, tour-view.ts and tour.css. Apple: TourModel, Tour, TourOverlay and the tourAnchor and tourHost modifiers. Android: TourModel, LessonsJson, Tour, TourOverlay, TourHost and Modifier.tourAnchor in package com.clodhub.tour. components that use it: https://clodhub.com/components.txt?requires=com.clodhub%2Fguided-tour Requires (3) - controls (com.clodhub/controls 1.0.0): Buttons, icon buttons, toggles, panels, banners, dialogs and help pages that draw with the theme's tokens. Text is always supplied already translated. Web: implementation/web (DOM elements styled by controls.css from the theme CSS variables). Apple: SwiftUI views in implementation/apple/Sources. Android: Compose functions in package com.clodhub.controls. components that provide it: https://clodhub.com/components.txt?provides=com.clodhub%2Fcontrols - preferences (com.clodhub/preferences 1.0.0): What a person chose on this device: language, sound, camera and microphone, kept on the device only. TypeScript (web/preferences.ts, tagged typescript) over string storage; Swift final class DevicePreferences over UserDefaults (PreferenceStorage) and Kotlin class com.clodhub.preferences.DevicePreferences over SharedPreferences (PreferenceStorage), with Bool values, tagged swift and kotlin. The native classes expose the six preferences as read-write properties (DevicePreferences.) and call didChange(name) after each change. components that provide it: https://clodhub.com/components.txt?provides=com.clodhub%2Fpreferences - language (com.clodhub/language 1.0.0): Language selection and message lookup for every platform, and a generator of platform string resources for English, French, German and Spanish. Web: implementation/web/i18n.ts. Apple: implementation/apple/Sources/Language.swift. Android: package com.clodhub.i18n. Generator: implementation/scripts/generate.py. components that provide it: https://clodhub.com/components.txt?provides=com.clodhub%2Flanguage Settings (0) No installer settings. The application supplies a lessons file (`{ "format": 1, "lessons": [ { "id", "screen"?, "steps": [ { "title", "text", "anchor" } ] } ] }`), where `title` and `text` are translation keys, the messages for them, and the storage keys if it wants its own (default `tut.` for each lesson and `beginner` for whether the person wants guidance; the value `true` means guided, `false` means not, anything else means not yet asked). Depends on components: none How to use in a recipe A recipe uses it through a slot of class Guided tour (pkg:clod/com.clodhub/guided-tour-class 1.1.0), naming pkg:clod/com.clodhub/guided-tour as the slot's preferred component or substituting it for another component of the class. The recipe connects what it provides (guided-tour) to the slots that use it. It fills what the component needs (controls, preferences and language) from slots whose components provide them. It has no settings. - as a slot in recipe.json components: {"id":"guided-tour","class":{"name":"pkg:clod/com.clodhub/guided-tour-class","version":"1.1.0","digest":"f37ad0655e8251f18443e893cb5b54ff73a7a07f1d598a06bfe66870e633f02f"},"preferred":{"name":"pkg:clod/com.clodhub/guided-tour","version":"0.11.0"}} - in place of another component of the class: clod fetch guided-tour@0.11.0 --store store --from https://clodhub.com, then clod design RECIPE@VERSION --store store --answers answers.json --substitute SLOT=guided-tour@0.11.0 --out definition.json Used by recipes: pkg:clod/com.clodhub/ourpoker-recipe 0.13.0 (slot guided-tour) For developers: how an application uses it Web: `createTour({ lessons: parseLessons(text), storage: localStorage, translate })`, where `translate` is the `language` component's `lookup` over the current messages (a missing key shows as itself, so a gap is visible); `mountTour({ tour, ui: controls, translate })` draws the overlay using the `controls` component's `panel` and `button` and finds elements marked `data-guide="name"`; link `web/tour.css` after the controls' CSS. Ask `tour.setEnabled(true or false)` once, from the application's own question (the recipe asks whether the person is a beginner); call `tour.want(id)` when a lesson's moment comes (a screen shown, an event happened), `tour.screenChanged(name)` when the screen changes, and hold play for everyone while `tour.holding()` (`onChange` tells you). Apple: compile `TourModel.swift` anywhere and `TourOverlay.swift` in UIKit targets with the theme and controls Swift files; mark elements with `.tourAnchor("name")` and put `.tourHost(tour, buttons:)` over the content; `UserDefaultsTourStorage` keeps progress. Android: add `TourModel.kt`, `LessonsJson.kt` and `TourOverlay.kt` to a Compose module with the theme and controls Kotlin files; `LessonsJson.parse`, `PreferencesTourStorage`, `Modifier.tourAnchor` and `TourHost`. Only the storage shape of the `preferences` component (get, set, remove of a string key) is shared today: its fixed list of preference names has no guidance flag, so the tour keeps its two kinds of key through the same storage object (see the report: a `guided` preference name could be added). Accounts and services None. Local drawing and device storage only; no accounts, network or deployment. How it is checked Node tests check lesson validation (every fault), the choice to be guided (unasked, true, false, and nothing shown until true), a lesson running step by step and being remembered when it ends, skip, lessons waiting their turn and not being asked for twice, leaving a screen dropping its lessons even the one showing without marking them seen, the host forbidding the tour, reset, other storage keys, missing messages showing their key, the circle round an element clipped to the screen and which half the card takes, and the overlay itself against a stand-in page: the ring and card placement, following a moving element, staying last on the page, buttons driving the tour and reporting their action, and removal on destroy; and that the OpenRPC interface's id and anchor patterns agree with the validator, its keys match the defaults, its step shape matches the tour's, and every method it lists is an exported web function or tour operation. When the controls component is installed next to it, its real `panel` and `button` are also used to build the card. The Apple check compiles and runs `tests/apple/main.swift` for macOS, refusing faulty lesson files and replaying a 15 step script and 7 ring geometries identical to the TypeScript output, then type-checks the Swift (with the theme and controls Swift) for the iOS simulator. The Android check replays the same script (`tests/android/Expected.kt`); kotlinc was not available where this was written, so it has not been run, and `TourOverlay.kt`, `LessonsJson.kt` need the Android and Compose libraries and are compiled by the application's Gradle build. Pixels are not compared. - `node --test tests/web.test.ts` (web, required-local; tools: node 26.5) - `python3 tests/native.py apple` (apple, platform; tools: python3 3.12, swiftc 6.4, xcrun 72) - `python3 tests/native.py android` (android, platform; tools: python3 3.12, kotlinc 2.2, java 26.0) Updates Patch updates replace files only. The component keeps device flags only (one per lesson and one for guidance, under keys the application chooses); removal deletes its files and the application's imports, and leaves those flags in the device's storage (the application may remove them). Tags: guided, onboarding, presentation, tour Targets: client android, ios, macos, tvos, web, windows; server none Publisher: George McIntyre (george-mcintyre) Guardians: Level N Ltd (guardian key 08775f20) Source: clodhub/guided-tour release v0.11.0; digest sha256:d7eb1458198843f2e934018a20fc39398c8fd4583874f6ad6039069d4c013397 Release: features Line 0.11: no security releases Quality: Integration-tested, certified Known vulnerabilities: none known (checked 2026-11-26 at OSV); https://clodhub.com/api/components/guided-tour/0.11.0/vulnerabilities Downloads: 1 in 30 days; 1 of this version Images (3): https://clodhub.com/images/91982fc10b0624a783c2974e60b58adcdf8adc69f23d2d1952678baacf0ca844.png (web, The first step of a lesson: the menu in a circle of light and the card below with Skip and Next); https://clodhub.com/images/8dabb238e344d9d8f8e48afca8808a4afad61f7b455a16a6e234c613a97f3584.png (web, The second step on the search field, in the lounge look); https://clodhub.com/images/5849bb026579d87b3d2e5744d4e761a370b2758689f11239e3975d0cb6b1aa05.png (web, The last step on the profile, with Got it in place of Next) Classes: https://clodhub.com/classes.txt; this component as JSON: https://clodhub.com/api/components/guided-tour/0.11.0 Bundle download: GET https://clodhub.com/api/components/guided-tour/0.11.0/bundle returns a link valid for one hour Implements: pkg:clod/com.clodhub/guided-tour-class@1.1.0 f37ad0655e8251f18443e893cb5b54ff73a7a07f1d598a06bfe66870e633f02f com.clodhub/guided-tour 1.0.0 entry modules: android android/src/main/java, ios apple/Sources, macos apple/Sources, tvos apple/Sources, web web/index.ts, windows web/index.ts shared behaviour suites: shared Platforms: android, ios, macos, tvos, web, windows Toolchains: android >=8.0.0, ios >=17.0.0, java >=17.0.0 <27.0.0, kotlin =2.4.21, macos >=14.0.0, node >=26.5.0 <27.0.0, swift =6.4.2, tvos >=17.0.0 Frameworks: android-ui: androidx.compose.ui =1.10.0 Styles: scope global; 31 namespaces; 0 conflicts Licence: Apache-2.0; 0 upstream sources, 2 exact dependencies, 57 files (listed on the details page) Suitable for jobs: guided-tour profile any: cost none; load none; regions any; compliance none Notes: Pure library; no provider limits apply. Data migration: this component keeps no data Maintainers: Level N Ltd; https://github.com/clodhub/guided-tour/issues; updates https://github.com/clodhub/guided-tour/releases (manual) What you download guided-tour-0.11.0.tar, from release v0.11.0 of clodhub/guided-tour: 57 files - Documents and manifests (8): CONTRACT.md, INSTRUCTIONS.md, LICENCE, NOTICE, PROVENANCE.md, SOURCE.md, ... - Source code (9): android/ (3), apple/ (2), web/ (4) - Tests (23): android/ (2), apple/ (14), fake-dom.ts, fixtures/ (3), make-fixtures.ts, native.py, ... - Interface documents (4): guided-tour.json, required-controls.json, required-language.json, required-preferences.json - Class files: the class's interfaces and shared checks (3): guided-tour-class/ (3) - Examples (2): consumer.ts, images.ts - Images of it as built (3): first-step.png, last-step.png, second-step-lounge.png - Diagrams (5): definition.json, examples/ (1), output/ (3) Installing copies 9 of them into the application under components/guided-tour/: android 3, apple 2, web 4 Not included: the components that provide what it requires (com.clodhub/controls, com.clodhub/preferences, com.clodhub/language), each a separate download; the values of its settings, which the recipe writes; any secret The archive is a release file on the publisher's public GitHub repository; ClodHub keeps this page and a pointer to the release, not the code. clod checks the archive's sha256 fingerprint before anything is copied, and installing runs none of the package's code. Versions - 0.11.0 features (2026-11-26T11:27:34.811Z) sha256:d7eb1458198843f2e934018a20fc39398c8fd4583874f6ad6039069d4c013397 Links Details (package foundations, upstream sources, exact dependencies, styles, class inventories, files): https://clodhub.com/components/guided-tour/details.txt?version=0.11.0 Page: https://clodhub.com/components/guided-tour; JSON: https://clodhub.com/api/components/guided-tour/0.11.0; connections diagram: https://clodhub.com/api/components/guided-tour/0.11.0/connections.svg Copyright Level N Ltd 2026