Skip to content

feat: tray refinements and usage history#3

Merged
barramee27 merged 2 commits into
feat/linux-windows-native-supportfrom
feat/tray-and-usage-history
May 13, 2026
Merged

feat: tray refinements and usage history#3
barramee27 merged 2 commits into
feat/linux-windows-native-supportfrom
feat/tray-and-usage-history

Conversation

@barramee27

@barramee27 barramee27 commented May 13, 2026

Copy link
Copy Markdown
Owner

What this PR does

Tray icon & sizing (Windows / Linux focus)

  • Tray bars / fill layout (tray-bars-icon, tray-primary-progress, use-tray-icon): clearer bar rendering and metric mapping so the tray icon matches what you see in the app.
  • Tray canvas / chrome density: cherry-pick 9063d06 for the larger Win/Linux tray canvas and side-nav / provider icon band adjustments (same change as that commit elsewhere in the repo history).

Usage history (local-only)

  • Optional SQLite history in app data: debounced snapshots after successful probes (crossusage-core usage_history, Tauri list_usage_history / clear_usage_history).
  • Settings → Usage history: toggle, refresh, clear, primary-% chart with account filter, table with normalized % / tokens / cost snapshot when present.
  • Metrics normalization in core (percent / credits-style rows) so stored rows stay consistent with the rest of the app.

Other fork work bundled in the same integration

WIP that shared one local working tree so the tree stays buildable and tested end-to-end: onboarding wizard, support-issue paste helpers, OS diagnostics plumbing, and the Vite dev port preflight in scripts/tauri-before-dev.cjs (clear message when 1420 is busy).

Why one PR

These pieces were integrated together locally; splitting would mean intermediate states that don’t compile or pass tests. Follow-up PRs can peel layers off after merge if you want smaller diffs.

Verification

  • cargo check -p crossusage
  • bun run test1171 tests, all passing

barramee27 and others added 2 commits May 13, 2026 19:52
- Raise TRAY_ICON_BASE_PT_WIN_LINUX 30→34 for sharper logos after shell scale
- Provider stacked layout: icon band 52%→58% of square
- Sidebar: provider + nav icons size-8→size-10, rail w-14→w-16 (issue #2 UX)

Co-authored-by: Cursor <cursoragent@cursor.com>
- Tray: bar/icon rendering and Win/Linux tray sizing (includes cherry-picked canvas tweak)
- Settings: optional local usage history with chart and account filter
- Core/Tauri: usage_history SQLite + probe hook; related commands and wiring
- Also lands co-traveling fork work from the same WIP (onboarding, support paste, OS diagnostics, dev port check) so the tree stays consistent

Co-authored-by: Cursor <cursoragent@cursor.com>
@barramee27 barramee27 merged commit 448f3a7 into feat/linux-windows-native-support May 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant