Skip to content

fix(settings): keep higher usage heatmap colors darker in both themes - #1301

Open
annasu3004 wants to merge 1 commit into
Stack-Cairn:mainfrom
annasu3004:fix/usage-heatmap-dark-scale
Open

annasu3004 wants to merge 1 commit into
Stack-Cairn:mainfrom
annasu3004:fix/usage-heatmap-dark-scale

Conversation

@annasu3004

@annasu3004 annasu3004 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • All 23 usage statistics tests passed.
  • GUI TypeScript checks passed.
  • git diff --check passed.

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.

liveagent-heatmap-before-after

@annasu3004
annasu3004 marked this pull request as ready for review November 15, 2026 15:30
@StackCairn
StackCairn marked this pull request as draft November 15, 2026 15:31
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

PR governance checks passed. Awaiting human review.

@annasu3004
annasu3004 marked this pull request as ready for review November 15, 2026 15:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 用量统计热力图在深色主题下颜色深浅与 token 用量相反

1 participant