Skip to content

Rework config tour: MoltenModal and target-* targeting - #1688

Open
SukuWc wants to merge 5 commits into
stablefrom
fix/config-tour
Open

SukuWc wants to merge 5 commits into
stablefrom
fix/config-tour

Conversation

@SukuWc

@SukuWc SukuWc commented Nov 18, 2026 •

Copy link
Copy Markdown
Member
  • Migrate the tour popover to MoltenModal (new TourModal.svelte); remove TourPopover.svelte and its arrow
  • MoltenModal: add opt-in backdrop (no dimming, no focus steal, app stays interactive) and placement (left/right/top/bottom via CSS position-area, centered on the anchor, flips when it doesn't fit); existing anchored modals are unchanged
  • Tour falls back to a centered modal when its anchor is removed or hidden
  • New targeting tags in the profile description: target-static, target-action-name (full name match), target-element="0", target-event="0/button", target-action="0/button/0"; optional position="left|right|top|bottom"
  • Step text is the description body between tour tags (text[[...]] is a fallback); <!-- tour end --> ends the last step; steps run in the order they appear
  • Remove the old name-prefix matching (getTourIndex, isTourStep, getTourTargets) and the static= / step=N tag forms — existing tour descriptions need updating
  • "Start Tour!" shows when the description builds at least one valid step on the loaded page
  • Add data-tour-* attributes to element buttons (Device.svelte) and event tabs (EventPanel.svelte) as anchors
  • Clear the previous tour before creating a new one; expand the targeted action block on its step
  • Simplified layout: Quit Tour left, always-visible Previous/Next right (disabled when unavailable; Quit takes the accent on the last step)
  • Use theme foreground color for the profile load overlay's fetching text and spinner
  • start() no longer throws on profiles with no tour steps; tour-creation failures are logged instead of left unhandled

🤖 Generated with Claude Code

https://claude.ai/code/session_017FUXbWVjHhrGx67gEQdhn1

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Editor preview — https://pr-1688-grid-editor.intechstudio.workers.dev

Deployed from 319f4b0. The URL stays the
same for the life of this PR; each push replaces what it serves.

@github-actions

Copy link
Copy Markdown

SukuWc and others added 2 commits November 18, 2026 12:47
@SukuWc SukuWc changed the title Fix config tour popover, step expansion and cleanup Fix config tour: popover, step text, layout and cleanup Nov 18, 2026
@SukuWc SukuWc changed the title Fix config tour: popover, step text, layout and cleanup Fix config tour and migrate it to MoltenModal Nov 18, 2026
…t, action)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017FUXbWVjHhrGx67gEQdhn1
@SukuWc SukuWc changed the title Fix config tour and migrate it to MoltenModal Rework config tour: MoltenModal and target-* targeting Nov 18, 2026
@SukuWc

SukuWc commented Nov 18, 2026

Copy link
Copy Markdown
Member Author
## Tutorial
<!-- tour target-element="1" -->
### Step 0
Targeting an elment
<!-- tour target-action="1/setup/0" -->
### Step 1
SADASDA Configure the desired color for this AMAZING element!
![Image](https://firebasestorage.googleapis.com/v0/b/profile-cloud.appspot.com/o/config_images%2F2eac9fbd-4c08-4a2a-853b-2685a8df1c20.png?alt=media&token=61796748-5a5e-4675-9375-61e7315c0f48)
*Italic*
<!-- tour target-action="0/button/1" -->
### Step 2
No comment
<!-- tour target-static="store-button" -->
### Step 3
Must Store the configuration on the Module!
<!-- tour end>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant