feat(wizard): Add back button and improve prebuilt flow#9
Merged
Conversation
This commit introduces a major enhancement to the user experience of the devcontainer wizard by allowing users to navigate backward through the steps and preserving their selections. Key changes: - **Stateful Wizard:** The wizard is now stateful, remembering previous selections. Each step function receives the current wizard state to pre-fill inputs and selections. - **Back Navigation:** Users can now go back to the previous step in the wizard by pressing the 'escape' key. - **UI Enhancements:** The UI components (`checkbox`, `confirm`, `input`, `select`) have been updated to support the new 'back' functionality and display appropriate footer controls. - **Refactored Flow:** The main wizard and pre-built flows are refactored to handle the new navigation logic, using a `Symbol.for('back')` to signal backward navigation. This commit enhances the `prebuilt` command with the following: - Adds a `--list` flag to display available pre-built containers without starting the selection prompt. - Allows selecting a pre-built container directly by name using the `--name` flag. - Refactors the `prebuiltList` function to be more modular and reusable. - Updates the README and assets to reflect the new functionality.
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
This pull request introduces significant enhancements to the devcontainer wizard, focusing on improved user experience and feature additions for pre-built containers.
Key Changes
the setup process.