Skip to content

Show labels on PR description#556

Merged
miguelsolorio merged 3 commits intomicrosoft:masterfrom
wyze:labels-on-description
Oct 10, 2018
Merged

Show labels on PR description#556
miguelsolorio merged 3 commits intomicrosoft:masterfrom
wyze:labels-on-description

Conversation

@wyze
Copy link
Contributor

@wyze wyze commented Oct 6, 2018

Close #464


I'm not sure the design, but it should mimic GitHub's label design. I wen't ahead and not pulled in the color, so it is similar to the status badge. Feels like a lot of wasted space if there is a single label, so definitely open to changing up the design.

Without Labels:

image

With Labels:

screen shot 2018-10-06 at 4 08 39 pm

@RMacfarlane
Copy link
Contributor

RMacfarlane commented Oct 9, 2018

The code looks good, adding @misolori for advice on the UI. I think having a "Labels" heading somewhere would be nice.

@miguelsolorio
Copy link

Thanks for taking a look at this! For the design, I'd probably move down into the body and use the octicon-tag icon (you can see the commit icon for reference), similar to their mobile view:

image

@wyze
Copy link
Contributor Author

wyze commented Oct 9, 2018

Here is the new look and I fixed a bug where multiple tags would have been rendered incorrectly, but got that fixed up here!

image


Edit: Also, rebased on to latest master.

@wyze wyze force-pushed the labels-on-description branch from 4fbef02 to 14ba23d Compare October 9, 2018 21:15
Copy link

@miguelsolorio miguelsolorio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, this looks great!

One last minor thing, can you make sure the labels wrap if there are too many and/when the screen shrinks?
image

@wyze wyze force-pushed the labels-on-description branch from 14ba23d to a35c56a Compare October 10, 2018 13:53
@wyze
Copy link
Contributor Author

wyze commented Oct 10, 2018

@misolori Changes made. Used the same PR in your screenshot as my test so should work great now! Again rebased to latest master as well.

Copy link

@miguelsolorio miguelsolorio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 LGTM!

@miguelsolorio miguelsolorio merged commit 7a66581 into microsoft:master Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants