You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor onboarding scaffolding and add a read-only onboarding demo for choices.
Key changes:
- Moved onboarding scaffold startup out of App.jsx and into SidebarEditor/useStoryState.
- useStoryState: refactored ensureOnboardingScaffold to use a selectedNodeId ref, more robust target selection, seed demo choices, and set selection after nodes update.
- SidebarEditor: triggers scaffold creation for onboarding steps and shows a read-only demo node when no node is selected during the choices tour.
- ChoicesEditor & ChoiceRow: support a readOnly demo preview (hides add/remove/edit controls and shows explanatory hint).
- onboardingDemo.js: added ONBOARDING_DEMO_NODE and helper functions.
Files changed: src/App.jsx, src/hooks/useStoryState.js, src/components/editor/SidebarEditor.jsx, src/components/editor/ChoicesEditor.jsx, src/components/editor/ChoiceRow.jsx, src/data/onboardingDemo.js
This makes the onboarding tour reliably display example choices without modifying real story data.
0 commit comments