Repository navigation
fix(settings): keep higher usage heatmap colors darker in both themes - #1301
Open
annasu3004 wants to merge 1 commit into
Open
annasu3004 wants to merge 1 commit into
annasu3004 wants to merge 1 commit into
Conversation
2 tasks done
annasu3004
marked this pull request as ready for review
November 15, 2026 15:30
StackCairn
marked this pull request as draft
November 15, 2026 15:31
Contributor
|
PR governance checks passed. Awaiting human review. |
annasu3004
marked this pull request as ready for review
November 15, 2026 15:34
This branch has not been deployed
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.
Closes #1302
Dark mode reversed the usage heatmap color scale, so low-token cells appeared darker than high-token cells. Keep the scale light-to-dark as token usage increases in both themes, with the legend using the same colors.
Add a regression test checking decreasing relative luminance across increasing token values in both themes. It fails with the previous dark palette and passes with this fix.
Validation:
Screenshots / preview
Actual UsageHeatmap component rendered in Safari with synthetic data (100, 200, 300, 400 tokens/day). Top: previous dark palette; bottom: corrected palette. No real usage data is included.