file-age-color - Dim files older than 1 year#9163
Closed
Copilot wants to merge 3 commits into
Closed
Conversation
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/4496bcbd-e6b2-4286-a41f-abd539344ce6 Co-authored-by: fregante <[email protected]>
Copilot
AI
changed the title
[WIP] Add opacity reduction for files older than one year
file-age-color: dim rows for files older than 1 year
Apr 6, 2026
fregante
approved these changes
Apr 6, 2026
| const diff = Date.now() - lastUpdate.getTime(); | ||
|
|
||
| if (diff > 365.25 * 24 * 60 * 60 * 1000) { | ||
| lastUpdateElement.closest('tr, [role="row"]')!.style.opacity = '0.8'; |
Member
There was a problem hiding this comment.
Suggested change
| lastUpdateElement.closest('tr, [role="row"]')!.style.opacity = '0.8'; | |
| lastUpdateElement.style.opacity = '0.8'; |
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/4bb28f10-4944-498f-ba56-c42d3f20e991 Co-authored-by: fregante <[email protected]>
Copilot
AI
changed the title
file-age-color: dim rows for files older than 1 year
file-age-color: dim files older than 1 year
Apr 6, 2026
file-age-color: dim files older than 1 year
file-age-color: dim files older than 1 year
fregante
approved these changes
Apr 6, 2026
file-age-color: dim files older than 1 yearfile-age-color - Dim files older than 1 year
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Files older than 1 year get
opacity: 0.8applied directly to the age element. The existing heat-color logic only covers recently updated files (~23 days), so the old-file path returns early before reachingcreateHeatIndex.Test URLs
https://github.com/refined-github/refined-github
https://github.com/refined-github/refined-github/tree/main/source
Screenshot