Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Show `Pull requests` button on status bar when there's no active PR branch #1593
Conversation
jcansdale
added some commits
Apr 10, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
sguthals
Apr 12, 2018
Contributor
Just some overall comments from our conversations today:
High Level Problem
There are three issues that we currently have:
Giving users a way to...
- open the GitHub pane
- get back to the list of PRs
- open a new PR
That isn't going through levels of menus or through the Team Explorer Pane when the GitHub pane isn't already open.
Issues with this solution
Though the solution proposed here might resolve the friction of the above three problems, it introduces new friction in terms of design continuity and user experience expectations. Mainly:
- The task bar sets the tone for icon+text and that should not be broken.
- A user might:
a. Think that the highlighting is broken because the icon or text isn't being highlighted when the other is hovered over
b. Always click on the text part and get used to that taking them to the details, but then accidentally click on the icon part one day and be taken to a completely different view
Other Potential Solutions to the High Level Problem
I feel there are two things that need to be addressed:
- Specifically the PR accessibility (list vs detail vs open)
- The GitHub pane accessibility
Focused on solving the PR accessibility issue
If we are focused on only solving the first, I could imagine a few potential solutions:
- Add an icon+text that is the PR icon and the number of PRs for this repo, which would take the user to the list of PRs.
- Add a GitHub icon+text that would take the user to the GitHub pane, which right now only has the list of PRs anyway
- Add a menu on the current icon+text that comes up and has three options:
a. Open new PR
b. Open PR List
c. Open current PR details
We do not have to also list the PRs in this menu. But it would better follow the UI with the branches menu that Team Explorer has already introduced:
I prefer (3), however I'm wondering what we should do if a user isn't on a PR. What should the text say?
And I'm sure many other ideas.
Focused on the GitHub pane discoverability, workflow, accessibility
I do think, with Forking, Issues, and PR Reviews we have a bigger issue that needs addressing. That is - how are we going to help users be able to discover all of our features when they need to be discovering them.
|
Just some overall comments from our conversations today: High Level ProblemThere are three issues that we currently have:
Issues with this solutionThough the solution proposed here might resolve the friction of the above three problems, it introduces new friction in terms of design continuity and user experience expectations. Mainly:
Other Potential Solutions to the High Level ProblemI feel there are two things that need to be addressed:
Focused on solving the PR accessibility issueIf we are focused on only solving the first, I could imagine a few potential solutions:
I prefer (3), however I'm wondering what we should do if a user isn't on a PR. What should the text say? And I'm sure many other ideas. Focused on the GitHub pane discoverability, workflow, accessibilityI do think, with Forking, Issues, and PR Reviews we have a bigger issue that needs addressing. That is - how are we going to help users be able to discover all of our features when they need to be discovering them. |
jcansdale
changed the title from
Show "Open PRs" button on status bar when there's no active PR branch
to
Show `Pull requests` button on status bar when there's no active PR branch
Apr 12, 2018
jcansdale
requested a review
from
grokys
Apr 13, 2018
jcansdale
added
the
Ready for Review
label
Apr 13, 2018
jcansdale
requested a review
from
donokuda
Apr 13, 2018
donokuda
reviewed
Apr 13, 2018
This is a reasonable stop-gap until we take a look at the extension as a whole to improve discoverability.
Thanks for kicking off this initiative, @jcansdale!
meaghanlewis
added this to In progress
in 2.4.4
Apr 13, 2018
|
Agreed @donokuda! I like this as a first step. Along with metrics, we can get a better workflow/discoverability for the entire extension related to PRs and future features (e.g. Issues)! |
jcansdale
added some commits
Apr 17, 2018
jcansdale
dismissed
donokuda’s
stale review
via
56844b1
Apr 17, 2018
jcansdale
added some commits
Apr 17, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment|
This LGTM |
meaghanlewis
added
the
verified
label
Apr 17, 2018
| + <Setter Property="Control.Visibility" Value="Collapsed" /> | ||
| + <Style.Triggers> | ||
| + <!-- Visible when Number is Null --> | ||
| + <DataTrigger Binding="{Binding Number}" Value="{x:Null}"> |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
jcansdale
Apr 17, 2018
Contributor
I need this one to be Collapsed if it's not null. I'm setting it to Collapsed and overriding with Visible when it's null. Do you know if there's a simpler way to achieve this?
jcansdale
Apr 17, 2018
Contributor
I need this one to be Collapsed if it's not null. I'm setting it to Collapsed and overriding with Visible when it's null. Do you know if there's a simpler way to achieve this?

jcansdale commentedApr 10, 2018
•
edited
Edited 19 times
-
jcansdale
edited Apr 17, 2018
-
jcansdale
edited Apr 17, 2018
-
jcansdale
edited Apr 17, 2018
-
jcansdale
edited Apr 17, 2018
-
jcansdale
edited Apr 17, 2018
-
jcansdale
edited Apr 12, 2018
-
jcansdale
edited Apr 12, 2018
-
jcansdale
edited Apr 12, 2018
-
jcansdale
edited Apr 12, 2018
-
jcansdale
edited Apr 12, 2018
-
jcansdale
edited Apr 12, 2018
-
jcansdale
edited Apr 12, 2018
-
jcansdale
edited Apr 11, 2018
-
jcansdale
edited Apr 11, 2018
-
jcansdale
edited Apr 11, 2018
-
jcansdale
edited Apr 11, 2018
-
jcansdale
edited Apr 11, 2018
-
jcansdale
edited Apr 11, 2018
-
jcansdale
edited Apr 11, 2018
This PR will show a
Pull requestsbutton on the status bar when in the context of a GitHub repo but not on a PR branch.What it does
OpenPullRequestsbutton visible when in the context of a repo with a remoteShowCurrentPullRequestbutton visible when on an PR branchThis means that if we're on a PR branch that hasn't yet been opened in the PR detail view (issue #1591), the
OpenPullRequestsbutton will still be visible and encourage the user to open the PR by hand. This is also useful when the user simply want to change to a different PR.The
Pull requestsbutton has same capitalization as ongithub.com(slightly to screen-cast above)Todo
Decide what to show when the user is on a GitHub repo, but not on a PR branch (or we don't know)
Pull requestswould be consistent with .comBe more selective about when the
OpenPullRequestsbutton appearsPull requestswhen repo has a remoteAt the moment it will appear whenever there is a Git repo with a remote. This means it will also appear on a TFS Git repo. While not the end of the world (clicking on it says
This repository is not on GitHub), it would be nice if we could be a little more selective.Do we currently have any code that looks for GitHub-ish URLs?
TFS Git remotes seem to look like this (which would be easy to filter out):
https://user.visualstudio.com/defaultcollection/_git/RepoName
Reviewers
Sanity check my use of Rx in
PullRequestStatusBarManager.StartShowingStatusI've noticed the tooltip for the
OpenPullRequestsicon doesn't always appear. Any idea what's going on here?The tooltip for our
OpenPullRequestscommand on the toolbar is simplyPull Requests. In this context I'm usingOpen or Create Pull Requests. What do you prefer out of these:Pull Requests,Open or Create Pull Requests,Open or Create Pull Request- or something else?After splitting the button in two, it the spacing okay? @donokuda
Rejected
Showing
OpenPullRequestsandShowCurrentPullRequestas separate buttons. Not consistent with otherTeam Explorerstatus bar buttons/menus.Future PRs
Mitigation for #1591