Skip to content

feat(wizard): Add back button and improve prebuilt flow#9

Merged
d4rm5 merged 3 commits intomainfrom
back-button
Aug 29, 2025
Merged

feat(wizard): Add back button and improve prebuilt flow#9
d4rm5 merged 3 commits intomainfrom
back-button

Conversation

@d4rm5
Copy link
Collaborator

@d4rm5 d4rm5 commented Aug 29, 2025

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

  • Back Button Functionality: The wizard now supports navigating back to previous steps, preserving the user's state to allow for easier corrections and adjustments during
    the setup process.
  • Stateful Wizard: The wizard is now stateful, remembering previous selections. Each step function receives the current wizard state to pre-fill inputs and selections.
  • Improved Pre-built Container Flow:
    • A --list flag has been added to the prebuilt command to show all available pre-built containers.
    • Users can now select a pre-built container directly by name using the --name flag, streamlining the process.
  • Wizard Refactoring: The core wizard logic has been refactored to use a more maintainable step-based switch statement.
  • UI Enhancements: The UI components (checkbox, confirm, input, select) have been updated to support the new 'back' functionality.
  • Documentation Updates: The README and assets have been updated to reflect the new features and command usage.
d4rm5 added 3 commits August 28, 2025 23:58
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.
@d4rm5 d4rm5 merged commit 2baa6a9 into main Aug 29, 2025
This was linked to issues Aug 29, 2025
@d4rm5 d4rm5 deleted the back-button branch August 29, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant