You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to share some mocks for this feature. I haven't had time to talk through the finer details with @donokuda so beware that things might change.
PR list
As stated in the issue body, we anticipate this to be a tab under the branches dropdown. Unlike the issue body, however, there's no PR groupings here. I've been going back and forth on it for a while but right now I'm in the camp of let's try out not grouping these and see how it feels. My reasons are that without groups we match dotcom's ordering precisely, making for easy at-a-glance navigation. I don't expect nor intend for this feature to be about discovering pull requests but rather quickly checking our a PR branch locally after, say, having been added as a reviewer. You'd know the title of the PR but not necessarily the branch name (on desktop/desktop these are only distantly related through humor).
PR loading
While the implementation details around this are very much to be defined I've assumed that we're going to be able to load the PR list very quickly. A cold load of the list should require one API call for the vast majority of cases and then N requests to get the CI status of each (oh graphql, where art thou). We'd render the list immediately and then populate CI status incrementally as we get it.
With those assumptions in mind I didn't want a dedicated loading view with a spinner as I felt that would be too jarring when we swap in the list only moments after so I took a stab at a skeleton screen instead.
While the list is being loaded these would have a subtle wave/pulse animation and once the list comes in we'd cross-fade opacity between the skeleton list and the real one and enable the filter list.
No PRs? No Problems
Following discussions about other blankslates I wanted to try for positive messaging and onward direction rather than the standard "No PRs to see here" blankslate. I'm imagining three distinct variations of this blankslate.
1. When the branch you're on is the default branch
2. When the branch you're on is a feature branch that is not yet a PR
4. When the branch you're on is already a PR
Either drop the lower "tip" part of the view or re-use #1.
I'm still working on the toolbar button interactions here, I'll probably follow with that over in #2643 and cross link here.
Would it make sense to add a counter for the number of opened pull requests?
That way, someone can get a sense of how much work needs to be done before clicking into the tab. I assume the counter would be more useful for projects with a lower number of pull requests.
The filter text field also looks like it has a lower opacity. Is the intention to disable it while the list is loading?
The problem is that if the list of PRs hasn’t been downloaded yet, that number can’t be provided, and folks will assume it’s 0.
That's a good point. One solution could be to not display a counter if the list hasn't been downloaded yet, and then display 0 if there aren't any opened pull requests.
Would it make sense to add a counter for the number of opened pull requests?
Maybe, yeah. I've been going back and forth on it but that's mostly because I'm not sure if we'll add a third tab to this view in the future (something like "Your Branches") and I didn't want to steal horizontal space unless it felt worth it. The more I think about it though I feel like it probably is useful information, allowing you to, at a glance, see that there are PRs that need attention.
When I click the Current Branch button, what happens? Do I see the Branches tab or PRs tab? Or do we remember which one you had open last?
I'm still working on that because I believe the answer to this will be governed entirely by the answer to your second question
Does the Current Branch button still always show your current branch, or does it ever show the checked out PR name instead?
See my previous answer and recurse indefinitely
What happens on non-GitHub repositories? Hide the tab bar?
What should happen when someone clicks on the PR badge? What about the status icon?
For now, I don't think the badge should have a function. I've been going back and forth on this because it's certainly not far-fetched to imagine it would open the current PR but I'm super vary of overloading the button as well. Buttons in buttons rarely come out well. I have been exploring UI affordances for opening the current PR both in the button and in the foldout but I'm not happy with any of them at the moment and, as @j-f1 points our we will have a way (albeit not a very discoverable one) to get there.
TL;DR: Initially nothing, but we'll keep exploring ways of getting quick access to the current PR.
Also: we already have the keyboard shortcut for "Create Pull Request" and an open issue #2524 to change the button label to "Show Pull Request" if it has one associated with it.
Activity
niik commentedon Sep 13, 2017
I wanted to share some mocks for this feature. I haven't had time to talk through the finer details with @donokuda so beware that things might change.
PR list
As stated in the issue body, we anticipate this to be a tab under the branches dropdown. Unlike the issue body, however, there's no PR groupings here. I've been going back and forth on it for a while but right now I'm in the camp of let's try out not grouping these and see how it feels. My reasons are that without groups we match dotcom's ordering precisely, making for easy at-a-glance navigation. I don't expect nor intend for this feature to be about discovering pull requests but rather quickly checking our a PR branch locally after, say, having been added as a reviewer. You'd know the title of the PR but not necessarily the branch name (on desktop/desktop these are only distantly related through humor).
PR loading
While the implementation details around this are very much to be defined I've assumed that we're going to be able to load the PR list very quickly. A cold load of the list should require one API call for the vast majority of cases and then N requests to get the CI status of each (oh graphql, where art thou). We'd render the list immediately and then populate CI status incrementally as we get it.
With those assumptions in mind I didn't want a dedicated loading view with a spinner as I felt that would be too jarring when we swap in the list only moments after so I took a stab at a skeleton screen instead.
While the list is being loaded these would have a subtle wave/pulse animation and once the list comes in we'd cross-fade opacity between the skeleton list and the real one and enable the filter list.
No PRs? No Problems
Following discussions about other blankslates I wanted to try for positive messaging and onward direction rather than the standard "No PRs to see here" blankslate. I'm imagining three distinct variations of this blankslate.
1. When the branch you're on is the default branch
2. When the branch you're on is a feature branch that is not yet a PR
4. When the branch you're on is already a PR
Either drop the lower "tip" part of the view or re-use #1.
I'm still working on the toolbar button interactions here, I'll probably follow with that over in #2643 and cross link here.
j-f1 commentedon Sep 13, 2017
For the loading view, I think the skeleton PR items should fade out to the bottom. For an example, this happens on the Heroku dashboard for a project.
donokuda commentedon Sep 13, 2017
😍 I love this!
Would it make sense to add a counter for the number of opened pull requests?
That way, someone can get a sense of how much work needs to be done before clicking into the tab. I assume the counter would be more useful for projects with a lower number of pull requests.
The filter text field also looks like it has a lower opacity. Is the intention to disable it while the list is loading?
j-f1 commentedon Sep 13, 2017
The problem is that if the list of PRs hasn’t been downloaded yet, that number can’t be provided, and folks will assume it’s 0.
donokuda commentedon Sep 13, 2017
That's a good point. One solution could be to not display a counter if the list hasn't been downloaded yet, and then display
0if there aren't any opened pull requests.j-f1 commentedon Sep 13, 2017
We could also pull the list of PRs on startup, so it’s always up-to-date, then somehow pull down any PR updates.
j-f1 commentedon Sep 13, 2017
If we load all of the issues, Desktop could pass
?since=<last-fetch-date>to load any new issues every few minutes.joshaber commentedon Sep 13, 2017
Yeah we should definitely eagerly load and incrementally update the list 👍 💯 We mostly already have this with our existing issues store.
joshaber commentedon Sep 13, 2017
This looks great @niik 😍
A few questions, apologies if you just haven't gotten to these bits yet:
niik commentedon Sep 14, 2017
Maybe, yeah. I've been going back and forth on it but that's mostly because I'm not sure if we'll add a third tab to this view in the future (something like "Your Branches") and I didn't want to steal horizontal space unless it felt worth it. The more I think about it though I feel like it probably is useful information, allowing you to, at a glance, see that there are PRs that need attention.
I'm still working on that because I believe the answer to this will be governed entirely by the answer to your second question
See my previous answer and recurse indefinitely
Yup!
joshaber commentedon Sep 14, 2017
4 remaining items
j-f1 commentedon Sep 18, 2017
Also, maybe the list item with the selected PR should be displayed at the top of the branch dropdown for quicker access.
joshaber commentedon Sep 18, 2017
This looks great 💖
I have the same question, but leading even more I wanna say that I often find myself wanting to open the PR for the current branch 🌬
j-f1 commentedon Sep 18, 2017
That’s (at least partially) covered by #2524.
niik commentedon Sep 18, 2017
For now, I don't think the badge should have a function. I've been going back and forth on this because it's certainly not far-fetched to imagine it would open the current PR but I'm super vary of overloading the button as well. Buttons in buttons rarely come out well. I have been exploring UI affordances for opening the current PR both in the button and in the foldout but I'm not happy with any of them at the moment and, as @j-f1 points our we will have a way (albeit not a very discoverable one) to get there.
TL;DR: Initially nothing, but we'll keep exploring ways of getting quick access to the current PR.
shiftkey commentedon Sep 18, 2017
Also: we already have the keyboard shortcut for "Create Pull Request" and an open issue #2524 to change the button label to "Show Pull Request" if it has one associated with it.
[-]Pull request list[/-][+]Pull request list tracking[/+]joshaber commentedon Sep 22, 2017
A couple questions on how we handle forks:
joshaber commentedon Sep 22, 2017
I don't understand this case... if the branch you're on is a PR, then wouldn't we show the PR list?
iAmWillShepherd commentedon Jan 26, 2018
Closing now that all work this issue tracked is now complete.
dababy333 commentedon Sep 23, 2024
yo can you make a code to make it to were funny shooter 2 on tees pure.github.io has aim lock option pls it would really be helpful thnks