Repository navigation
feat: add multi-step wizards with conditional steps and a review screen - #2
Merged
Merged
Conversation
This was referenced Oct 22, 2026
autoantohaki
added a commit
that referenced
this pull request
Oct 22, 2026
Land the multi-step wizard (#2) and a prompt timing fix on main
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.
Requested by mau
Before: a setup flow with more than a handful of questions was one long list, Esc cancelled everything, and there was no way to skip questions that did not apply or to check the answers before committing to them.
After:
runWizardsplits a flow into steps with a progress row (✔ Project · › Tooling · Publish · Review). Steps can be skipped withwhenor build their fields from earlier answers, Esc walks back through questions and steps with answers kept, and a review screen lists everything with aChange …entry per step.npm run demo -- wizardshows it.Stacked on #1 (base
feat/prompts); merge that first and GitHub will retarget this tomain.How:
Wizardtracks the answers, the completed steps, and the current position (a step, the review screen, or done). After each step it moves to the first visible step that is not completed, so a changed answer that makes a new step apply gets that step asked before review. Answers to steps that no longer apply are dropped bycollectAnswers.PromptListgainedresume(start at the last field with earlier ones shown as answered) and Esc-to-previous-question, whichaskAllnow also uses. The CLI takes--demo [prompts|wizard]. Guide indocs/wizard.md.