Closed Bug 1056377 Opened 10 years ago Closed 8 years ago

[rbmozui] Mozilla-ify the UI

Categories

(MozReview Graveyard :: General, defect, P3)

Production
x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mconley, Assigned: davidwalsh)

References

Details

(Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/2678] )

Attachments

(6 files, 20 obsolete files)

42 bytes, text/x-review-board-request
Details
216.16 KB, image/png
Details
324.35 KB, image/png
Details
58 bytes, text/x-review-board-request
smacleod
: review+
Details
58 bytes, text/x-review-board-request
smacleod
: review+
Details
58 bytes, text/x-review-board-request
smacleod
: review+
Details
We want our instance of Review Board to feel "like home" to people working on Mozilla stuff. We're going to take advantage of the extensibility / customizability of Review Board to meet that goal.

This bug will track that work.
/r/126 - First go at re-skinning the RB menus.
/r/127 - Switch to FontAwesome.

Pull down these commits:

hg pull review -r fd4668ecfac74e735c23ccab0b359d5d7587018d
Note that the patches I just posted are very much a WIP.
I'd love to see some screenshots along with the patches as we go :)
Sure - I'll toss some up soon!
Comment on attachment 8476319 [details]
Review for review ID: bz://1056377/mconley

/r/126 - First go at re-skinning the RB menus.
/r/127 - Switch to FontAwesome.

Pull down these commits:

hg pull review -r fd4668ecfac74e735c23ccab0b359d5d7587018d
Comment on attachment 8476319 [details]
Review for review ID: bz://1056377/mconley

/r/126 - First go at re-skinning the RB menus.
/r/127 - Switch to FontAwesome.

Pull down these commits:

hg pull review -r fd4668ecfac74e735c23ccab0b359d5d7587018d
(Since screenshot comments are broken right now, I'll just explain). It looks like the description box is using the stock Review Board colour? It seems a little out of place to me, we should modify it.
the "description box" _border_ is what I mean to say ^
Good eye!
Comment on attachment 8476319 [details]
Review for review ID: bz://1056377/mconley

/r/127 - First go at re-skinning Review Board for Mozilla.

Pull down this commit:

hg pull review -r a6c77836943e1729271f5765efbd1731bd6b1e2f
Product: bugzilla.mozilla.org → Developer Services
This seems to be almost ready to land. Higher-than normal priority so we don't lose track of it.
Priority: -- → P2
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/2671]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/2671] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/2678]
Transferring to mdoglio.  If mconley wants/is able to help out, that's cool, but we'll get mdoglio to drive this to completion.
Assignee: mconley → mdoglio
We have too many P1s, so I'm spreading out the priorities.  P3 -> P4, P2 -> P3, and some portion of P1s will become P2.
Priority: P2 → P3
We decided that we will hold on this because the next ReviewBoard release may ship with support for ui themes.
I think glob is going to work on it this quarter
Assignee: mdoglio → nobody
Product: Developer Services → MozReview
https://reviewboard.mozilla.org/r/51419/#review48183

This was a quick experiment with how we could improve MozReview's design.  I used Sean Martell's color palette (https://www.mozilla.org/en-US/styleguide/identity/firefox/color/) and attempted a very "toned down" look so it's easy on the eyes.  I did *not* address font-sizing or line-height; if we think this is the right direction, I can adjust those down the road.
Thanks for working on this, David!

Any chance you could post a quick screenshot? (I'm currently not in the position to apply and test your patch myself.)
Flags: needinfo?(dwalsh)
Attached image all-requests.png
Flags: needinfo?(dwalsh)
Attached image review.png
Comment on attachment 8750448 [details]
MozReview Request: MozReview: Quick try at a 'redesign' (Bug 1056377). r?smacleod,glob,gps,mcote,salva

https://reviewboard.mozilla.org/r/51419/#review48235

Gave it a brief glance over and it looks so much better. +100 for less yellow.

I'm no CSS expert, so I can't comment much on the technical aspects or on the implications of overriding CSS in Review Board.
Attachment #8750448 - Flags: review?(gps)
I agree, this looks really really nice.

One thing that sticks out is the Firefox logo - that's the old logo, and I can say with 100% certainty that mart3ll would die inside if we used that instead of the most up-to-date one from [1].

Alternatively, since there are non-Firefox projects on MozReview, it might be worth-while trying out the Mozilla wordmark from [2] as well.

Might want to confirm with mcote or somebody that "Mozilla Review Board" is how we want to title this thing. Maybe "MozReview" or "Mozilla's Review Board" or maybe just "Mozilla Code Review". Dunno. Start your bikeshed engines.

Regarding overriding the CSS in Review Board, it should be able to handle whatever you throw at it, for the most part.

[1]: https://www.mozilla.org/en-US/styleguide/identity/firefox/branding/
[2]: https://www.mozilla.org/en-US/styleguide/identity/mozilla/branding/
Yeah I was vacillating on the title.  "MozReview" is the name of the entire system, which encompasses not just the Review Board instance but also the hg repo and, arguably, the Autoland service.  Since we haven't significantly diverged from Review Board, it's probably not a bad idea to keep it in the title.  So, yeah, I guess to me, at the moment, it's between "Mozilla Review Board" and "Mozilla's Review Board".  But I'm open to bike shedding.
Assignee: nobody → dwalsh
we could follow bmo.. "Review Board @ Mozilla"
Comment on attachment 8750448 [details]
MozReview Request: MozReview: Quick try at a 'redesign' (Bug 1056377). r?smacleod,glob,gps,mcote,salva

https://reviewboard.mozilla.org/r/51419/#review48435

i love the overall look; nice work!

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:19
(Diff revision 1)
> +  padding-top: 8px;
> +}
> +
> +
> +/* TODO:  Pull this from our own resources/CDN */
> +@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

opening issue for this TODO

i've asked around to see if there's a copy of this on our cdn.  if there isn't, we should host a copy on our review board servers.

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:103
(Diff revision 1)
> +  -webkit-border-radius: 0;
> +  -moz-border-radius: 0;

nit: we probably don't need to worry about supporting ancient versions of webkit and gecko, and only need border-radius (drop -webkit and -moz prefixed definitions).  eg. -moz-border-radius was removed in firefox 13

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:217
(Diff revision 1)
> +.actions.page-tabs li {
> +  border-bottom: 0;
> +}
> +
> +.actions.page-tabs li.active {
> +  border: 0;

you need a background-color: #fff here; currently the active tab has a faint yellow background

::: pylib/mozreview/mozreview/static/mozreview/js/default.js:9
(Diff revision 1)
>  
>    // Fix logout url
>    $("a[href='/account/logout/']").attr("href", "/mozreview/logout/");
>    $("#accountnav li").css("visibility", "visible");
> +
> +  /* DW attempt at a redesign */

this comment should say something along the lines of "use the mozilla/firefox logo"

::: pylib/mozreview/mozreview/static/mozreview/js/default.js:10
(Diff revision 1)
>    // Fix logout url
>    $("a[href='/account/logout/']").attr("href", "/mozreview/logout/");
>    $("#accountnav li").css("visibility", "visible");
> +
> +  /* DW attempt at a redesign */
> +  $('#logo').attr('src', 'http://people.mozilla.org/~faaborg/files/shiretoko/firefoxIcon/firefox-512-noshadow.png');

as per comment 22, this is the old firefox logo.

the logo should be served from the review board webheads, not from another host.
Attachment #8750448 - Flags: review?(glob)
Comment on attachment 8750448 [details]
MozReview Request: MozReview: Quick try at a 'redesign' (Bug 1056377). r?smacleod,glob,gps,mcote,salva

https://reviewboard.mozilla.org/r/51419/#review48989

I think this looks pretty grand, but I will leave specific comments to glob and others.
Attachment #8750448 - Flags: review?(mcote)
https://reviewboard.mozilla.org/r/51419/#review50436

This is ready for final review -- please let me know if you have more suggestions or changes?  If it's something small we should push and iterate.
https://reviewboard.mozilla.org/r/53682/#review50516

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:37
(Diff revision 1)
> -    width: 56px;
> +      width: 56px;
> +      height: 56px;

the png you've included is 56x43, so this will result in distortion.

please update the logo to be double resolution , which will look much better on hidpi devices.

::: pylib/mozreview/mozreview/static/mozreview/js/default.js:9
(Diff revision 1)
>  
>    // Fix logout url
>    $("a[href='/account/logout/']").attr("href", "/mozreview/logout/");
>    $("#accountnav li").css("visibility", "visible");
>  
>    /* DW attempt at a redesign */

as per my previous review, this comment needs to be updated.
Comment on attachment 8754059 [details]
MozReview Request: Add OpenSans fonts for content

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/53702/diff/1-2/
https://reviewboard.mozilla.org/r/53682/#review50516

> the png you've included is 56x43, so this will result in distortion.
> 
> please update the logo to be double resolution , which will look much better on hidpi devices.

Updated with svg file from Martell.

> as per my previous review, this comment needs to be updated.

My bad, I removed that comment from the CSS file but not the JS. :(
Comment on attachment 8750448 [details]
MozReview Request: MozReview: Quick try at a 'redesign' (Bug 1056377). r?smacleod,glob,gps,mcote,salva

https://reviewboard.mozilla.org/r/51419/#review51856

I like the overall look, great job.

This would be *way* easier to review after a couple of changes:
1. For each commit, please upload screenshots to that review request so I can see visually what it changes exactly (and review it in RB)
2. Expand on the commit messages with more detail about what exactly is changing.
3. Break the font introduction commit out of the change which actually uses them.

It might also be helpful for maintenance reasons do but some delimiting comments around this style overriding stuff, as well as comments about what blocks of style apply to so we know where to check when we upgrade / where to fix.
Attachment #8750448 - Flags: review?(smacleod)
Attachment #8750448 - Flags: review?(smacleod)
Attachment #8750448 - Flags: review?(mcote)
Attachment #8750448 - Flags: review?(gps)
Attachment #8750448 - Flags: review?(glob)
Comment on attachment 8750448 [details]
MozReview Request: MozReview: Quick try at a 'redesign' (Bug 1056377). r?smacleod,glob,gps,mcote,salva

Clearing my flag until the commits are restructured
Attachment #8750448 - Flags: review?(smacleod)
Comment on attachment 8754046 [details]
MozReview Request: Re-skin MozReview (Bug 1056377). r?smacleod

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/53686/diff/1-2/
Attachment #8754046 - Attachment description: MozReview Request: Update the dropdown colors for desktop and mobile → MozReview Request: MozReview: Quick try at a 'redesign' (Bug 1056377). r?smacleod,glob,gps,mcote,salva
Attachment #8754046 - Flags: review?(smacleod)
Attachment #8754046 - Flags: review?(salva)
Attachment #8754046 - Flags: review?(mcote)
Attachment #8754046 - Flags: review?(gps)
Attachment #8754046 - Flags: review?(glob)
Attachment #8750448 - Attachment is obsolete: true
Attachment #8750448 - Flags: review?(salva)
Attachment #8750448 - Flags: review?(mcote)
Attachment #8750448 - Flags: review?(gps)
Attachment #8750448 - Flags: review?(glob)
Attachment #8750857 - Attachment is obsolete: true
Attachment #8750858 - Attachment is obsolete: true
Attachment #8754045 - Attachment is obsolete: true
Attachment #8754047 - Attachment is obsolete: true
Attachment #8754059 - Attachment is obsolete: true
Comment on attachment 8754046 [details]
MozReview Request: Re-skin MozReview (Bug 1056377). r?smacleod

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/53686/diff/2-3/
Attachment #8754046 - Attachment description: MozReview Request: MozReview: Quick try at a 'redesign' (Bug 1056377). r?smacleod,glob,gps,mcote,salva → MozReview Request: Re-skin MozReview (Bug 1056377). r?smacleod
Attachment #8754046 - Flags: review?(salva)
Attachment #8754046 - Flags: review?(mcote)
Attachment #8754046 - Flags: review?(gps)
Attachment #8754046 - Flags: review?(glob)
Attachment #8754046 - Attachment is obsolete: true
Attachment #8754046 - Flags: review?(smacleod)
Review commit: https://reviewboard.mozilla.org/r/55888/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/55888/
Attachment #8757457 - Flags: review?(smacleod)
Attachment #8757458 - Flags: review?(smacleod)
Attachment #8757459 - Flags: review?(smacleod)
Attachment #8757460 - Flags: review?(smacleod)
Attachment #8757461 - Flags: review?(smacleod)
Attachment #8757462 - Flags: review?(smacleod)
https://reviewboard.mozilla.org/r/55886/#review52616

Added screenshots to relevant reviews.  I know a few of the commits look big but they're 90% color changes or removal of border-radius.  Hopefully we can get this in and iterate where necessary.
Comment on attachment 8757457 [details]
MozReview: Update header title for branding (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55888/diff/1-2/
Comment on attachment 8757458 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55890/diff/1-2/
Comment on attachment 8757459 [details]
MozReview: Update header and navigation styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55892/diff/1-2/
Comment on attachment 8757460 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55894/diff/1-2/
Comment on attachment 8757461 [details]
MozReview:  Update Diff Viewer and grid styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55896/diff/1-2/
Comment on attachment 8757462 [details]
MozReview:  Update dialog and comment dialog styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55898/diff/1-2/
Comment on attachment 8757457 [details]
MozReview: Update header title for branding (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55888/diff/2-3/
Attachment #8757457 - Attachment description: MozReview Request: MozReview: Update header title for branding (Bug 1056377). r?smacleod → MozReview: Update header title for branding (Bug 1056377).
Attachment #8757458 - Attachment description: MozReview Request: MozReview: Update base site colors and fonts (Bug 1056377). r?smacleod → MozReview: Update base site colors and fonts (Bug 1056377).
Attachment #8757459 - Attachment description: MozReview Request: MozReview: Update header and navigation styles (Bug 1056377). r?smacleod → MozReview: Update header and navigation styles (Bug 1056377).
Attachment #8757460 - Attachment description: MozReview Request: MozReview: Update Review Request page, banner, and comments styles (Bug 1056377). r?smacleod → MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).
Attachment #8757461 - Attachment description: MozReview Request: MozReview: Update Diff Viewer and grid styles (Bug 1056377). r?smacleod → MozReview: Update Diff Viewer and grid styles (Bug 1056377).
Attachment #8757462 - Attachment description: MozReview Request: MozReview: Update dialog and comment dialog styles (Bug 1056377). r?smacleod → MozReview: Update dialog and comment dialog styles (Bug 1056377).
Attachment #8757459 - Flags: review?(barret)
Attachment #8757460 - Flags: review?(barret)
Comment on attachment 8757458 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55890/diff/2-3/
Comment on attachment 8757459 [details]
MozReview: Update header and navigation styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55892/diff/2-3/
Comment on attachment 8757460 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55894/diff/2-3/
Comment on attachment 8757461 [details]
MozReview:  Update Diff Viewer and grid styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55896/diff/2-3/
Comment on attachment 8757462 [details]
MozReview:  Update dialog and comment dialog styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55898/diff/2-3/
Comment on attachment 8757457 [details]
MozReview: Update header title for branding (Bug 1056377).

https://reviewboard.mozilla.org/r/55888/#review55890

::: pylib/mozreview/mozreview/static/mozreview/js/default.js:9
(Diff revision 3)
> +  // Update heading title for branding
> +  $('#headerbar #title').html('Review Board @ Mozilla');

I think it's valuable to keep the version information in the header (or at least somewhere) - I use it often to compare what version we're running with new releases. It's also useful to other users when viewing documentation as each RB version has its own set of docs with different features

::: pylib/mozreview/mozreview/static/mozreview/js/default.js:10
(Diff revision 3)
>    // Fix logout url
>    $("a[href='/account/logout/']").attr("href", "/mozreview/logout/");
>    $("#accountnav li").css("visibility", "visible");
> +
> +  // Update heading title for branding
> +  $('#headerbar #title').html('Review Board @ Mozilla');

Lets keep it so clicking this text links you to `/`.
Attachment #8757457 - Flags: review?(smacleod) → review+
Comment on attachment 8757458 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

https://reviewboard.mozilla.org/r/55890/#review55894

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:23
(Diff revision 3)
> +  border-radius: @arguments;
> +}
> +
> +@font-face {
> +    font-family: 'Open Sans';
> +    src: url('../fonts/OpenSans-Light-webfont.eot');

Since we're distributing these fonts we need to provide the license along with them.

::: pylib/mozreview/mozreview/static/mozreview/fonts/OpenSans-Light-webfont.svg:1
(Diff revision 3)
> +<?xml version="1.0" standalone="no"?>

How vital is this font change to the new look and feel? I'd love to see some screenshots / some justification for why we're introducing them.

What sort of impract on performance can we expect?
Attachment #8757458 - Flags: review?(smacleod)
Comment on attachment 8757459 [details]
MozReview: Update header and navigation styles (Bug 1056377).

https://reviewboard.mozilla.org/r/55892/#review55908

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:76
(Diff revision 3)
> +@media screen and (max-width: 720px), screen and (max-device-width: 720px) and (orientation: landscape) {
> +  #headerbar #rbinfo a {
> +    display: none;
> +  }
> +}

Can you please include a screenshot where this would apply?
Attachment #8757459 - Flags: review?(smacleod)
Attachment #8757460 - Flags: review?(smacleod)
Comment on attachment 8757460 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

https://reviewboard.mozilla.org/r/55894/#review55916

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:146
(Diff revision 3)
> +/* Review Requests */
> +.review-request {

Anything that only applies to review request pages should be in the `review` bundle, rather than the `default` bundle which is applied to every page.

It might even make sense to put the reskin into its own less files (one in the `default` bundle and one in the `review`), they'll be minified into the same CSS file as the rest of the bundle, but gives us the separation.

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:207
(Diff revision 3)
> +
> +.actions .menu {
> +  border: 0;
> +}
> +
> +/* Review Banners */

Could you please include screenshots showing the updated review boxes and banners?
Comment on attachment 8757461 [details]
MozReview:  Update Diff Viewer and grid styles (Bug 1056377).

https://reviewboard.mozilla.org/r/55896/#review55930

::: pylib/mozreview/mozreview/static/mozreview/css/common.less:321
(Diff revision 3)
> +    }
> +
> +
> +    .datagrid-title-tabs .datagrid-tab {
> +      border: 0;
> +      

trailing whitespace
Attachment #8757461 - Flags: review?(smacleod)
Comment on attachment 8757462 [details]
MozReview:  Update dialog and comment dialog styles (Bug 1056377).

https://reviewboard.mozilla.org/r/55898/#review55938
Attachment #8757462 - Flags: review?(smacleod)
Comment on attachment 8757459 [details]
MozReview: Update header and navigation styles (Bug 1056377).

https://reviewboard.mozilla.org/r/55892/#review56630
Attachment #8757459 - Flags: review?(barret)
Comment on attachment 8757458 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55890/diff/3-4/
Attachment #8757458 - Flags: review?(smacleod)
Attachment #8757459 - Flags: review?(smacleod)
Attachment #8757460 - Flags: review?(barret) → review?(smacleod)
Attachment #8757461 - Flags: review?(smacleod)
Attachment #8757462 - Flags: review?(smacleod)
Comment on attachment 8757459 [details]
MozReview: Update header and navigation styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55892/diff/3-4/
Comment on attachment 8757460 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55894/diff/3-4/
Comment on attachment 8757461 [details]
MozReview:  Update Diff Viewer and grid styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55896/diff/3-4/
Comment on attachment 8757462 [details]
MozReview:  Update dialog and comment dialog styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55898/diff/3-4/
Attachment #8757457 - Attachment is obsolete: true
Comment on attachment 8757459 [details]
MozReview: Update header and navigation styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55892/diff/4-5/
Comment on attachment 8757460 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55894/diff/4-5/
Comment on attachment 8757461 [details]
MozReview:  Update Diff Viewer and grid styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55896/diff/4-5/
Comment on attachment 8757462 [details]
MozReview:  Update dialog and comment dialog styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55898/diff/4-5/
https://reviewboard.mozilla.org/r/55890/#review55894

I've removed the special fonts.  I've been told by Martell that we're switching to a different standard Mozilla font so I'll let others do that first.

> Since we're distributing these fonts we need to provide the license along with them.

Dropping this; it's not a bad idea but neither MDN or Bedrock do this and so I don't think it should block.

> How vital is this font change to the new look and feel? I'd love to see some screenshots / some justification for why we're introducing them.
> 
> What sort of impract on performance can we expect?

There will be a slight performance hit because (1) it's a new resource and (2) there's font-rendering time.  I've updated to use this font because it's Mozilla's standard font, used on every Mozilla property.
https://reviewboard.mozilla.org/r/55892/#review55908

> Can you please include a screenshot where this would apply?

Added; the branding would take up valuable vertical real estate on small screens, and it's only for vanity, so we don't need it.
Comment on attachment 8757458 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55890/diff/4-5/
Comment on attachment 8757459 [details]
MozReview: Update header and navigation styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55892/diff/5-6/
Comment on attachment 8757460 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55894/diff/5-6/
Comment on attachment 8757461 [details]
MozReview:  Update Diff Viewer and grid styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55896/diff/5-6/
Comment on attachment 8757462 [details]
MozReview:  Update dialog and comment dialog styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/55898/diff/5-6/
https://reviewboard.mozilla.org/r/55894/#review55916

> Anything that only applies to review request pages should be in the `review` bundle, rather than the `default` bundle which is applied to every page.
> 
> It might even make sense to put the reskin into its own less files (one in the `default` bundle and one in the `review`), they'll be minified into the same CSS file as the rest of the bundle, but gives us the separation.

Somewhat addressed here:  https://reviewboard.mozilla.org/r/60558/
https://reviewboard.mozilla.org/r/60558/#review57442

I've tried to logically move the skin stuff here.  Quick note:  this *isn't* working -- `./mozreview refresh` is bombing because it can't find the correct path to the `-vars.less` file, despite the first path being correct.

```
raise CompilerError(stderr)
pipeline.exceptions.CompilerError: FileError: 'mozilla-theme-vars.less' wasn't found. Tried - /version-control-tools/pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme-vars.less,/version-control-tools/pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme-vars.less,/version-control-tools/pylib/mozreview/mozreview/mozilla-theme-vars.less,/venv/lib/python2.6/site-packages/reviewboard/mozilla-theme-vars.less,/venv/lib/python2.6/site-packages/djblets/mozilla-theme-vars.less,mozilla-theme-vars.less in /version-control-tools/pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme-review.less on line 2, column 1:
1 @RB_MINOR_VERSION: 5;@STATIC_ROOT: "/static/";@DEBUG: false;@RB_IS_RELEASED: 0;@RB_MICRO_VERSION: 4;@RB_PATCH_VERSION: 0;@RB_MAJOR_VERSION: 2;
2 @import (reference) 'mozilla-theme-vars';
```

I've also pushed this for discussion of how we'd like to do this moving forward.  Any comments welcome.
https://reviewboard.mozilla.org/r/60558/#review58454

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:1
(Diff revision 1)
> +@import 'mozilla-theme-vars.less';

Adding stub issue for overall error.
Comment on attachment 8764987 [details]
MozReview: Move new skin to its own files (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/60558/diff/1-2/
Attachment #8757458 - Attachment is obsolete: true
Attachment #8757458 - Flags: review?(smacleod)
Attachment #8757459 - Attachment is obsolete: true
Attachment #8757459 - Flags: review?(smacleod)
Attachment #8757460 - Attachment is obsolete: true
Attachment #8757460 - Flags: review?(smacleod)
Attachment #8757461 - Attachment is obsolete: true
Attachment #8757461 - Flags: review?(smacleod)
Attachment #8757462 - Attachment is obsolete: true
Attachment #8757462 - Flags: review?(smacleod)
Attachment #8764987 - Attachment is obsolete: true
Attachment #8764987 - Flags: review?(smacleod)
https://reviewboard.mozilla.org/r/55886/#review58622

Closing this because it requires an update that should be made post-rbbz-rebase.  This review request got hosed.
Review commit: https://reviewboard.mozilla.org/r/63520/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/63520/
Attachment #8769814 - Flags: review?(smacleod)
Attachment #8769815 - Flags: review?(smacleod)
Attachment #8769816 - Flags: review?(smacleod)
Attachment #8769817 - Flags: review?(smacleod)
Attachment #8769818 - Flags: review?(smacleod)
https://reviewboard.mozilla.org/r/63528/#review60388

Let me know if this is more to your liking.  I can redo the review structure and start the changes in this format.
https://reviewboard.mozilla.org/r/63528/#review60388

Yup, separating it like that seems good to me :D
Review commit: https://reviewboard.mozilla.org/r/63556/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/63556/
Attachment #8769858 - Flags: review?(smacleod)
Attachment #8769859 - Flags: review?(smacleod)
Attachment #8769860 - Flags: review?(smacleod)
Attachment #8769861 - Flags: review?(smacleod)
Attachment #8769814 - Attachment is obsolete: true
Attachment #8769814 - Flags: review?(smacleod)
Attachment #8769815 - Attachment is obsolete: true
Attachment #8769815 - Flags: review?(smacleod)
Attachment #8769816 - Attachment is obsolete: true
Attachment #8769816 - Flags: review?(smacleod)
Attachment #8769817 - Attachment is obsolete: true
Attachment #8769817 - Flags: review?(smacleod)
Attachment #8769818 - Attachment is obsolete: true
Attachment #8769818 - Flags: review?(smacleod)
Comment on attachment 8769858 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

https://reviewboard.mozilla.org/r/63556/#review61008

The code looks fine, and the screenshots are baller.
Attachment #8769858 - Flags: review+
Comment on attachment 8769859 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

https://reviewboard.mozilla.org/r/63558/#review61010

Just a quick question about border-radius(0);. Otherwise, lgtm.

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme-reviews.less:8
(Diff revision 1)
> +/* Review Requests */
> +.review-request {
> +  .main {
> +    background: #fff;
> +    border: 0;
> +    border-radius: 0;

Woo - no border-radius!

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme-reviews.less:28
(Diff revision 1)
> +  background: @moz-blue-dark;
> +  border: 0;
> +}
> +
> +.actions-container {
> +  .border-radius(0);

At first I thought this was an error, and then I realized that LESS allows us to [define macros like this](https://github.com/reviewboard/reviewboard/blob/1ddc83098007246c1790d7a1cd9b2c4cdb4713c0/reviewboard/static/rb/css/mixins/style.less#L6)

According to the documentation in that file, these macros are deprecated. Are we able to just use `border-radius: 0;` directly?

Same for other uses in this file.
Attachment #8769859 - Flags: review+
Comment on attachment 8769860 [details]
MozReview: Update Diff Viewer and grid styles (Bug 1056377).

https://reviewboard.mozilla.org/r/63560/#review61012

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:129
(Diff revision 1)
> +  #page_sidebar {
> +    .page-sidebar-items {
> +      li.has-url {
> +        &:hover {
> +          .page-sidebar-row {
> +            .border-radius(0);

Same as other commit regarding this macro, including other uses in this commit.

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:130
(Diff revision 1)
> +    .page-sidebar-items {
> +      li.has-url {
> +        &:hover {
> +          .page-sidebar-row {
> +            .border-radius(0);
> +            background: rgba(255, 255, 255, 0.6);

Worth putting into a variable, maybe in a follow-up?

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:163
(Diff revision 1)
> +
> +  .datagrid-header {
> +    background: @moz-blue-dark;
> +  }
> +}
> +body.datagrid-page {

Nit: newline before this new block please.

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:218
(Diff revision 1)
> +
> +    .datagrid-title-tabs .datagrid-tab {
> +      border: 0;
> +
> +      &.active {
> +        background: #d4dde4;

Worth extracting this out to a variable, maybe in a follow-up patch?

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:253
(Diff revision 1)
> +	border-left: 1px solid @moz-blue-light;
> +	padding: 0 20px;

Busted indentation
Attachment #8769860 - Flags: review+
Comment on attachment 8769861 [details]
MozReview: Update dialog and comment dialog styles (Bug 1056377).

https://reviewboard.mozilla.org/r/63562/#review61014

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:276
(Diff revision 1)
>  }
> +
> +/* Dialogs */
> +.modalbox-inner, .modalbox-title, .modalbox {
> +  background-image: none;
> +  .border-radius(0);

Same as before with this macro.

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:281
(Diff revision 1)
> +  .border-radius(0);
> +}
> +
> +.modalbox-title {
> +  background: @moz-blue-dark;
> +  border-bottom-color: #888a85;

Variable for this?

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:289
(Diff revision 1)
> +.modalbox-inner {
> +  background: @moz-blue-light;
> +}
> +
> +.modalbox-bg {
> +  background: rgba(255, 255, 255, 0.6) !important; /* overriding JS */

And this too?
Attachment #8769861 - Flags: review+
https://reviewboard.mozilla.org/r/63558/#review61010

> At first I thought this was an error, and then I realized that LESS allows us to [define macros like this](https://github.com/reviewboard/reviewboard/blob/1ddc83098007246c1790d7a1cd9b2c4cdb4713c0/reviewboard/static/rb/css/mixins/style.less#L6)
> 
> According to the documentation in that file, these macros are deprecated. Are we able to just use `border-radius: 0;` directly?
> 
> Same for other uses in this file.

I just realized you defined the macro yourself in the first patch - my bad for missing that.
https://reviewboard.mozilla.org/r/63560/#review61012

> Same as other commit regarding this macro, including other uses in this commit.

Dropping, since you define this macro yourself in the first commit.
https://reviewboard.mozilla.org/r/63562/#review61014

> Same as before with this macro.

Dropping, since you define this macro yourself in the first commit.
Comment on attachment 8769858 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/63556/diff/1-2/
Attachment #8769858 - Flags: review+
Attachment #8769859 - Flags: review+
Attachment #8769860 - Flags: review+
Comment on attachment 8769859 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/63558/diff/1-2/
Comment on attachment 8769860 [details]
MozReview: Update Diff Viewer and grid styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/63560/diff/1-2/
Attachment #8769861 - Attachment is obsolete: true
Attachment #8769861 - Flags: review?(smacleod)
https://reviewboard.mozilla.org/r/63560/#review61034

::: pylib/mozreview/mozreview/static/mozreview/css/mozilla-theme.less:282
(Diff revision 2)
> +  .border-radius(0);
> +}
> +
> +.modalbox-title {
> +  background: @moz-blue-dark;
> +  border-bottom-color: #888a85;

Didn't add a var for this because this dialog will be going away shortly with the dropdown dialog; color is the current dialog border color.
Comment on attachment 8769858 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

https://reviewboard.mozilla.org/r/63556/#review62676
Attachment #8769858 - Flags: review?(smacleod) → review+
Comment on attachment 8769859 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

https://reviewboard.mozilla.org/r/63558/#review62678
Attachment #8769859 - Flags: review?(smacleod) → review+
Comment on attachment 8769860 [details]
MozReview: Update Diff Viewer and grid styles (Bug 1056377).

https://reviewboard.mozilla.org/r/63560/#review62674

Looks great :D, just the little overflow issue.
Attachment #8769860 - Flags: review?(smacleod) → review+
Comment on attachment 8769858 [details]
MozReview: Update base site colors and fonts (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/63556/diff/2-3/
Comment on attachment 8769859 [details]
MozReview: Update Review Request page, banner, and comments styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/63558/diff/2-3/
Comment on attachment 8769860 [details]
MozReview: Update Diff Viewer and grid styles (Bug 1056377).

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/63560/diff/2-3/
Pushed by bjones@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/58ad2f8e01e1
MozReview: Update base site colors and fonts . r=mconley,smacleod
https://hg.mozilla.org/hgcustom/version-control-tools/rev/20e40a4963c0
MozReview: Update Review Request page, banner, and comments styles . r=mconley,smacleod
https://hg.mozilla.org/hgcustom/version-control-tools/rev/77d80b0b77e5
MozReview: Update Diff Viewer and grid styles . r=mconley,smacleod
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
The prod deploy didn't like the logo.svg change.

It was complaining during "collectstatic" that a ext/mozreview.extension/MozReviewExtension/mozreview/logo.svg could not be found.

I hacked around this by copying the logo.svg into that directory on the admin server to unblock the deploy.
Flags: needinfo?(dwalsh)
Reopening in hopes it frees up to add a review request on MozReview...
Status: RESOLVED → REOPENED
Flags: needinfo?(dwalsh)
Resolution: FIXED → ---
Keeping myself as needinfo for purpose of SVG issue if it pops up again.
Flags: needinfo?(davidwalsh83)
Depends on: 1288777
please don't reopen deployed bugs; file new bugs for issues.
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Flags: needinfo?(davidwalsh83)
Resolution: --- → FIXED
Depends on: 1289021
Depends on: 1289267
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: