Skip to content

[Onboarding tutorial] Display "Open editor" button after editor has been installed - #8330

Merged
outofambit merged 3 commits into
developmentfrom
ku-show-open-editor-button
Sep 25, 2019
Merged

outofambit merged 3 commits into
developmentfrom
ku-show-open-editor-button

Conversation

@kuychaco

@kuychaco kuychaco commented Sep 24, 2019 •

Copy link
Copy Markdown
Contributor

Overview

Closes #8315

Description

The OnboardingTutorialAssessor uses the resolvedExternalEditor to determine whether the first step is completed it. Prior to this PR we were using externalEditorLabel (ie. selectedExternalEditor) to determine whether or not to show the "Open editor" button. With these changes we are now using resolvedExternalEditor.

In theory, the selectedExternalEditor should be updated to match resolvedExternalEditor when an editor is found. #8322 is another issue stemming from these two getting out of sync. I think the ideal solution would be to simplify the code by dropping selectedExternalEditor because the two seem pretty redundant anyhow. However, for the sake of getting the key onboarding tutorial features out the door I've opted to start with this quick fix.

Manual testing steps:

  • Decide which editor you want to test installation of. Let's say Atom for now
  • Make sure there are no other editors installed, or tell Desktop to ignore them by commenting out the appropriate lines of code. For example, to ignore VS Code on Mac comment out
    results.push({ editor: ExternalEditor.VSCode, path: codePath })
  • Clear local storage cache to get rid of cached editor

GitHub_Desktop-dev_and_Comparing_development___ku-show-open-editor-button_·_desktop_desktop

  • Reload Desktop-dev window
  • Ensure that there are no repositories in Desktop in order to access "Let's get started" page
  • Click "Create a tutorial repo"
  • Note that step 1 is not marked as complete. Note that step 3 does not show an "Open editor" button.
  • Install Atom.
  • After focusing Desktop again, step 1 should be marked as complete
  • Note that step 3 shows an "Open editor" button. Click it.
  • README.md file opens in Atom

Release notes

Notes: no-notes

/cc @outofambit @niik

kuychaco and others added 2 commits September 24, 2019 12:20

@outofambit outofambit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this looks great, thank you @kuychaco! ✨

@outofambit outofambit self-assigned this Sep 24, 2019
@outofambit
outofambit requested review from tierninho and removed request for tierninho September 24, 2019 20:26
@niik niik added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 25, 2019
@outofambit
outofambit merged commit bfe56e2 into development Sep 25, 2019
@outofambit
outofambit deleted the ku-show-open-editor-button branch September 25, 2019 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

epic:onboarding ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Onboarding tutorial] Ensure "Open Editor" button shows up after installation

3 participants