Repository navigation
Add hidden-review-comments-indicator feature - #2320
Conversation
|
Thank you for your PR, @sidvishnoi :) |
|
Thanks for reviewing. Will continue with rest tomorrow. It's late night here. |
|
@fregante Notable changes since yesterday:
|
And improve performance by using a single MutationObserver
| } | ||
|
|
||
| .show-inline-notes .rgh-comments-indicator { | ||
| display: none; |
There was a problem hiding this comment.
This will remove the ability to toggle comment through indicators. I don't think we should do that. The original feature request also suggested so:
It'd also be useful to be able to expand/collapse comments on those placeholders.
There was a problem hiding this comment.
I missed that part, I was working on the assumption that they only appear when the comments are hidden.
The idea isn't bad, but I think it makes the UI more busy.
There was a problem hiding this comment.
Perhaps making the underline a bit lighter will improve the UI.
fregante
left a comment
There was a problem hiding this comment.
This feature works well, but currently conflicts with https://github.com/OctoLinker/OctoLinker
OctoLinker seems to add a overflow-x property which causes the icon to be clipped off:
This should be resolved by overriding the overflow and/or opening an issue on OctoLinker to drop it, if not necessary
Indeed. I found the culprit:
|
|
The |
I think removing either could cause issues and conflicts. The best solution is to ask about it on OctoLinker and suggest its removal there. Perhaps the selector can be improved to avoid the Files tab. I'm not entirely sure of what it does.
|
review-comments-hidden-indicator featurehidden-review-comments-indicator feature
Reduce opacity of indicator underline to make UI less noisy This also reverts commit cd5abfc.
|
@fregante Made indicators toggle-able, not just hide-able. Please revert if you do not feel like supporting that feature. |
|
What's the purpose of hiding a visible comment? That's what the "Resolve" button is for, right? |
|
@sindresorhus While reviewing code, one may want to reduce the distractions in order to have a better picture of diff - so we hide comments, as requested in #1999. Resolve button is to tell comment has been resolved. So, entirely different purpose. |
|
But there's already a button to hide all the comments. I don't really see the point in hiding a single comment. |
Yes. It extends that functionality. The default one hides all comments, and one can't know if there are any comments unless they click that button again. This feature adds an indicator when comments are hidden.
This feature hides all the comments, not a single comment. |
It hides all the comments in a single file, which is the same feature already offered by GitHub. We can do without this |
|
Thanks for this feature @sidvishnoi! ^____^ |
|
Oh, I totally missed split-diff view! Thanks a lot @fregante for the insightful reviews and edits! 🎉 |
|
Thanks for this! I was doing a code review and it started working. Very excited 😄 |




Closes #1999
Test
https://github.com/sidvishnoi/refined-github/pull/1/files
IssueHunt Summary
Referenced issues
This pull request has been submitted to:
IssueHunt has been backed by the following sponsors. Become a sponsor