Make Navigate to Editor more discoverable #1552

Merged
merged 6 commits into from Apr 16, 2018

Conversation

Projects
3 participants
@jcansdale
Contributor

jcansdale commented Mar 21, 2018

What this PR does

This PR gives users a hint that the Navigate to Editor functionality exists.

It adds the following messages:

  1. When a PR file diff gets focus
    image

  2. When a PR file diff gets focus from a PR that isn't checked out
    image

  3. When user attempts to navigate to a file that isn't checked out
    image

  4. When the diff file focus is lost the status is cleared (showing the default Ready message)
    image

  • This also works when using View File to view a (read-only) PR file

Reviewers

  • What do you think of the wording? Is my alternative suggestion above an improvement?
  • Do you think the status bar message is noticeable enough without being overly distracting?

Todo

  • Finalize the wording. Would something like this be better?
    • Press Enter to navigate to Editor (PR branch must be checked out)
  • It would be nice if the dialog gave Checkout and Cancel options
    • Maybe do this in a separate PR

Part of #1491
Fixes #1546

jcansdale added some commits Apr 10, 2018

Show navigate to editor hint on status bar
When a PR is checked out and the diff view gets focus, show a navigate to editor hint on status bar.
Show different message when PR not checked out
Let the user know they need to check out PR branch before navigating to editor.

@jcansdale jcansdale changed the base branch from master to feature/pr-reviews-master Apr 10, 2018

jcansdale added some commits Apr 10, 2018

Show status bar hint when using View File
Factor out `EnableNavigateStatusBarMessage` method.
@grokys

grokys approved these changes Apr 13, 2018

LGTM!

@meaghanlewis meaghanlewis added this to In progress in 2.4.4 Apr 13, 2018

@meaghanlewis

This comment has been minimized.

Show comment Hide comment
@meaghanlewis

meaghanlewis Apr 13, 2018

Contributor

Have been dogfooding this and I think the message is helpful. It's not at all distracting, because the bar is always there- I'm just used of it only saying Ready.

Contributor

meaghanlewis commented Apr 13, 2018

Have been dogfooding this and I think the message is helpful. It's not at all distracting, because the bar is always there- I'm just used of it only saying Ready.

@grokys grokys referenced this pull request Apr 16, 2018

Merged

Master PR for Pull Request Reviews #1491

17 of 17 tasks complete

@jcansdale jcansdale merged commit c2b105e into feature/pr-reviews-master Apr 16, 2018

2 checks passed

continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details

2.4.4 automation moved this from In progress to Done Apr 16, 2018

@jcansdale jcansdale deleted the fixes/1546-make-navigate-to-editor-discoverable branch Apr 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment