Pull Requests
Imported from https://github.com/github/VisualStudioInternal/issues/428
So this is the broad list of things that go into PRs. I've set checkmarks on the bare minimum PR support without which there's probably no point in shipping. Any things that we wouldn't support initially would instead jump to the website to show the information, if possible.
PR Feature - Level 1
- [x] List Pull Requests
- [x] Filtering
- [ ] Create Pull Request
- [x] Entry form for title, description and create button
- [ ] Assigment
- [ ] Commit list
PR Feature - Level 2
- [x] Create Pull Request
- [x] Commit detail (file changes list per commit)
- [x] File changes list (of the PR)
- [x] Diff of file change selected (from commit detail or PR changes detail), no special adornments
PR Feature - Level 3
- [ ] Pull Request detail
- [ ] Commit list
- [ ] Commit detail (file changes list )
- [x] File changes list (of the PR)
- [ ] Conversation list
- [x] Diff of file change (from commit detail or PR changes list)
- [ ] Add comment on diff view line
- [ ] See comments on diff view line
- [ ] Merge PR
- [ ] Close PR
Things to figure out
- [ ] Need a way of assigning someone to a PR
- [ ] Need a merge button somewhere
- [ ] Sorting
Mockups
Pull Request List

Pull Request Creation / Detail
The pull request creation wouldn't have a Conversation tab because, well, it's a new PR, but viewing an existing PR would have it. Still debating whether to use tabs or dropdowns (for space conservation), but tabs do provide useful information.
Not seen in the mockups is the ability to see individual changes list per-commit, which is a very useful feature. Considering having the commit entry as a collapsible pane that shows a list of changed files in the same way as the PR file change list.

Pull Request Detail, alternate form with pull downs


Yes, definitely let's align styles across our desktop products as much as possible ^_^
I also want to create a styleguide for us as a reference of what components we have, which should also help us prototype new features and flows... But that's a discussion outside of this issue :smile:
@shiftkey Maybe it's a good idea for me to implement these new styles in a separate library? Right now I have a GitHub.UI and a GitHub.UI.Reactive (for technical reasons based on dependencies), which are slimmed down versions of what GHD has. But! We could avoid copy-pasting things across projects if stuff that we deem shareable would go into a separate library (GitHub.UI.Shared?)
Love this idea too!
@shana What are your thoughts on the existing filter dropdown @shiftkey referenced?

I don't mean to continue bikeshedding this component but if we have something that already exists and we can extend, then I'd rather go that route. :bike: We can still adjust it so that follow the same type treatment ([bold] [subdued]) in my version
I'm not a fan of the separator lines, to be honest. They clash with whatever happens to be in the background very easily. Also something about the left alignment of the entries and the filter text box is annoying my brain, for some reason.
With that said, they're two different boxes with two different purposes and amount of information, so I'm not sure I can compare them directly. I was going to, but refrained because one has single word entries while the other has avatars and multiple word entries, they fill up differently.
@shana
Maybe it's a good idea for me to implement these new styles in a separate library? Right now I have a GitHub.UI and a GitHub.UI.Reactive (for technical reasons based on dependencies), which are slimmed down versions of what GHD has. But! We could avoid copy-pasting things across projects if stuff that we deem shareable would go into a separate library (GitHub.UI.Shared?)
Yep. Feel free to repurpose whatever from GHD, and I think a *.Shared is a good convention for us.
Also, I'm concerned about the lack of @niik in this thread. Maybe if I say his name three times he'll appear - @niik @niik @niik?
Also something about the left alignment of the entries and the filter text box is annoying my brain, for some reason.
I'm willing to bet your brain really wants the placeholder text and the list text to align, but the list text is aligning with the input box instead.

With that said, they're two different boxes with two different purposes and amount of information, so I'm not sure I can compare them directly. I was going to, but refrained because one has single word entries while the other has avatars and multiple word entries, they fill up differently.
That's a good point. I was comparing them because of their similar UX around filtering in a list. But when I think about the content that could live in there, the filterable list without separator lines is more flexible for grouping content. A good example in GHD is the branch picker:

(Also note the [edit: alignment] of the placeholder text and the list text)
Aaaaaaaahhh yes that's totally it. Messing up my brain so much!
Your list mockup and the GHD one are pretty close. The only difference is the alignment of the subdued text and the boldness of the other text. The boldness on your mockup matches what we already do in the Connect area to list repositories (because it's a thing MS also does). I find that the dates aligned to the right on the GHD branch picker work well, but in the case of the list of names mockup it works better having them aligned to the left next to the username. I have no problems making a variation on the GHD one for VS, but these are minor things, really, and I defer design decisions to the experts :smile:
One thing to consider is that we need a dark theme. VS ships with one by default and all the panes need to follow it, otherwise it'll look horrible. We can get away with the dialogs because they're not inside the VS UI, but we can't avoid it with panes.
But omg please let's match the left padding of the text to the inner padding of the filter box, that breaks me so much!
I find that the dates aligned to the right on the GHD branch picker work well, but in the case of the list of names mockup it works better having them aligned to the left next to the username.
Agree. With the name right-aligned in the pop-up, if someone wanted to know a user's real name in the dropdown, their eye would have to jump to the right side. Plus we would end up hiding information when a user is selected.
One thing to consider is that we need a dark theme. VS ships with one by default and all the panes need to follow it, otherwise it'll look horrible. We can get away with the dialogs because they're not inside the VS UI, but we can't avoid it with panes.
Good call! This is also important as we think about using color to convey information.
Noodled on some thoughts around the UX of listing changed files in the commit tab.

Clicking on a commit would expand the item and show the file list (per commit). Clicking again would collapse the item.
– https://github.com/github/VisualStudio/issues/20#issuecomment-127841125
If we were to click on a commit, would the expected behavior be showing the file list or showing the details of the commit itself?
My expectation is that it would show the details of that commit in the team explorer, if possible:

If that's the case, we could toggle the list of files by clicking the counter on the side:

However, I'm concerned that this is a UX pattern not used anywhere else. Maybe we consider using a list dropdown instead?:

Also, we could truncate long directories and filenames and show the full path in a tooltip:

Clicking on the filename could open a diff view comparing the file, at that commit, to the target branch. However, I'm wondering if this is a common action when creating a PR.
Jumping to Team Explorer for the commit info view might be confusing - it jumps to a different pane, how is the user getting back to our pane (back doesn't work, the navigation is only between Team Explorer pages, not everything else)? Not sure I can actually load a specific commit information programmatically on Team Explorer, either. We might need to have a commit detail page to show this information.
:+1: on the dropdown to show the file list, it's nice. Showing the individual diffs might not be the most common action when creating a PR, but it is when looking at existing PRs, and the views here are pretty much the same for either, so we can support it in the creation too.
Jumping to Team Explorer for the commit info view might be confusing - it jumps to a different pane, how is the user getting back to our pane (back doesn't work, the navigation is only between Team Explorer pages, not everything else)?
Totally. I agree that jumping to a different pane doesn't make it clear where we came from and how to get back unless you look for very specific cues (such as the tabs changing.)
We might need to have a commit detail page to show this information.
I started a wireframe concept around this for our pane, keeping in mind that I'm making assumptions of what information is useful to show here:

@shana just out of interest, do you think some form of 'PR Feature - Level 2' or 'PR Feature - Level 3' will be coming any time soon? Or is it an unknown at the moment?
@stevekennaird Yup, we're working on it, just taking a more holistic, workflow approach to it. See #491 for some of that!