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(android-setup): Add cancel action behavior to a few steps #2929

Merged
merged 3 commits into from
Jun 22, 2020
Merged

feat(android-setup): Add cancel action behavior to a few steps #2929

merged 3 commits into from
Jun 22, 2020

Conversation

RobGallo
Copy link
Contributor

@RobGallo RobGallo commented Jun 22, 2020

Description of changes

The expected behavior of the cancel action for each step is as follows:

step on cancel
detect-adb n/a (cancel is disabled)
prompt-locate-adb no cancel / cancel = close
prompt-connect-to-device no cancel / cancel = close
detect-devices n/a (cancel is disabled)
prompt-choose-device no cancel (can rescan for devices or close)
detect-service n/a (cancel is disabled)
prompt-install-service prompt-choose-device
installing-service n/a (cancel is disabled)
prompt-install-failed prompt-choose-device
detect-permissions n/a (cancel is disabled)
prompt-grant-permissions prompt-choose-device
configuring-port-forwarding n/a (cancel is disabled)
prompt-configuring-port-forwarding-failed prompt-choose-device
prompt-connected-start-testing no cancel (can rescan for devices or close)

Pull request checklist

  • Addresses an existing issue: #0000
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • (UI changes only) Added screenshots/GIFs to description above
  • (UI changes only) Verified usability with NVDA/JAWS

The expected behavior of the cancel action for each step is as follows:

step | on cancel
--- | ---
detect-adb | no cancel / cancel = close
prompt-locate-adb | no cancel / cancel = close
prompt-connect-to-device | no cancel / cancel = close
detect-devices | prompt-connect-to-device
prompt-choose-device | no cancel (can rescan for devices or close)
detect-service | prompt-choose-device
prompt-install-service | prompt-choose-device
installing-service | prompt-install-service
prompt-install-failed | prompt-choose-device
detect-permissions | prompt-choose-device
prompt-grant-permissions | prompt-choose-device
configuring-port-forwarding | prompt-choose-device
prompt-configuring-port-forwarding-failed | prompt-choose-device
prompt-connected-start-testing | no cancel (can rescan for devices or close)
@RobGallo RobGallo requested a review from a team as a code owner June 22, 2020 14:43
RobGallo added 2 commits June 22, 2020 13:12
These operations can't be canceled because we have no way to interrupt the calls -- we're awaiting promises.
There's no way to cancel the action of the step.
@RobGallo RobGallo merged commit 6bad71b into microsoft:master Jun 22, 2020
@RobGallo RobGallo deleted the cancel branch June 23, 2020 18:45
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