Add a smart tooltip to show descriptions in the diffviewer
Review Request #7256 — Created April 27, 2015 and submitted
Hovering over a summary in the commit description table now shows a
tooltip with copyable text if the commit's description is longer than
he summary. Moving the mouse off of the tooltip causes it to disappear.
Verified that the description was correctly shown.
The tooltip's text align's pixel-perfectly with the table's text in
Chrome, Firefox, and Safari on OS X.
Description | From | Last Updated |
---|---|---|
Blank line after this. |
david | |
Undo this change. |
david | |
If you're using .text(), you shouldn't also need to escape. |
david | |
These should go up below background-color. Also, no blank lines between the rules (as it gets harder to differentiate rules … |
chipx86 | |
Should be .box-shadow(...). |
chipx86 | |
We have a new .transition for this that does all the vendor-specific prefixes (though you'll need to pass duration as … |
chipx86 | |
This will put the cid key in diffCommit.attributes, which probably isn't what you want. You can instead put {} as … |
chipx86 | |
_.noop is built for this purpose. Not a big difference, except that it's one less function to create. |
chipx86 | |
Where does the 9 come from? |
chipx86 | |
Can you put the function body on its own line? |
chipx86 | |
This doesn't seem like a useful rule :) |
david |
-
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less
-
-
These should go up below
background-color
. Also, no blank lines between the rules (as it gets harder to differentiate rules and nested styles).Also, should use
.border-radius(...)
. -
-
We have a new
.transition
for this that does all the vendor-specific prefixes (though you'll need to pass duration as part of the value). -
This will put the
cid
key indiffCommit.attributes
, which probably isn't what you want. You can instead put{}
as the first value to_.extend()
, or use_.defaults
. I think the latter is probably the best way to go.I also think, for future expansion, that this should be more like:
tr = this._itemTemplate(_.defaults( { cid: diffCommit.cid }, diffCommit.attributes));
-
_.noop
is built for this purpose. Not a big difference, except that it's one less function to create. -
-
- Commit:
-
e85d8ce158d8289ffd214b8816b8c9dd26f1e33b003ee6747e6f5dc39a32eedcdb32e1119e1b22fa
- Diff:
-
Revision 3 (+494 -212)
-
Tool: Pyflakes Processed Files: reviewboard/datagrids/columns.py reviewboard/reviews/templatetags/reviewtags.py Ignored Files: reviewboard/static/rb/js/newReviewRequest/views/repositoryView.js reviewboard/templates/datagrids/datagrid.html reviewboard/static/rb/js/newReviewRequest/views/newReviewRequestView.js reviewboard/templates/reviews/review_reply.html reviewboard/static/rb/css/pages/newReviewRequest.less reviewboard/static/rb/js/views/uploadDiffView.js reviewboard/static/rb/js/newReviewRequest/views/postCommitView.js reviewboard/static/rb/css/pages/diffviewer.less reviewboard/static/rb/css/ui/sidebars.less reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/base.less reviewboard/static/rb/css/ui/datagrids.less reviewboard/static/rb/css/pages/admin.less reviewboard/static/rb/js/newReviewRequest/views/commitView.js reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/reviews/new_review_request.html reviewboard/static/rb/css/defs.less reviewboard/static/rb/js/newReviewRequest/views/repositorySelectionView.js reviewboard/static/rb/css/mixins/style.less Tool: PEP8 Style Checker Processed Files: reviewboard/datagrids/columns.py reviewboard/reviews/templatetags/reviewtags.py Ignored Files: reviewboard/static/rb/js/newReviewRequest/views/repositoryView.js reviewboard/templates/datagrids/datagrid.html reviewboard/static/rb/js/newReviewRequest/views/newReviewRequestView.js reviewboard/templates/reviews/review_reply.html reviewboard/static/rb/css/pages/newReviewRequest.less reviewboard/static/rb/js/views/uploadDiffView.js reviewboard/static/rb/js/newReviewRequest/views/postCommitView.js reviewboard/static/rb/css/pages/diffviewer.less reviewboard/static/rb/css/ui/sidebars.less reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/base.less reviewboard/static/rb/css/ui/datagrids.less reviewboard/static/rb/css/pages/admin.less reviewboard/static/rb/js/newReviewRequest/views/commitView.js reviewboard/static/rb/css/pages/reviews.less reviewboard/templates/reviews/new_review_request.html reviewboard/static/rb/css/defs.less reviewboard/static/rb/js/newReviewRequest/views/repositorySelectionView.js reviewboard/static/rb/css/mixins/style.less
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less
- Change Summary:
-
Positioning adjustments. Renders perfect on Fx, but is off to top and right by 1px in chrome.
- Commit:
-
a35fe64fcdedcb3df6be92caae76cc2a14164a487380c0781cda65c60d760882abfa5dedb3e1c259
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less
- Change Summary:
-
Now pixel perfect in Chrome, Fx, and Safari on OSX.
- Testing Done:
-
Verified that the description was correctly shown.
~ TODO: Cannot seem to get this pixel perfect.
~ The tooltip's text align's pixel-perfectly with the table's text in
+ Chrome, Firefox, and Safari on OS X. - Commit:
-
7380c0781cda65c60d760882abfa5dedb3e1c259afaa8208efdff40b406afb2225ef6fb2d3822a00
-
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less
- Change Summary:
-
Remove empty LESS rule.
- Commit:
-
afaa8208efdff40b406afb2225ef6fb2d3822a0094609f3b3c1c3089bb65c09edd9f181c61091d16
-
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/css/pages/diffviewer.less
- Change Summary:
-
Fix David's issue. Refactor.
- Commit:
-
94609f3b3c1c3089bb65c09edd9f181c61091d16fe4fb6d3945a4e507118915449e7730f9e37da77