feat: add placeholder to app name prompt in create command#370
Open
feat: add placeholder to app name prompt in create command#370
Conversation
Show the randomly generated app name as placeholder text in the input field instead of printing a separate hint line. This provides a cleaner UX where users see the default name inline and can press Enter to accept.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #370 +/- ##
==========================================
+ Coverage 65.06% 65.09% +0.02%
==========================================
Files 215 215
Lines 18179 18182 +3
==========================================
+ Hits 11829 11836 +7
Misses 5254 5254
+ Partials 1096 1092 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mwbrooks
commented
Mar 7, 2026
Member
Author
mwbrooks
left a comment
There was a problem hiding this comment.
Comments for the kinda reviewers!
Comment on lines
181
to
+183
| type InputPromptConfig struct { | ||
| Required bool // Whether the input must be non-empty | ||
| Required bool // Whether the input must be non-empty | ||
| Placeholder string // Placeholder text shown when input is empty |
Member
Author
There was a problem hiding this comment.
note: Using Survey's built-in placeholder option
| func buildInputForm(message string, cfg InputPromptConfig, input *string) *huh.Form { | ||
| field := huh.NewInput(). | ||
| Title(message). | ||
| Placeholder(cfg.Placeholder). |
Member
Author
There was a problem hiding this comment.
note: Using Charm's built-in placeholder option. I chose the Placeholder name to align with huh rather than 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.
Changelog
Summary
This pull request updated the
createcommand's app name prompt to show the randomly generated app name as placeholder text.Screenshots
Survey:
Charm:
Preview
Survey:
2026-03-06-create-placeholder-survey.mov
Charm:
2026-03-06-create-placeholder-charm.mov
Requirements