Add the ability to toggle display of entire files.
Review Request #11210 — Created Oct. 5, 2020 and updated — Latest diff uploaded
The current diff viewer shows the changes for all files and it can be
tedious to scroll through, especially with large changes. Adding the
ability to hide/unhide files will better allow users to look at only
a subset of the changes at once.We added a toggle to the header for each file that collapses the file
to a single line filename. Toggling a collapsed file header will expand
the entire file. This feature is referenced from the toggling of
Reviews
in aReview Request
. When the toggle button is clicked,
jQuerytoggle()
is called on therevision-row
class andtbody
attribute. Thetoggle()
function works toggling the CSSdisplay
property betweendisplay: none
.
Wrote
onToggleCollapseClicked
indiffReviewableViewTests.es6.js
.