fix: WIP add stack generator to tui #126
Open
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.
This pull request introduces a new "Stack Builder" feature to the TUI application, allowing users to interactively build, preview, and save infrastructure stacks composed of multiple modules. The main changes include new state management for the stack builder, keyboard event handling for stack builder interactions, UI rendering updates, and integration into the main application flow.
Stack Builder Feature Implementation:
StackBuilderStatetoAppfor managing stack builder interactions and state. (cli/src/tui/app.rs,cli/src/tui/state/stack_builder_state.rs)Appfor opening the stack builder (loading all modules) and saving the generated stack YAML to files, with error handling and UI feedback. (cli/src/tui/app.rs)Keyboard Event Handling:
StackBuilderHandlerto handle all key events within the stack builder, including navigation, module management, variable configuration, preview, and clipboard actions. (cli/src/tui/events/stack_builder_handler.rs,cli/src/tui/events/mod.rs,cli/src/tui/handlers.rs)Ctrl+Nas a shortcut to open the stack builder from the stacks view. (cli/src/tui/events/main_handler.rs,cli/src/tui/renderers/common.rs)UI Rendering Updates:
cli/src/tui/ui.rs,cli/src/tui/widgets/mod.rs)These changes collectively provide a robust, keyboard-driven workflow for building and saving infrastructure stacks in the TUI application.