Skip to content

file-age-color - Dim older files#9162

Merged
fregante merged 4 commits intorefined-github:mainfrom
Flohhhhh:add-fade-to-heatmap
Apr 14, 2026
Merged

file-age-color - Dim older files#9162
fregante merged 4 commits intorefined-github:mainfrom
Flohhhhh:add-fade-to-heatmap

Conversation

@Flohhhhh
Copy link
Copy Markdown
Contributor

@Flohhhhh Flohhhhh commented Apr 4, 2026

Keep recent file activity dates highlighted in orange, then fade older dates by reducing the opacity of GitHub's muted text color.

Adds extra context with minimal styling and without overwhelming the page with hot file color. This makes the old-age side of the gradient theme-aware, adds customization hooks for the orange threshold, fade threshold, hot color, and minimum opacity, and avoids changing the shared heat-map logic used by other features.

Defaults to 365 as the threshold for oldest file color. Fades from default gray color to our default cold file color over the 365 period.

Test URLs

https://github.com/refined-github/refined-github/

Screenshot

image

Copy link
Copy Markdown
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is good but the amount of code is most definitely not. I'd think this would be 5-10 extra lines, not 190. At that length it's not worth it.

@Flohhhhh
Copy link
Copy Markdown
Contributor Author

Flohhhhh commented Apr 5, 2026

Sure makes sense, admittedly I didn't pay attention to the scope compared to other features. I'll give a shot at reducing or close this!

@Flohhhhh Flohhhhh marked this pull request as draft April 5, 2026 14:49
@fregante
Copy link
Copy Markdown
Member

fregante commented Apr 5, 2026

I'd start by just giving it a hard 1-year cutoff date for a single dimmed color. We don't really need the whole rainbow: focus on really new files, ignore the really old ones.

@Flohhhhh Flohhhhh marked this pull request as ready for review April 5, 2026 18:54
@Flohhhhh
Copy link
Copy Markdown
Contributor Author

Flohhhhh commented Apr 5, 2026

I moved all logic back to the single feature file, and condensed it. I also had implemented a separate test file which i thought was needed but I realize now it's not.

@Flohhhhh Flohhhhh requested a review from fregante April 6, 2026 01:40
@fregante
Copy link
Copy Markdown
Member

fregante commented Apr 6, 2026

I'd start by just giving it a hard 1-year cutoff date for a single dimmed color. We don't really need the whole rainbow: focus on really new files, ignore the really old ones.

@fregante
Copy link
Copy Markdown
Member

fregante commented Apr 6, 2026

@Flohhhhh How about #9163

@Flohhhhh Flohhhhh force-pushed the add-fade-to-heatmap branch from afda2be to b3e3bc1 Compare April 6, 2026 13:54
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

To maintainers: Please add labels to this PR

@Flohhhhh
Copy link
Copy Markdown
Contributor Author

Flohhhhh commented Apr 6, 2026

@fregante I see, I did personally prefer the gradient just because it's cool, but you're right that it's a lot of complexity for a hardly noticeable difference.

Let's compromise and have 2 fixed gray states instead of the gradient? 😄
I think overall this will be basically the same visual result as the gradient without the complexity I added before.

Surface is very small now on this.

image

@fregante fregante changed the title Add fade out to even older files in heatmap file-age-color - Dim older files Apr 6, 2026
@fregante fregante merged commit 94bad2c into refined-github:main Apr 14, 2026
12 checks passed
@Flohhhhh Flohhhhh deleted the add-fade-to-heatmap branch April 14, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants