Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: create flag prompt should be on the same line as text #135

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

k3llymariee
Copy link
Contributor

@k3llymariee k3llymariee commented Apr 4, 2024

before:
different-line

after:
same-line-input

Copy link

This pull request has been linked to Shortcut Story #239302: create flag prompt should be on the same line as text.

@@ -24,6 +24,7 @@ func NewCreateFlagModel(client flags.Client, accessToken, baseUri string) tea.Mo
ti.Focus()
ti.CharLimit = 156
ti.Width = 20
ti.Prompt = ""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this gets rid of the ">"

@@ -68,8 +69,7 @@ func (m createFlagModel) View() string {
MarginLeft(2)

return fmt.Sprintf(
"Name your first feature flag (enter for default value %q):\n\n%s",
defaultFlagName,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i removed this because the prompt felt a little long to have on one line with the input. plus with the new confirmation step they'll see the value that was used.

Copy link
Contributor

@sunnyguduru sunnyguduru left a comment

Choose a reason for hiding this comment

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

Nice!

@k3llymariee k3llymariee merged commit 52aa92b into main Apr 5, 2024
3 checks passed
@k3llymariee k3llymariee deleted the kelly/sc-239302/same-line-create-flag-input branch April 5, 2024 20:17
This was referenced Apr 5, 2024
@sunnyguduru sunnyguduru mentioned this pull request Apr 15, 2024
3 tasks
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.

3 participants