-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Show Pull requests button on status bar when there's no active PR branch
#1593
Conversation
|
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. |
Pull requests button on status bar when there's no active PR branch
donokuda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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!
|
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)! |
Track usage of the PR status bar commands explicitly.
|
This LGTM ✨ |
grokys
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just one question.
| <Setter Property="Control.Visibility" Value="Collapsed" /> | ||
| <Style.Triggers> | ||
| <!-- Visible when Number is Null --> | ||
| <DataTrigger Binding="{Binding Number}" Value="{x:Null}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use a binding with TargetNullValue here as below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?

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.202132.xyz(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