Skip to content

Pull request list tracking #2642

Closed
Closed

Description

@joshaber
  • Probably a tab in the Branches foldout
  • Group my pull requests vs. others

Dependencies:

Designs TBD

Activity

  1. added
    design-input-needed
    on Sep 7, 2017
  2. added this to the 1.1 milestone on Sep 7, 2017
  3. niik commented on Sep 13, 2017

    @niik
    Member

    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).

    33f2a5ac-008a-48b6-98d0-fa57963c7ffc

    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.

    0f9ad0ad-ed8a-46ce-8703-c5fdd87fc11f

    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

    b1006894-a4de-4189-958b-cfe4e5bf1110

    2. When the branch you're on is a feature branch that is not yet a PR

    067df65f-8088-448f-a08a-7265ad5283c1

    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.

  4. j-f1 commented on Sep 13, 2017

    @j-f1
    Contributor

    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.

  5. donokuda commented on Sep 13, 2017

    @donokuda
    Contributor

    😍 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?

  6. j-f1 commented on Sep 13, 2017

    @j-f1
    Contributor

    Would it make sense to add a counter for the number of opened pull requests?

    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.

  7. donokuda commented on Sep 13, 2017

    @donokuda
    Contributor

    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.

  8. j-f1 commented on Sep 13, 2017

    @j-f1
    Contributor

    We could also pull the list of PRs on startup, so it’s always up-to-date, then somehow pull down any PR updates.

  9. j-f1 commented on Sep 13, 2017

    @j-f1
    Contributor

    If we load all of the issues, Desktop could pass ?since=<last-fetch-date> to load any new issues every few minutes.

  10. joshaber commented on Sep 13, 2017

    @joshaber
    ContributorAuthor

    Yeah we should definitely eagerly load and incrementally update the list 👍 💯 We mostly already have this with our existing issues store.

  11. joshaber commented on Sep 13, 2017

    @joshaber
    ContributorAuthor

    This looks great @niik 😍

    A few questions, apologies if you just haven't gotten to these bits yet:

    1. 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?
    2. Does the Current Branch button still always show your current branch, or does it ever show the checked out PR name instead?
    3. What happens on non-GitHub repositories? Hide the tab bar?
  12. niik commented on Sep 14, 2017

    @niik
    Member

    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?

    Yup!

  13. joshaber commented on Sep 14, 2017

    @joshaber
    ContributorAuthor

    See my previous answer and recurse indefinitely

    giphy-2

  14. 4 remaining items

  15. j-f1 commented on Sep 18, 2017

    @j-f1
    Contributor

    Also, maybe the list item with the selected PR should be displayed at the top of the branch dropdown for quicker access.

  16. joshaber commented on Sep 18, 2017

    @joshaber
    ContributorAuthor

    This looks great 💖

    What should happen when someone clicks on the PR badge? What about the status icon?

    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 🌬

  17. j-f1 commented on Sep 18, 2017

    @j-f1
    Contributor

    I often find myself wanting to open the PR for the current branch 🌬

    That’s (at least partially) covered by #2524.

  18. niik commented on Sep 18, 2017

    @niik
    Member

    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.

  19. shiftkey commented on Sep 18, 2017

    @shiftkey
    Member

    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.

  20. changed the title [-]Pull request list[/-] [+]Pull request list tracking[/+] on Sep 21, 2017
  21. joshaber commented on Sep 22, 2017

    @joshaber
    ContributorAuthor

    A couple questions on how we handle forks:

    1. Do we display the PRs on the fork, or on its parent? Probably the parent, right?
    2. What happens when I click on a PR from a fork? Check out the pulls ref or add the remote?
  22. joshaber commented on Sep 22, 2017

    @joshaber
    ContributorAuthor
    1. When the branch you're on is already a PR

    Either drop the lower "tip" part of the view or re-use #1.

    I don't understand this case... if the branch you're on is a PR, then wouldn't we show the PR list?

  23. iAmWillShepherd commented on Jan 26, 2018

    @iAmWillShepherd
    Contributor

    Closing now that all work this issue tracked is now complete.

  24. locked as resolved and limited conversation to collaborators on Jul 18, 2018
  25. unlocked this conversation on Sep 27, 2018
  26. dababy333 commented on Sep 23, 2024

    @dababy333

    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

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions