Celtrix icon indicating copy to clipboard operation
Celtrix copied to clipboard

[FEATURE] Add Back Navigation to CLI Setup Wizard

Open JoeCelaster opened this issue 1 month ago • 3 comments

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.

JoeCelaster avatar Oct 08 '26 08:10 JoeCelaster

i want to work in this issue

Jemimah000 avatar Oct 08 '26 09:10 Jemimah000

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:

  1. Track the current step: Maintain the current question or step index so the wizard knows where the user is in the setup flow.
  2. Add the Back option: Include a selectable ← Back option in each applicable step, following the existing prompt library and UI patterns.
  3. Navigate to the previous step: When the user selects Back, move to the previous question instead of starting the setup again.
  4. 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.
  5. Handle the first step: Hide or disable the Back option on the first step to prevent invalid navigation.
  6. 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 avatar Oct 13 '26 08:10 Jemimah000

@Jemimah000 - Cool, you can start working on the issue.

JoeCelaster avatar Oct 13 '26 08:10 JoeCelaster