Skip to content

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

Merged
k3llymariee merged 10 commits intomainfrom
kelly/sc-237281/tab-to-toggle
Mar 21, 2024
Merged

feat: use tab to toggle, add final step#50
k3llymariee merged 10 commits intomainfrom
kelly/sc-237281/tab-to-toggle

Conversation

@k3llymariee
Copy link
Copy Markdown
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

@shortcut-integration
Copy link
Copy Markdown

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

Comment thread internal/setup/flag_toggle.go Outdated
Comment thread internal/setup/wizard.go
case flagToggleStep:
updatedModel, _ := m.steps[flagToggleStep].Update(msg)
m.steps[flagToggleStep] = updatedModel
m.currStep += 1
Copy link
Copy Markdown
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

Comment thread internal/setup/wizard.go
m.steps[flagToggleStep] = updatedModel
m.currStep += 1
default:
return m, tea.Quit
Copy link
Copy Markdown
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
Comment thread internal/setup/flag_toggle.go Outdated
@k3llymariee k3llymariee merged commit 33a447d into main Mar 21, 2024
@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