-
Notifications
You must be signed in to change notification settings - Fork 404
collapse large diffs && collapse/expand any diff within multi file patch view #1913
Conversation
Set this based on performance measurementsgithub/lib/models/patch/builder.js Lines 12 to 17 in 7eab119
This comment was generated by todo based on a
|
do something with large diff toogithub/lib/models/patch/builder.js Lines 178 to 183 in 7eab119
This comment was generated by todo based on a
|
it prob shouldn't extend NullPatchgithub/lib/models/patch/patch.js Lines 395 to 400 in 7eab119
This comment was generated by todo based on a
|
Codecov Report
@@ Coverage Diff @@
## master #1913 +/- ##
==========================================
+ Coverage 92.12% 92.57% +0.45%
==========================================
Files 188 189 +1
Lines 10809 11237 +428
Branches 1582 1633 +51
==========================================
+ Hits 9958 10403 +445
+ Misses 851 834 -17
Continue to review full report at Codecov.
|
...not sure how we would get into this situation, but it seems like an important case to cover.
unnecessary console output during tests is a bummer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a few minor tweaks and renames. Almost there 🎉
> > > Render a sequence of git-generated file patches within a TextEditor, using decorations to include contextually | ||
> > > relevant controls. | ||
> > > Render a sequence of git-generated file patches within a TextEditor, using decorations to include contextually relevant controls. | ||
> > > See [`MultiFilePatchView` atlas](#multifilepatchview-atlas) below for a more detailed breakdown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I really want is a tool that parses our source and outputs this atlas as an .svg diagram or something 🤔
}); | ||
}); | ||
|
||
it('is deterministic regardless of the order in which collapse and expand operations are performed', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still proud of this test case 😆
|
||
|
||
|
||
## `MultiFilePatchView` Atlas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another test comment
Description of the Change
This pull request adds code to detect large diffs, and automatically collapse them. It also adds the ability for users to collapse and expand any diff within a multi file patch view. There's a lot of shared logic between both so it made sense to tackle them at the same time.
TODO
https://github.com/atom/github/projects/18
Screenshot/Gif
TBD
Alternate Designs
Benefits
Possible Drawbacks
TBD
Applicable Issues
#1860
QA Checklist
Metrics
Tests
TBD
Documentation
TBD
Release Notes
The GitHub package now supports collapsing and expanding any files within multi file diff views (such as commit preview and the pull request files view), and also automatically collapses large files.
User Experience Research (Optional)
The UI is simple enough for this that I would argue it does not warrant UXR.