feat(billing): dedicated Credit usage page with date-range filter and CSV export by waleedlatif1 · Pull Request #5405 · simstudioai/sim · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
fa8abc0
fix(billing): apportion per-row credit costs so they sum to the page …
waleedlatif1 Jul 3, 2026
06a4c14
fix(billing): dim stale credit usage rows while a new period loads
waleedlatif1 Jul 3, 2026
eb26a01
fix(billing): show "<1 credit" for rows apportioned to 0
waleedlatif1 Jul 3, 2026
fa73ea2
fix(audit-logs): fix broken Custom range picker, trim time-range presets
waleedlatif1 Jul 3, 2026
3c37391
feat(billing): dedicated Credit usage page with date-range filter and…
waleedlatif1 Jul 3, 2026
762b34d
refactor(billing): move workflow-name enrichment into getUserUsageLog…
waleedlatif1 Jul 3, 2026
46beb8a
fix(billing): drop Dollar cost from the CSV export, strip inline comm…
waleedlatif1 Jul 3, 2026
2871234
fix(billing): export honors partial custom date range, surfaces trunc…
waleedlatif1 Jul 3, 2026
d1dcf6c
fix(billing): remove the export's arbitrary row cap, fix a cursor pag…
waleedlatif1 Jul 3, 2026
7f97f31
perf(billing): skip the redundant cursor lookup when the caller alrea…
waleedlatif1 Jul 4, 2026
02c5f39
fix(billing): apportion credits over the whole filtered set, not per …
waleedlatif1 Jul 4, 2026
b91d2b7
fix(billing): make custom-range startDate/endDate nullable, not '' de…
waleedlatif1 Jul 4, 2026
55f2bd5
feat(audit-logs): add CSV export, matching the Credit usage page pattern
waleedlatif1 Jul 4, 2026
bd67ebd
fix(billing): skip wasted credit apportionment on the summary fetch, …
waleedlatif1 Jul 4, 2026
447c404
fix(billing): deterministic apportionment order, block audit export d…
waleedlatif1 Jul 4, 2026
ecf5505
fix(billing): distinguish a failed summary fetch from zero usage
waleedlatif1 Jul 4, 2026
17a5a73
fix(billing): gate the credit-usage page server-side for enterprise a…
waleedlatif1 Jul 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 169 additions & 0 deletions apps/sim/app/api/audit-logs/export/route.test.ts
151 changes: 151 additions & 0 deletions apps/sim/app/api/audit-logs/export/route.ts
Loading
Loading