feat(Tour): add createTour and Tour compound - #178
Draft
johnleider wants to merge 5 commits into
Draft
johnleider wants to merge 5 commits into
johnleider wants to merge 5 commits into
Conversation
|
commit: |
johnleider
marked this pull request as draft
April 6, 2026 16:33
Headless guided tour plugin composing createStep, createRegistry, and createForm. Includes 11 compound components (Root, Content, Activator, Highlight, Keyboard, Title, Description, Progress, Prev, Next, Skip), docs pages, examples, and tests.
# Conflicts: # apps/docs/src/pages/components/index.md # apps/docs/src/pages/composables/index.md # apps/docs/src/typed-router.d.ts # packages/0/README.md # packages/0/src/components/index.ts # packages/0/src/composables/index.ts # packages/0/src/maturity.json
Contributor
|
✅ Changeset found — this change will be included in the next release. Thanks! |
The July useTour draft does not carry onto current dev. Adopt the createTour primitive and Tour compound so this branch is the one implementation.
Content is not aria-modal. Escape dismisses it, focus returns to the opener, and complete() runs the form gate. Bare steps center with a full scrim. Promoted portals move back to the top of the stack when a later overlay opens.
johnleider
force-pushed
the
feat/tour
branch
from
September 23, 2026 13:52
0378e10 to
251e682
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Revives this draft onto current
dev. The JulyuseTourplugin diff was 360 commits behind and did not merge; the implementation that replaces it iscreateTour.createTour— step sequencer oncreateStep, activator registry, form-gatednext/jump,enter/leave/completedhandlers. Steps areregister/onboard, not anitemsoption.createTourContext/useTour— provide/inject for the compound. Not a plugin.Tourcompound — Root, Activator, Highlight, Content, Keyboard, Title, Description, Progress, Prev, Next, Skip.previewis not claimed here; entries stay at the level the commit sets).feat/create-tourwas the same tree with no PR. This branch is now the one implementation.Test plan
vitest run --project v0:unit—createTour,surface.test.ts, locale messages (24 tests)vitest run --project v0:browser—Tour/index.browser.test.ts(7 tests)pnpm typecheckpnpm lint:fixpnpm build:docs