Skip to content

Add local provider usage trend charts - #8406

Open
jellychoco wants to merge 5 commits into
stablyai:mainfrom
jellychoco:feat/claude-usage-trends-popover-charts
Open

jellychoco wants to merge 5 commits into
stablyai:mainfrom
jellychoco:feat/claude-usage-trends-popover-charts

Conversation

@jellychoco

@jellychoco jellychoco commented Jul 12, 2026 •

Copy link
Copy Markdown

What

Adds opt-in, local token-usage trend charts to the status-bar usage popovers for:

  • Claude Code
  • Codex
  • OpenCode (in the OpenCode Go status menu)
  • Gemini CLI
  • Kimi Code

Each provider shows the same two chart modes:

  • Time Trends — a local hour-of-day overlay, with the selected range's latest day emphasized.
  • Day Trends — daily token bars for short ranges and monthly bars for long ranges, with token-detail hover tooltips.

Screenshots

Before After (enable CTA)
before cta
After — Time Trends (30D) After — hour tooltip
time hover
After — Day Trends (30D) After — Day Trends (6M, monthly buckets)
day30 day6m

Custom period

The presets remain 1D / 7D / 30D / 6M, and every supported provider also has a Custom range with Start and End date inputs. The previous Claude-only 185-day response ceiling is removed: a custom range queries only the corresponding interval from already-persisted local hourly projections.

For long custom ranges, daily totals are grouped by month and hourly overlays reduce line opacity as the number of days grows, keeping the popover responsive without discarding local history.

Local sources and privacy

  • Gemini reads its local ~/.gemini/tmp JSON/JSONL session records and projects the recorded input, cached, output, thoughts, tool, and total token fields.
  • Kimi reads local wire.jsonl usage.record events below <KIMI_CODE_HOME>/sessions. It records input, output, cache read, and cache creation fields, while ignoring cumulative session records so a turn is never counted twice.
  • Gemini and Kimi persist only compact account-wide day × hour projections. On later scans, unchanged transcript files are reused by mtime and size rather than reparsed.
  • No network requests or new telemetry are added. Data remains local and continues to require an explicit per-provider opt-in.
  • The panels stay hidden for active remote runtimes so local history is never shown beside a remote account's rate-limit data.

Deferred providers

  • Grok's currently supported local session files provide summary and chat text for the Vault but do not expose trustworthy per-turn token accounting, so no estimate is shown.
  • Antigravity's local conversation data is not a stable readable token-history source, and MiniMax is currently a cookie-auth web usage provider without a local token transcript. Both remain rate-limit-only.

Validation

  • pnpm test
  • pnpm lint
  • pnpm run typecheck
  • pnpm run build:desktop

Focused coverage includes Claude/Codex/OpenCode hourly aggregation, Gemini JSON/JSONL token parsing, Kimi wire usage parsing, custom date-range retrieval, persisted-file reuse, cache schema invalidation, monthly grouping, adaptive line opacity, and chart tooltip math.

ELI5

Status-bar usage popovers can show opt-in local token trend charts for major agents (Claude Code, Codex, OpenCode, Gemini CLI, Kimi Code). You can see hour-of-day and day/month usage patterns without leaving the app.

… popover

Add a chart panel to the right side of the status-bar Claude usage
popover, porting the "Time Trends" hour-of-day overlay and daily trend
charts from UsageScope. The popover previously showed only rate-limit
bars (Session/Weekly/Fable); it now also charts locally scanned token
usage history so users can see when and how much they use Claude.

User-visible behavior:
- Time Trends: hour-of-day overlay line chart (X = 00-23h). One line
  per day, today emphasized at 2px full opacity, historical days at
  1px with per-window opacity (1D 0.9 / 7D 0.38 / 30D 0.2 / 6M 0.08)
  so overlap density reads as "hours I use most". Hover shows a
  per-hour tooltip: Today / Avg (active days) / Peak.
- Day Trends: total-token bars per day (7D/30D) or per month (6M),
  hover tooltip with Total/Input/Output/Cache read/Cache write.
  A leading partial month is trimmed from the 6M view so month totals
  compare honestly.
- Mode (Time/Day) and range (1D/7D/30D/6M) persist via localStorage.
- Charts fill the panel height via ResizeObserver-driven SVG sizing;
  gridline density increases (2 -> 4 lines) on plots >= 200px tall.
- Usage tracking stays opt-in: the panel shows an enable CTA until
  claude-usage scanning is turned on; data never leaves the device.
- The panel is hidden while a remote runtime environment is active:
  the popover then shows the remote account (stablyai#7973) and pairing it
  with local-disk charts would misattribute the data.

Data pipeline (main process):
- claude-usage scanner now aggregates hour-of-day buckets (day x hour,
  project/model-free key to keep the cache small) alongside daily
  aggregates, merged across files with the same dedupe/ownership
  semantics (stablyai#8006 fork reclaim unaffected).
- SCHEMA_VERSION 5 -> 6: old caches lack per-file hourly projections,
  so they are dropped and fully reparsed on next refresh;
  scanState.enabled is preserved across the bump (existing behavior).
- New query getHourly(days): serves hourly points clamped to
  HOURLY_RETENTION_DAYS = 185 (6M window + slack) via new IPC channel
  claudeUsage:getHourly, exposed on window.api.claudeUsage.

Per-file changes:
| File | Change |
| --- | --- |
| src/main/claude-usage/types.ts | ClaudeUsageHourlyAggregate; hourlyAggregates on persisted state/file; hour on attributed turn |
| src/main/claude-usage/scanner.ts | local day+hour bucketing, hourly aggregation/merge/sort, hourly in per-file reuse check and scan result |
| src/main/claude-usage/store.ts | SCHEMA_VERSION 5->6, HOURLY_RETENTION_DAYS=185, getHourly/buildHourly, getDayCutoff extracted from getRangeCutoff |
| src/main/ipc/claude-usage.ts | claudeUsage:getHourly handler |
| src/preload/index.ts, api-types.ts | claudeUsage.getHourly bridge + ClaudeUsageHourlyResult typing |
| src/shared/claude-usage-types.ts | ClaudeUsageHourlyPoint, ClaudeUsageHourlyResult DTOs |
| src/renderer/.../ClaudeUsageTrendsPanel.tsx | new: panel shell, mode/range segmented controls, fetch + enable/error/empty/loading states |
| src/renderer/.../claude-usage-trends-model.ts | new: pure model — hour-of-day matrix, day/month buckets, monotone-cubic path builder, tooltip stats |
| src/renderer/.../claude-usage-trend-charts.tsx | new: TimeTrendsChart + DayTrendsChart SVG rendering and hover hit-testing |
| src/renderer/.../claude-usage-trend-chart-frame.tsx | new: shared chart scaffolding — dims hook (ResizeObserver), Y axis, tooltip surface |
| src/renderer/.../StatusBar.tsx | ProviderDetailsMenu sideContent prop (260px -> 588px two-column layout when present); Claude menu passes the panel, gated off remote runtimes |
| src/main/claude-usage/*.test.ts, .../claude-usage-trends-model.test.ts | 13 new tests: hourly aggregation, window/185d clamp, day/month bucketing, partial-month trim, monotone path, tooltip stats |
| src/renderer/src/i18n/locales/*.json | 28 new auto.* keys via pnpm run sync:localization-catalog |

Design decisions:
- Hourly aggregates are account-wide (no scope/model/project dimension)
  because the popover complements account-level rate limits; persisted
  size stays <= 24 rows per active day per file.
- Retention is enforced at query time (matching the store's existing
  "no pruning, filter at query" convention); 185 days is the ceiling
  the API will serve regardless of requested window.
- Charts are hand-rolled SVG with --chart-3 tokens (no chart library,
  matching the existing stats-pane convention of hand-rolled charts).

Known limitation: controls inside the Radix DropdownMenu popover are
not keyboard-reachable (Radix menus block Tab and rove only across
menu items). This matches the pre-existing AccountRuntimeToggle in the
same popover; usage tracking can also be enabled from Settings > Stats
& Usage, which remains keyboard-accessible.

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds hourly usage aggregation and persistence for Claude, Codex, and OpenCode, plus local Gemini and Kimi history scanning. Exposes hourly queries through main-process IPC and preload APIs. Adds provider trend models, responsive charts, configurable trend panels, localized labels, and status-bar integration. Tests cover hourly aggregation, persistence filtering, local-history parsing, reuse, trend modeling, and chart calculations.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 5.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description covers summary, screenshots, and testing, but omits the required AI Review Report, Security Audit, and Notes sections. Add the missing template sections, especially an AI review report with cross-platform checks, a security audit, and notes or follow-up items.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is concise and accurately summarizes the main change: adding local provider usage trend charts.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Nitpick comments (2)
src/renderer/src/components/status-bar/ClaudeUsageTrendsPanel.tsx (2)

89-115: 🩺 Stability & Availability | 🔵 Trivial

No timeout on the getHourly IPC round trip.

If the main-process scan (or the underlying refresh() it triggers) stalls, the "Scanning local transcripts…" state can persist indefinitely with no fallback for the user. Consider wrapping this call with a bounded timeout so a stuck scan surfaces the loadFailed state instead of hanging silently.


41-75: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Replace the custom segmented control with the existing ToggleGroup primitive. src/renderer/src/components/ui/toggle-group.tsx already exists, so reusing it keeps keyboard/focus behavior and styling aligned with the rest of the UI.

Source: Path instructions


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0f4944b0-ddc4-4109-b39b-1e7010bea54b

📥 Commits

Reviewing files that changed from the base of the PR and between 26934b1 and c48d8eb.

📒 Files selected for processing (20)
  • src/main/claude-usage/scanner.test.ts
  • src/main/claude-usage/scanner.ts
  • src/main/claude-usage/store.test.ts
  • src/main/claude-usage/store.ts
  • src/main/claude-usage/types.ts
  • src/main/ipc/claude-usage.ts
  • src/preload/api-types.ts
  • src/preload/index.ts
  • src/renderer/src/components/status-bar/ClaudeUsageTrendsPanel.tsx
  • src/renderer/src/components/status-bar/StatusBar.tsx
  • src/renderer/src/components/status-bar/claude-usage-trend-chart-frame.tsx
  • src/renderer/src/components/status-bar/claude-usage-trend-charts.tsx
  • src/renderer/src/components/status-bar/claude-usage-trends-model.test.ts
  • src/renderer/src/components/status-bar/claude-usage-trends-model.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/claude-usage-types.ts

Review: stablyai#8406 (CodeRabbit, 3 actionable + 2 nitpicks)

Per-file changes:
| File | Change |
| --- | --- |
| claude-usage-trend-charts.tsx | date axis/tooltip labels now use the active UI locale (i18n.language) instead of the OS locale (toLocaleDateString undefined -> i18n.language) |
| ClaudeUsageTrendsPanel.tsx | SegmentedControl reimplemented on the ui/toggle-group shadcn primitive (guarding Radix's empty-value emit on re-click); Enable button disabled while loading to prevent overlapping setEnabled/getHourly calls; mode toggle gets its own aria-label 'Chart mode' (new key 53ce9bcf71) instead of duplicating the region label |
| i18n/locales/*.json | 'Chart mode' key synced across 5 catalogs |

Declined (with rationale in PR thread): client-side timeout on the
getHourly IPC — first scans of large transcript histories legitimately
run long and the IPC resolves when the scan completes; a fixed timeout
would misreport in-progress scans as failures, and scan errors already
surface via scanState.lastScanError.

Co-Authored-By: Claude Fable 5 <[email protected]>
@jellychoco

Copy link
Copy Markdown
Author

Addressed the CodeRabbit review in bd711c6:

  • Locale-aware date labels — chart axis/tooltip dates now format with the active UI locale (i18n.language) instead of the OS locale.
  • Enable button double-click guard — disabled={isLoading} prevents overlapping setEnabled/getHourly calls.
  • Distinct aria-labels — the Time/Day mode toggle now announces "Chart mode" instead of duplicating the region label.
  • ToggleGroup primitive (nitpick) — the custom segmented control is now built on ui/toggle-group (Radix), with a guard against the empty value Radix emits when the active item is re-clicked. Visuals verified unchanged in the running app.

Declining one nitpick with rationale — client-side timeout on the getHourly IPC: the first scan of a large transcript history legitimately runs long, and the IPC resolves when the scan completes, so "Scanning local transcripts…" accurately reflects in-progress work. A fixed timeout would misreport those scans as failures; genuine scan errors already surface through scanState.lastScanError (rendered by the panel's empty/error state), and a rejected IPC lands in the loadFailed state.

Re-ran pnpm lint, pnpm typecheck, and the claude-usage + status-bar test suites (207 passing) after the changes.

@jellychoco jellychoco changed the title feat(status-bar): add Time Trends & Day Trends charts to the Claude usage popover Add local provider usage trend charts Jul 13, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (6)
src/renderer/src/components/status-bar/provider-usage-trend-chart-frame.tsx (1)

127-147: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Hardcoded shadow bypasses design tokens.

shadow-[0_10px_24px_rgba(0,0,0,0.18)] is a raw, hand-picked value rather than a token from main.css. Consider using an existing shadow scale (e.g. shadow-lg) or adding a named token if this exact elevation is intentional.

As per coding guidelines, src/renderer/src/**/*.{tsx,ts,css}: "All UI work must follow docs/STYLEGUIDE.md, use tokens from src/renderer/src/assets/main.css, and use shadcn primitives from src/renderer/src/components/ui/."

Source: Coding guidelines

src/renderer/src/components/status-bar/ProviderUsageTrendsPanel.tsx (1)

376-382: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

No lower bound on the custom range start date.

The Start date input only caps the upper end (max={customEndDay}); nothing stops a user from picking a start date years/decades in the past. That unbounded range flows into listLocalDaysInRange with no cap, which then drives TimeTrendsChart to render one SVG line per day (unbounded) and can push DayTrendsChart's month-bucket count high enough that barWidth = Math.min(getDayBarWidth(...), band - 2) goes negative for very long ranges.

Consider adding a reasonable min (e.g. a fixed lookback cap) to bound both the day-count and the downstream rendering cost.

src/main/codex-usage/store.ts (1)

284-304: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Extract getDayCutoff/isValidDayKey into a shared helper. Both provider stores introduce byte-for-byte identical date-validation helpers (and structurally identical buildHourly filtering logic) in this PR; the same pattern also exists in src/main/opencode-usage/store.ts. Neither helper touches provider-specific state, so they're safe to consolidate into a single shared module to avoid the three copies drifting apart on future fixes (e.g. leap-year/timezone edge cases).

  • src/main/codex-usage/store.ts#L284-L304: replace the local getDayCutoff/isValidDayKey definitions with an import from a new shared date-utils module.
  • src/main/claude-usage/store.ts#L295-L305: replace the local isValidDayKey definition with the same shared import (and its getDayCutoff counterpart).
src/preload/index.ts (1)

3792-3793: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Reuse shared *HourlyQuery/*HourlyResult types instead of inlining and widening to unknown.

All three new getHourly forwarders inline the query union type rather than importing ClaudeUsageHourlyQuery/CodexUsageHourlyQuery/OpenCodeUsageHourlyQuery (already used in api-types.ts), and return Promise<unknown> rather than the corresponding *HourlyResult type declared in the *Api interfaces. This duplicates the type definition and loses type safety for consumers of window.api.*Usage.getHourly(...).

♻️ Proposed fix
-    getHourly: (args: { days: number } | { startDay: string; endDay: string }): Promise<unknown> =>
+    getHourly: (args: ClaudeUsageHourlyQuery): Promise<ClaudeUsageHourlyResult> =>
       ipcRenderer.invoke('claudeUsage:getHourly', args),

(repeat analogously for the codex and openCode blocks, importing the respective *HourlyQuery/*HourlyResult types)

Also applies to: 3812-3813, 3832-3833

src/main/opencode-usage/store.test.ts (1)

317-339: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add a test for the { days } branch of getHourly.

Only the { startDay, endDay } custom-range branch of buildHourly is tested here; the { days } branch (the default path used for 1D/7D/30D/6M windows) has no direct test coverage in this file.

✅ Suggested additional test
it('serves hourly points within a days-based cutoff', async () => {
  const point = (day: string, hour: number, inputTokens: number) => ({
    day,
    hour,
    eventCount: 1,
    inputTokens,
    cachedInputTokens: 10,
    outputTokens: 25,
    reasoningOutputTokens: 10,
    totalTokens: inputTokens + 25
  })
  const store = createStoreWithState({
    hourlyAggregates: [point('2020-01-01', 9, 500), point(getTodayDayKey(), 10, 100)]
  })

  const result = await store.getHourly({ days: 1 })

  expect(result.points).toEqual([point(getTodayDayKey(), 10, 100)])
})
src/main/opencode-usage/store.ts (1)

77-104: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Hour-bucketing/date-validation utilities are triplicated across provider modules. This PR introduces getDayCutoff, isValidDayKey, localDayAndHourFromTimestamp, mergeHourlyAggregates, and sortHourlyAggregates independently in the OpenCode modules, while graph evidence shows near-identical copies already exist in the Codex and Claude usage modules (codex-usage/store.ts, codex-usage/scanner.ts, claude-usage/store.ts). Since all three providers are gaining this feature in the same effort, extracting these into a shared date/aggregation utility module now avoids three copies drifting independently later.

  • src/main/opencode-usage/store.ts#L77-L104: extract getDayCutoff and isValidDayKey into a shared module imported by all three provider stores.
  • src/main/opencode-usage/scanner.ts#L412-L421: extract localDayAndHourFromTimestamp into the shared module, replacing the equivalent function in codex-usage/scanner.ts.
  • src/main/opencode-usage/scanner.ts#L874-L901: extract mergeHourlyAggregates/sortHourlyAggregates into the shared module, replacing the equivalent functions in codex-usage/scanner.ts.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3e699f70-1d92-406a-8093-e4ef24efbdc8

📥 Commits

Reviewing files that changed from the base of the PR and between bd711c6 and 98fe709.

📒 Files selected for processing (34)
  • src/main/claude-usage/store.test.ts
  • src/main/claude-usage/store.ts
  • src/main/codex-usage/scanner.test.ts
  • src/main/codex-usage/scanner.ts
  • src/main/codex-usage/store.test.ts
  • src/main/codex-usage/store.ts
  • src/main/codex-usage/types.ts
  • src/main/ipc/claude-usage.ts
  • src/main/ipc/codex-usage.ts
  • src/main/ipc/opencode-usage.ts
  • src/main/opencode-usage/scanner.test.ts
  • src/main/opencode-usage/scanner.ts
  • src/main/opencode-usage/store.test.ts
  • src/main/opencode-usage/store.ts
  • src/main/opencode-usage/types.ts
  • src/preload/api-types.ts
  • src/preload/index.ts
  • src/renderer/src/components/status-bar/ProviderUsageTrendsPanel.tsx
  • src/renderer/src/components/status-bar/StatusBar.tsx
  • src/renderer/src/components/status-bar/provider-usage-trend-chart-frame.tsx
  • src/renderer/src/components/status-bar/provider-usage-trend-charts.tsx
  • src/renderer/src/components/status-bar/provider-usage-trends-configuration.ts
  • src/renderer/src/components/status-bar/provider-usage-trends-date-range.ts
  • src/renderer/src/components/status-bar/provider-usage-trends-model.test.ts
  • src/renderer/src/components/status-bar/provider-usage-trends-model.ts
  • src/renderer/src/components/status-bar/provider-usage-trends-segmented-control.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/shared/claude-usage-types.ts
  • src/shared/codex-usage-types.ts
  • src/shared/opencode-usage-types.ts
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/shared/claude-usage-types.ts
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/zh.json

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/main/index.ts (1)

923-951: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Missing null-guard for geminiUsage/kimiUsage before use, unlike every other lifecycle dependency.

Every other service passed into registerCoreHandlers (claudeUsage, codexUsage, openCodeUsage, rateLimits, automations, codexAccounts, codexRuntimeHome, claudeAccounts, claudeRuntimeAuth, keybindings) is explicitly checked with if (!x) throw new Error(...) earlier in openMainWindow() before being used. geminiUsage!/kimiUsage! skip that guard and rely purely on a non-null assertion at Line 945. Because registerCoreHandlers only runs its body once (registered flag), if these happen to be null on the first call, the Gemini/Kimi local-usage-history IPC handlers would never register for the app's lifetime, rather than failing with the descriptive error used elsewhere.

🛡️ Proposed fix: mirror the existing guard pattern
   if (!keybindings) {
     throw new Error('Keybinding service must be initialized before opening the main window')
   }
+  if (!geminiUsage) {
+    throw new Error('Gemini usage history store must be initialized before opening the main window')
+  }
+  if (!kimiUsage) {
+    throw new Error('Kimi usage history store must be initialized before opening the main window')
+  }

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 5ecb6e63-6a03-435d-9910-de93c0f1a49a

📥 Commits

Reviewing files that changed from the base of the PR and between 98fe709 and 3b773ce.

📒 Files selected for processing (18)
  • src/main/index.ts
  • src/main/ipc/local-usage-history.ts
  • src/main/ipc/register-core-handlers.ts
  • src/main/local-usage-history/scanner.test.ts
  • src/main/local-usage-history/scanner.ts
  • src/main/local-usage-history/store.test.ts
  • src/main/local-usage-history/store.ts
  • src/main/local-usage-history/types.ts
  • src/preload/api-types.ts
  • src/preload/index.ts
  • src/renderer/src/components/status-bar/ProviderUsageTrendsPanel.tsx
  • src/renderer/src/components/status-bar/StatusBar.tsx
  • src/renderer/src/components/status-bar/provider-usage-trend-charts.tsx
  • src/renderer/src/components/status-bar/provider-usage-trends-configuration.ts
  • src/renderer/src/components/status-bar/provider-usage-trends-detail-rows.ts
  • src/renderer/src/components/status-bar/provider-usage-trends-model.test.ts
  • src/renderer/src/components/status-bar/provider-usage-trends-model.ts
  • src/shared/local-usage-history-types.ts
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/renderer/src/components/status-bar/provider-usage-trend-charts.tsx
  • src/renderer/src/components/status-bar/ProviderUsageTrendsPanel.tsx
  • src/renderer/src/components/status-bar/provider-usage-trends-model.ts
  • src/renderer/src/components/status-bar/provider-usage-trends-model.test.ts

Comment thread src/main/local-usage-history/scanner.ts Resolved
Comment thread src/main/local-usage-history/scanner.ts Resolved
@AmethystLiang

Copy link
Copy Markdown
Contributor

very cool feature. @brennanb2025 can help get it in

@nwparker nwparker added the enhancement New feature or request label Jul 27, 2026

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

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants