Skip to content

refactor(project): improve project creation UX flow#919

Merged
Soner (shyim) merged 2 commits intomainfrom
refactor/project-create-ux
Mar 19, 2026
Merged

refactor(project): improve project creation UX flow#919
Soner (shyim) merged 2 commits intomainfrom
refactor/project-create-ux

Conversation

@shyim
Copy link
Member

Summary

  • Move Docker option out of advanced settings into the main interactive form so it is always presented during project creation
  • Improve next steps output for interactive mode — show a "Setup complete" message and conditionally display Docker-specific instructions
  • Add structured logging when CI templates are created (setupCI now accepts context.Context)
  • Rename "Advanced Settings" prompt to "Do you want to further customize the project creation?" for clarity

Test plan

  • Run existing unit tests (go test ./cmd/project/ -run TestSetupCI)
  • Manually test interactive project creation flow
  • Verify non-interactive (--docker) flag still works correctly

Move Docker option out of advanced settings into the main form so it's
always presented. Improve next steps output for interactive mode and add
logging when CI templates are created. Pass context to setupCI for proper
structured logging support.
Copilot AI review requested due to automatic review settings March 19, 2026 04:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the project create command’s interactive UX by surfacing the Docker choice earlier, improving the post-create messaging, and adding log output when CI templates are generated.

Changes:

  • Move the Docker prompt into the main interactive form (no longer gated behind “advanced”).
  • Update interactive “next steps” output to show a “Setup complete” message and Docker-specific instructions conditionally.
  • Add context-aware logging to setupCI and update tests/callers for the new signature.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
cmd/project/project_create.go Adjusts interactive form flow and output; adds ctx-based logging in setupCI.
cmd/project/project_create_test.go Updates setupCI calls to pass a context.

💡 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.

- Move Docker prompt out of advanced settings into main flow
- Rename advanced settings to clearer question phrasing
- Fix "Setup" typo to "Set up" in next steps output
- Show project folder path in success message
- Quote project folder in cd command for paths with spaces
- Show access URLs and credentials only when Docker is enabled
- Add logging when CI template files are created
@shyim Soner (shyim) merged commit 5849afd into main Mar 19, 2026
3 checks passed
@shyim Soner (shyim) deleted the refactor/project-create-ux branch March 19, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants