Skip to content

Commit eb8ab09

Browse files
committed
Release v1.2.2
2 parents e13b327 + 3d53f6d commit eb8ab09

8 files changed

Lines changed: 193 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## v1.2.2 — 2026-05-30
4+
5+
### Dashboard
6+
7+
- Show the gauge icon to the left of the header title, tinted to match the title color (`var(--accent)`) via a CSS `mask` so it tracks the accent dynamically. Served from a new `GET /icon.svg` route that locates `resources/icon.svg` in both run contexts (bundled `.vsix``python/dashboard.py``../resources/icon.svg`; and standalone repo — `vscode-extension/resources/icon.svg`).
8+
- Renamed the header from "Claude Code Usage Dashboard" to "Claude Code Usage".
9+
- Fixed charts not resizing when the window is narrowed (they only adjusted on the next data refresh). Grid cards now set `min-width: 0` so the container can shrink below the canvas's intrinsic width, letting Chart.js's `ResizeObserver` fire live. Widening already worked.
10+
- Debounced chart resizing with Chart.js `resizeDelay` (150 ms) so dragging the window narrower no longer re-renders the canvases on every tick.
11+
- Cost by Model, Recent Sessions, Cost by Project, and Cost by Project & Branch tables now reveal rows in steps — 10 → 25 → 50 — with `Show more ▾` / `Show less ▴` controls at the bottom right (`Show less` appears only once a table is expanded past the first step). Rendering is capped at 50 rows for performance; past that the footer shows a "Download CSV to see all (N)" link (N = total rows) that triggers the same export as the table's CSV button, alongside Show less (which resets to 10). Sorting re-applies to the full data set, so the visible rows always reflect the active sort; the control is hidden when a table has 10 or fewer rows. Clicking Show less also scrolls back to the top of that table.
12+
- Styled scrollbars to match the VS Code dark UI (no arrows) via `::-webkit-scrollbar`: a 21px-wide gutter with a `#28292B` thumb (`#8B8B8D` on hover) over a `#121314` track. The dashboard's webview iframe doesn't inherit VS Code's `--vscode-*` theme variables, so the colors are set directly.
13+
- Added a CSV export for the Cost by Model table (`exportModelCSV`), used by its "Download CSV to see more" link.
14+
- Adjusted the page background to `#191A1B`.
15+
- Updated the pricing footnote date to "as of May 2026".
16+
317
## v1.2.1 — 2026-05-29
418

519
### Extension

dashboard.py

Lines changed: 174 additions & 16 deletions
Large diffs are not rendered by default.

tests/test_dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def test_index_with_query_string_returns_html(self):
298298
for qs in ("?range=all", "?range=30d&models=claude-opus-4-7"):
299299
with urllib.request.urlopen(f"http://127.0.0.1:{self.port}/{qs}") as resp:
300300
self.assertEqual(resp.status, 200)
301-
self.assertIn(b"Claude Code Usage Dashboard", resp.read())
301+
self.assertIn(b"Claude Code Usage", resp.read())
302302

303303
def test_api_data_with_query_string(self):
304304
# /api/data is fetched without query parameters today, but the route

vscode-extension/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vscode-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "claude-usage-phuryn",
33
"displayName": "Claude Code Usage by Paweł Huryn",
44
"description": "Embed your Claude Code usage dashboard (token counts, costs, sessions, projects) directly inside VS Code. Reads local JSONL transcripts, no API calls.",
5-
"version": "1.2.1",
5+
"version": "1.2.2",
66
"publisher": "PawelHuryn",
77
"author": {
88
"name": "Paweł Huryn",
2.4 KB
Loading

vscode-extension/resources/icon.svg

Lines changed: 1 addition & 1 deletion
Loading
39.1 KB
Loading

0 commit comments

Comments
 (0)