VisualStudio icon indicating copy to clipboard operation
VisualStudio copied to clipboard

Pull Requests

Open shana opened this issue 11 years ago • 52 comments

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

pullrequestlistfiltering

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.

pullrequestcreation1 pullrequestcreation2 pullrequestcreation3

Pull Request Detail, alternate form with pull downs

pullrequestcommitlist1

pullrequestconversation1

shana avatar Jul 29 '15 18:07 shana

This is so awesome, I love it!

The version above uses a simple menu. It would be interesting to see if it's possible to have a menu with the ability to filter people. This is especially for organizations and teams with dozens of members.

Yup, definitely possible!

shana avatar Feb 02 '16 16:02 shana

So let's start with the PR list. Do we have a preferred font we want to use? Right now I'm using Segoe UI with a font size of 14 for the pr title.

The icon you're using for the comments is the comment_discussion octicon, right? What size should it be rendered at?

shana avatar Feb 02 '16 17:02 shana

Yup, definitely possible!

Sweet! I can create a hi-fidelity mock for that UI component. I wasn't able to find a similar one in Visual Studio but I found noticed a similar pattern used in our desktop app.

So let's start with the PR list. Do we have a preferred font we want to use? Right now I'm using Segoe UI with a font size of 14 for the pr title.

Segoe UI is exactly what font I've been using. Excellent :eyes: with the font sizes: I've also been using 14 for the title and 12 for the details. I prefer staying close to the fonts natively used so our extension doesn't feel out of place.

The icon you're using for the comments is the comment_discussion octicon, right? What size should it be rendered at?

Yup! I've been using 16px for the Octicons as a minimum since the Octicons have optimized the vectors for that size.

donokuda avatar Feb 02 '16 17:02 donokuda

Yup! I've been using 16px for the Octicons as a minimum since the Octicons have optimized the vectors for that size.

Awesome! Do we have a set color for the green icon indicator? Right now I'm just setting it to "Green", is there a specific RGB that we use?

Also, the back and forward icons that I'm using on the toolbar don't look the same as the ones everywhere else in VS because I'm using a xaml vector while most of VS uses a bitmap. I'd really like to keep using the xaml (it scales nicely), but can't find ones that match the more slimmer icons VS uses (compare the back icon on the PR creation view toolbar with the one on the PR list view - the list view is my xaml icons while the creation view have icons I copy-pasted from VS screenshots iirc). Are we happy with the fatter xaml icons, or should we use octicons (which aren't round, if that matters), or create new ones?

Same with the refresh icon, actually. I don't think we have a refresh octicon and the one in the toolbar currently is a stub I found somewhere. Should we do our own?

shana avatar Feb 02 '16 18:02 shana

Awesome! Do we have a set color for the green icon indicator? Right now I'm just setting it to "Green", is there a specific RGB that we use?

Let's use the colors specified in PrimerCSS. In this case for green, the RGB will be R: 108 G: 198 B: 68

I'd really like to keep using the xaml (it scales nicely), but can't find ones that match the more slimmer icons VS uses (compare the back icon on the PR creation view toolbar with the one on the PR list view - the list view is my xaml icons while the creation view have icons I copy-pasted from VS screenshots iirc). Are we happy with the fatter xaml icons, or should we use octicons (which aren't round, if that matters), or create new ones?

I like the idea of using our octicons whenever we can since they fit our branding and we have access to the vectors. However, would having differently styled navigation icons in the toolbar be jarring for Visual Studio users? Should we strive for interface consistency or brand consistency? I'm leaning towards brand but would love your thoughts on that matter.

Same with the refresh icon, actually. I don't think we have a refresh octicon and the one in the toolbar currently is a stub I found somewhere. Should we do our own?

I don't believe we have one. I'll check with the octicons team. EDIT: in the meantime, feel free to use a stub and we can swap it out.

donokuda avatar Feb 02 '16 18:02 donokuda

I like the idea of using our octicons whenever we can since they fit our branding and we have access to the vectors. However, would having differently styled navigation icons in the toolbar be jarring for Visual Studio users? Should we strive for interface consistency or brand consistency? I'm leaning towards brand but would love your thoughts on that matter.

Great question - I honestly am not sure. I'm leaning towards the brand image myself, it would be nice to be distinctive in our own space. @Haacked, thoughts?

shana avatar Feb 02 '16 18:02 shana

Great question - I honestly am not sure. I'm leaning towards the brand image myself, it would be nice to be distinctive in our own space. @Haacked, thoughts?

The answer to this will also inform the answer around the refresh icon :smile_cat: :repeat:

donokuda avatar Feb 02 '16 18:02 donokuda

Here's a pass at a tooltip dropdown:

image

A quick breakdown of states:

image

Filter would work close to how GitHub currently does:

  • By default, your username is on top. Everyone else is listed in alphabetical order
  • When you assign someone, their username is checked and is listed below your name
  • Clear assignee option appears when someone is assigned

Would love a gut check on this direction, @simurai @shana. This direction is a bit custom to Visual Studio so I want to make sure it still feels like it fits at home. Also would like some insights into the engineering effort for custom UIs and balance nice-to-haves (aesthetics) with need-to-have (experience.)

If this is :+1: I can spec out any dimensions/colors as needed.

:exclamation: Side note - I changed the "Assignee" label from bold to regular since we're (edit: already) differentiating between the label and the selection by color. :flushed:

donokuda avatar Feb 03 '16 00:02 donokuda

Looks great. :+1:

When you assign someone, their username is checked and is listed below your name

Would the "listed below your name" only be shown when re-opening the dropdown? Otherwise it might be confusing if a name disappears when you're scrolled to the bottom and select somebody.

simurai avatar Feb 03 '16 01:02 simurai

Would the "listed below your name" only be shown when re-opening the dropdown? Otherwise it might be confusing if a name disappears when you're scrolled to the bottom and select somebody.

Pretty much. I'm thinking that when a user is selected from the menu, the menu will close and the user will be selected. That way we won't have to reorder or maintain the position of the names.

donokuda avatar Feb 03 '16 17:02 donokuda

I really like the look of these dropdowns. We're a bit constrained on what we can get away with UI-wise in the Team Explorer pane (because it's not a space we control), but in our own pane I'm all for creating our own look, and these dropdowns feel great. As a VS user, I don't find this design jarring at all.

@shiftkey @niik What do you feel, as VS users, about these latest mockups?

shana avatar Feb 03 '16 22:02 shana

Sorry to butt in... Should "Clear assignee" be made a little more discoverable? The user is perhaps more likely to be in the mind frame of thinking about adding more assignees when using that drop-down, not removing them.

Another possibility might be to take that option out of the dialog and put something like a cross icon between the name and the drop-down icon? Like the common UI for removing tags.

alexangas avatar Feb 03 '16 23:02 alexangas

@arangas Good point, one dropdown mixing two different intents might be confusing.

shana avatar Feb 03 '16 23:02 shana

Sorry to butt in... Should "Clear assignee" be made a little more discoverable? The user is perhaps more likely to be in the mind frame of thinking about adding more assignees when using that drop-down, not removing them.

Another possibility might be to take that option out of the dialog and put something like a cross icon between the name and the drop-down icon? Like the common UI for removing tags.

Good point. As far as I know, our API supports one assignee at a time, but I agree that it might be confusing to hide "Clear assignee" in the dropdown. I like the idea of using a tag-like UI, but I'm concerned about having two clickable targets fairly close to each other (especially if one of the actions is destructive by removing the assignee):

image

Maybe it makes sense to expose the action on the side when there is an assignee:

image

donokuda avatar Feb 04 '16 00:02 donokuda

@donokuda Good point, that would be better.

alexangas avatar Feb 04 '16 00:02 alexangas

@arangas :+1: We should go with that pattern for the assignee. Thanks for the :eyes: and the feedback!

donokuda avatar Feb 04 '16 00:02 donokuda

What do you feel, as VS users, about these latest mockups?

They feel familiar enough coming from dotcom, and should fit nicely into the VS experience so I'm :thumbsup: with heading down this path.

I couldn't find a good example of this unified search + listbox view already present in VS (some do one, or the other) but we use similar patterns in GitHub Desktop (for example, selecting an ignore template) so I'll go to war here to ensure we can do the same thing here :grin:

@niik might have some more UX insights as I think he was involved a bit with the initial extension work

shiftkey avatar Feb 04 '16 01:02 shiftkey

I couldn't find a good example of this unified search + listbox view already present in VS (some do one, or the other) but we use similar patterns in GitHub Desktop (for example, selecting an ignore template) so I'll go to war here to ensure we can do the same thing here

Yeah, I also couldn't find an example of that in Visual Studio and wasn't sure if I overlooked something. The aesthetic deviates slightly away from GitHub desktop and is a little closer to dotcom, but here's a version closer to GHD for fun (the squares are placeholders for avatars:)

image

In retrospect, it makes more sense to make these GHD and GHfVS components similar so we can, at the very least, reuse code and designs between the two.

Thoughts?

donokuda avatar Feb 04 '16 01:02 donokuda

This is the one I was referring to earlier:

screen shot 2016-02-04 at 1 02 10 pm

In retrospect, it makes more sense to make these GHD and GHfVS components similar so we can, at the very least, reuse code and designs between the two.

More sharing of styles is totally :thumbsup: with me. And if this is a chance for us to give Desktop a bit of spruce up "for free" then let's see what we can do...

shiftkey avatar Feb 04 '16 02:02 shiftkey

Yes, definitely let's align styles across our desktop products as much as possible ^_^

I really like this. I definitely have a soft spot for the [bold] [subdued] style of showing information.


@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?)

shana avatar Feb 04 '16 12:02 shana