-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Improve file diff display in GitHub PR comments #12918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+50
−28
Merged
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d3c9b2b
Sort added files first in GitHub PR comment and auto-expand for small…
claude 26fe776
Clean up summary in files changed details header
claude bdf7281
Use HTML table in details element and separate all file groups
claude 779f373
Use group headings instead of per-file status in files changed table
claude 69aea34
Use lists and nested details for cleaner file diff display
claude 1703331
Simplify file diff display: flat layout, auto-expand under 5 files
claude 8dfbd34
Use markdown formatting for file diff display
claude b1f4876
Cap file lists at 10 per group with overflow count
claude 11d66e6
Split into simple and complex file diff layouts
claude e5deb9e
Use markdown list for simple layout to avoid <p> per file
claude 0bb6160
Use plain HTML lines for simple layout instead of markdown list
claude 8fabb43
Use code-styled text symbols (+, ±, -) instead of emoji
claude e5ee423
Use colored circle icons (🟢🟡🔴) for file status indicators
claude 77fdadc
Use ➕/±/➖ icons matching addons convention
claude 4a840d7
Revert to original ➕/📝/➖ icons
claude e1dedf9
Use code-styled +/±/- symbols for file status indicators
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a reason why you removed the icons we had? I personally can't distinguish the
-,±and+. They are rendered pretty small and look very similar.Uh oh!
There was an error while loading. Please reload this page.
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.
📝 was a weird one that didn't match the others, so I used a matching icon, but the colors are interesting 🤔
The current icons match the Addons approach:
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.
That's a good point, actually.
However, when looking at that in addons I don't really look at the icons since they are split in sections which is a lot more relevant.
My main problem with the
-,+and±is when there is no section separator, like in the compact form of the comment (less than 5 files). It's probably irrelevant, tho.This one works fine:
This one is confusing to me; they all look the same:
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.
Ideally, I would like to have the symbols you've used
-and+with colors, like GitHub:but not sure how easy is to have that.
Uh oh!
There was an error while loading. Please reload this page.
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.
Yea the AI tried color bubbles but they were pretty visually loud. 🔴🟢
I think if we were investing in this, we would do some images or custom art... I don't think it would really be hard to do it. We're just trying to keep things pretty constrained with the current approach.
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 happy to move forward here. We can always come back and change the icons. That shouldn't block the PR.