Skip to content

Add usage history export#16

Merged
symonbaikov merged 2 commits into
mainfrom
codex/export-usage-statistics
Jun 16, 2026
Merged

Add usage history export#16
symonbaikov merged 2 commits into
mainfrom
codex/export-usage-statistics

Conversation

@symonbaikov

Copy link
Copy Markdown
Collaborator

Description

Adds local usage history export for OpenUsage provider snapshots.

The app now stores successful usage snapshots locally and lets users export a selected date range as CSV or XLSX. XLSX exports include both a Summary sheet and a raw Snapshots sheet. The summary includes snapshot timestamps so provider metrics like Today, Yesterday, and Last 30 Days are clearly tied to when OpenUsage collected them.

History starts accumulating after this feature is installed. It is not retroactive provider history.

Related Issue

N/A

Type of Change

  • Bug fix
  • New feature
  • New provider plugin
  • Documentation
  • Performance improvement
  • Other (describe below)

Testing

  • npm run test -- src/components/panel-footer.test.tsx src/App.test.tsx
  • BINDGEN_EXTRA_CLANG_ARGS=-isystem/usr/lib/clang/21/include cargo test --manifest-path src-tauri/Cargo.toml local_http_api --lib
  • npm run build

Notes

  • Adds tauri-plugin-dialog for save-file dialogs.
  • Adds rust_xlsxwriter for real .xlsx output.
  • Keeps the existing /v1/usage API unchanged.
  • Retains local history for the last 365 days.

@symonbaikov symonbaikov merged commit 4d3427d into main Jun 16, 2026
4 checks 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