Refactor markup and CSS for entries on review request page.
Review Request #8373 — Created Sept. 1, 2016 and submitted
This change does some initial work cleaning up the markup and CSS for the
entries on the review request page (review and change descriptions). The
changes involved are:
- Removal of the use of the
{% box %}
template tag. This tag was adding a
bunch of additional layers of elements, which weren't really helpful. We were
overriding almost all the styles we got from them, and the very generic class
names that it used meant that our CSS selectors were a lot deeper than it
needed to be. - Updated class names within the entry headers to be a bit more sensible
("reviewer" -> "summary", "posted_time" -> "timestamp"). - Removed the margin on the sides of the entries, making them the same overall
width as the review request box (this wasn't too obvious before, but is much
more after adding a new top-level item for the initial status updates which
doesn't have the callout and avatar). - Tweaking of the spacing within boxes, especially collapsed ones, so that
there's equal height on either side of the collapse button. - Fixed the color of the callout triangle for change descriptions to match the
background of the box (it was previously white, which was so close that we
didn't notice it before).
The details of the markup and class name changes have been added to
https://www.notion.so/Review-Request-page-changes-for-3-0-8d27aac9e3ed4f81ac1e849ebb6127fe
Created a review request with a handful of reviews and change descriptions.
Verified the appearance and functionality in both desktop and mobile mode.
- Change Summary:
-
Fix some broken js-tests (which just needed to be updated for the new class names).
- Commit:
-
e0b226bfe69a57fd5b9c1e404774e9a3c8621ae0bf3f4636a0e36fbce6c7d093b6fe2f933940757a
- Diff:
-
Revision 2 (+147 -154)
-
Tool: Pyflakes Ignored Files: reviewboard/templates/reviews/boxes/review.html reviewboard/static/rb/js/views/tests/reviewBoxViewTests.js reviewboard/static/rb/js/views/collapsableBoxView.es6.js reviewboard/static/rb/js/pages/views/tests/reviewRequestPageViewTests.es6.js reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/reviews/boxes/change.html reviewboard/static/rb/js/views/reviewBoxView.es6.js Tool: PEP8 Style Checker Ignored Files: reviewboard/templates/reviews/boxes/review.html reviewboard/static/rb/js/views/tests/reviewBoxViewTests.js reviewboard/static/rb/js/views/collapsableBoxView.es6.js reviewboard/static/rb/js/pages/views/tests/reviewRequestPageViewTests.es6.js reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/reviews/boxes/change.html reviewboard/static/rb/js/views/reviewBoxView.es6.js
- Change Summary:
-
Make requested changes.
- Commit:
-
bf3f4636a0e36fbce6c7d093b6fe2f933940757a35843b0eb98f597155ef9d6abbafb27f2a4f23a4
- Diff:
-
Revision 3 (+142 -154)
-
Tool: Pyflakes Ignored Files: reviewboard/templates/reviews/boxes/review.html reviewboard/static/rb/js/views/tests/reviewBoxViewTests.js reviewboard/static/rb/js/views/collapsableBoxView.es6.js reviewboard/static/rb/js/pages/views/tests/reviewRequestPageViewTests.es6.js reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/reviews/boxes/change.html reviewboard/static/rb/js/views/reviewBoxView.es6.js Tool: PEP8 Style Checker Ignored Files: reviewboard/templates/reviews/boxes/review.html reviewboard/static/rb/js/views/tests/reviewBoxViewTests.js reviewboard/static/rb/js/views/collapsableBoxView.es6.js reviewboard/static/rb/js/pages/views/tests/reviewRequestPageViewTests.es6.js reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/reviews/boxes/change.html reviewboard/static/rb/js/views/reviewBoxView.es6.js