Repository navigation
dim-viewed-files - New feature - #10172
Conversation
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Scope folder selectors to the labeled file tree without relying on the legacy files_bucket container. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Remove legacy selectors and redundant viewed-state checks. Use diff IDs, aria-pressed, and modern tree items directly. Co-authored-by: Copilot App <[email protected]>
Avoid marking unviewed buttons as seen before aria-pressed becomes true. Co-authored-by: Copilot App <[email protected]>
fregante
left a comment
There was a problem hiding this comment.
It looks like a small feature now
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
dim-viewed-files - Dim viewed files in the PR file treedim-viewed-files - New feature
Co-authored-by: Copilot App <[email protected]>
|
@fregante I updated the code. It did work on one PR but not on another, but I found what was missing. Good catch, thanks for checking. I think this should be good now. |
|
Oh yay! I'm happy to see this built-in! I just started using Refined Github, and have been building Userscripts for Greasmonkey/ViolentMonkey as well to add further features. I'm kinda wanting to see if some of them could live in Refined GitHub instead. 🙂 I had the idea to dim files too: If I could suggest one tweak to this implementation of the feature, then I could deprecate my userscript entirely: What would you think of doing strikethrough if it's viewed, and grayed out if it's simply collapsed? Like so: When reviewing PRs I like to collapse files if I haven't gotten to them yet, and having a way to distinguish between "collapsed" and "viewed" in the file tree is very handy. I'd be happy to add this in a new PR if it's reasonable 🙂 |




Adds
dim-viewed-files: dims files marked as "Viewed" in the PR file tree, plus folders whose files are all viewed, so unreviewed files stand out.:has(); only the folder's own row is dimmed to avoid compounding opacity on nested items.Test URLs
https://github.com/refined-github/refined-github/pull/10172/changes
Screenshot