[FEATURE] Add Back Navigation to CLI Setup Wizard
Add a Back option to the interactive CLI setup wizard so users can return to the previous configuration step without restarting the setup process. Requirements
- Add a ← Back option to selectable setup steps.
- Selecting Back should return to the previous question.
- Preserve previously selected values when navigating back.
- Hide or disable Back on the first step.
- Ensure forward navigation continues to work normally.
- Apply the behavior consistently across all setup steps.
i want to work in this issue
Hi @JoeCelaster,
I would like to propose the following solution for Issue #289 – Add Back Navigation to CLI Setup Wizard.
Proposed Solution
I propose adding a ← Back option to the existing interactive CLI setup wizard so users can revisit the previous configuration step without restarting the setup.
Implementation approach:
- Track the current step: Maintain the current question or step index so the wizard knows where the user is in the setup flow.
- Add the Back option: Include a selectable
← Backoption in each applicable step, following the existing prompt library and UI patterns. - Navigate to the previous step: When the user selects Back, move to the previous question instead of starting the setup again.
- Preserve previous answers: Store the user's selections in the existing configuration state so their previous answers remain available when they navigate backward and forward.
- Handle the first step: Hide or disable the Back option on the first step to prevent invalid navigation.
- Keep forward navigation unchanged: Selecting the normal options should continue the existing setup flow without affecting current functionality.
Testing Plan
- Verify that Back returns to the immediately previous question.
- Verify that previously selected values are preserved when navigating backward and forward.
- Verify that Back is unavailable on the first step.
- Verify that normal forward navigation and final configuration generation still work correctly.
- Test navigation across different setup steps to ensure consistent behaviour.
Scope
I will first inspect the existing wizard implementation and follow the project's current code patterns. I will keep the changes limited to the setup wizard and its related tests, avoiding unrelated modifications.
Could you please review and approve this proposed approach before I begin implementation? I will make any necessary changes based on your feedback.
Thank you!
@Jemimah000 - Cool, you can start working on the issue.