# fix\(spend\): anchor heatmap weeks and localize history dates \(\#376\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/f18f827b5a9d916b5e2c55da01b51860fa801c43)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: f18f827b5a9d916b5e2c55da01b51860fa801c43

Requested commit: f18f827b5a9d916b5e2c55da01b51860fa801c43

Commit: f18f827b5a9d916b5e2c55da01b51860fa801c43

Tree: 0badc6e86f9324b6dc983c4d63184ad25681539f

Author: Simone

Committer: GitHub

## Message

```
fix(spend): anchor heatmap weeks and localize history dates (#376)

The activity heatmap's weekday rows started on the day after the newest day,
so every row changed weekday as days passed. Rows now start on the locale's
first day of the week, and empty cells after the newest day close its week.
Chart axis, readout, and heatmap dates used the CLI's YYYY-MM-DD keys; they
now use the locale's short date, built from the calendar parts so zones west
of UTC keep the same day. Cost lines separate amount and tokens with a middle
dot, matching the Sessions tab.

Provider rows keep the user's configured provider order rather than sorting
by cost, so the order stays consistent across the popup.

Documentation impact: CHANGELOG Unreleased, usage guide Usage & Spend entry,
cost-history heatmap note, regenerated README Usage & Spend capture and the
tour GIF's Usage & Spend frame. Catalog references only; no strings changed.
TODO.md is unaffected.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
```

## Parents

- [5475a23eb6119caeaf41b683c013160a94e0fae9](https://git.cafe/lucenx/codexbar-plasma/commit/5475a23eb6119caeaf41b683c013160a94e0fae9?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/f18f827b5a9d916b5e2c55da01b51860fa801c43?format=markdown)
