You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add button to collapse all pull request files diffs #4333
When reviewing a fairly large PR the UI can get slow, especially if there's a lot of auto-generated stuff (lots of files, large snapshots, lockfile updates, etc).
Even though Github doesn't load large diffs by default, if you got tons of files with small diffs, it still causes slowness and creates literally an "infinite scroll" when you want to verify for something in specific.
This one is not that bad, the one that made me thought about it is actually from a private repo that I can't share, but it touched 189 files (mostly editing 3 LOCs everywhere), and huge lock files updates (diff stat was +35000, -32000).
Suggested implementation
Button could be at the left of the "x / y files viewed" section. Could be a hotkey as well on the first file, i.e if you click it holding alt, it collapses everything.
Clicking would trigger something along those lines:
Activity
jerone commentedon May 9, 2021
Sounds like a feature that already exists:
toggle-everything-with-alt.rdsedmundo commentedon May 9, 2021
Oh yeah, that does it. I tried searching but used the "pull request" keyword and didn't find anything. Thanks for pointing it out.