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: Can go back to choose SDK page from show SDK instructions #120

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

dbolson
Copy link
Contributor

@dbolson dbolson commented Apr 3, 2024

A user can go back to choose another SDK once they're on the instructions page. We should show this in the help text once we have that.

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

Provide links to any issues in this repository or elsewhere relating to this pull request.

Describe the solution you've provided

Provide a clear and concise description of what you expect to happen.

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

Copy link

This pull request has been linked to Shortcut Story #239052: go back from choose SDK step in setup.

flagsClient flags.Client
quitMsg string // TODO: set this?
quitting bool
sdk sdkDetail
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this and sorted the others.

cmd = m.currentModel.Init()
m.sdkKind = msg.sdkKind
m.sdk = msg.sdk
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'm passing the entire sdk details instead of its fields.

Copy link
Contributor

@k3llymariee k3llymariee left a comment

Choose a reason for hiding this comment

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

just one comment about the key we're using but otherwise LGTM

Comment on lines 149 to 152
Back: key.NewBinding(
key.WithKeys("left"),
key.WithHelp("back", "go back"),
),
Copy link
Contributor

Choose a reason for hiding this comment

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

is it weird to use left here when we were just using it to traverse the the list in the previous step? do we not want to use esc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

m.currentStep += 1
case selectedSDKMsg:
m.currentModel, cmd = m.currentModel.Update(msg)
Copy link
Contributor

Choose a reason for hiding this comment

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

could this be grouped with the case statement for the msg's on line 95?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@dbolson dbolson merged commit 6900bc6 into main Apr 3, 2024
2 checks passed
@dbolson dbolson deleted the sc-239052/go-back-a-step branch April 3, 2024 22:40
This was referenced Apr 3, 2024
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