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

feat: use tab to toggle, add final step #50

Merged
merged 10 commits into from
Mar 21, 2024

Conversation

k3llymariee
Copy link
Contributor

@k3llymariee k3llymariee commented Mar 21, 2024

Updates our flag toggle step to toggle on tab rather than enter. Also adds a final congratulatory screen and exits on completion.

pr50.mov

Copy link

This pull request has been linked to Shortcut Story #237281: show toggle flag in setup wizard.

internal/setup/flag_toggle.go Outdated Show resolved Hide resolved
@@ -102,7 +103,12 @@ func (m WizardModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case flagToggleStep:
updatedModel, _ := m.steps[flagToggleStep].Update(msg)
m.steps[flagToggleStep] = updatedModel
m.currStep += 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

increment here on enter so we can see the final text

default:
return m, tea.Quit
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if we're here that means we're done! will prevent out of index errors

@k3llymariee k3llymariee marked this pull request as ready for review March 21, 2024 17:54
internal/setup/flag_toggle.go Outdated Show resolved Hide resolved
@k3llymariee k3llymariee merged commit 33a447d into main Mar 21, 2024
2 checks passed
@k3llymariee k3llymariee deleted the kelly/sc-237281/tab-to-toggle branch March 21, 2024 18:41
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