refactor(project): replace multi-select with individual Yes/No prompts#910
Merged
Soner (shyim) merged 3 commits intomainfrom Mar 16, 2026
Merged
refactor(project): replace multi-select with individual Yes/No prompts#910Soner (shyim) merged 3 commits intomainfrom
Soner (shyim) merged 3 commits intomainfrom
Conversation
Replace the single multi-select for optional features (Docker, Git, AMQP, OpenSearch) with separate Yes/No select fields for each option. This improves UX clarity and simplifies the logic for mapping selections to flags. Add a tui.NewYesNo() helper in internal/tui/form.go.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the interactive project create TUI flow by replacing the previous “optional features” multi-select with separate Yes/No prompts per feature, and adds a shared helper for consistent Yes/No selects.
Changes:
- Add
tui.NewYesNo()helper to build a standard Yes/No select field. - Replace the optional-features multi-select (Docker/Git/AMQP/OpenSearch) with individual Yes/No prompts.
- Remove the intermediate
selectedOptionsslice and map prompt values directly into flags/vars.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| internal/tui/form.go | Introduces a reusable Yes/No select helper used by interactive commands. |
| cmd/project/project_create.go | Reworks the interactive form to use individual Yes/No prompts and simplifies mapping into useDocker/initGit/withAMQP/withElasticsearch. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
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
tui.NewYesNo()helper ininternal/tui/form.goselectedOptionssliceTest plan
go buildto verify compilationgo test ./...to verify no regressionsshopware-cli project createto confirm each Yes/No prompt works correctly