Repository navigation
feat: run the AI spend detailed report - #32480
Merged
ssncferreira merged 3 commits intoNov 24, 2026
Merged
ssncferreira merged 3 commits into
ssncferreira merged 3 commits into
Conversation
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 09:05
57b9a80 to
a791710
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
2 times, most recently
from
November 20, 2026 09:33
93e7f6c to
fb1798a
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 09:51
fb1798a to
6489e34
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 10:50
6489e34 to
9c1dc92
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 11:04
9c1dc92 to
7debafc
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 11:15
7debafc to
7451fbb
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 11:26
7451fbb to
6062b32
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 11:34
6062b32 to
1465c05
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 11:39
1465c05 to
6dc20e4
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 11:51
6dc20e4 to
047f393
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 12:00
047f393 to
7ee97dc
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 12:09
7ee97dc to
d9c5222
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 12:17
d9c5222 to
eb2ab0d
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 13:28
2d12185 to
a14998f
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 15:16
a14998f to
9d7aed8
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 15:20
9d7aed8 to
872c758
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 15:22
872c758 to
7752419
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 16:05
7752419 to
ab98042
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 16:07
ab98042 to
c5accd4
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 16:11
c5accd4 to
becd227
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 16:19
becd227 to
f16065f
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 16:42
f16065f to
da13ffe
Compare
ssncferreira
force-pushed
the
ssncf/ai-spend-report-run
branch
from
November 20, 2026 16:45
da13ffe to
32c4536
Compare
This was referenced Nov 20, 2026
Comment on lines
+130
to
+135
| const [user, group] = await Promise.all([ | ||
| username ? API.getUser(username) : undefined, | ||
| group_name | ||
| ? API.getGroup(organizationId, group_name, { exclude_members: true }) | ||
| : undefined, | ||
| ]); |
Collaborator
There was a problem hiding this comment.
Should we be making API.getUser and API.getGroup here? Should we instead pass these in and require the caller to supply them?
Collaborator
Author
There was a problem hiding this comment.
Switched both lookups to the user and group query factories through queryClient.fetchQuery, so they're cached and reused across pages and the export. I kept the lookups inside the report query, so they only run when the report runs, and the page still sees one query with a single loading, error, and cancel state.
DanielleMaywood
approved these changes
Nov 24, 2026
jeremyruppel
approved these changes
Nov 24, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Run report builds the Detailed report for the picked days and filter. The report runs only on click.
Changes
paginatedOrganizationAISpendReport. It resolves the User and Group chips to IDs through theuserandgroupquery factories, then requests the users endpoint.DetailedReportTablewith the total spend, the users and their spend, and pagination.UnpricedModelsTooltipout ofTopSpendersCard, so report rows show the same unpriced models warning as the Overview.LinearProgresswith "Building your report… stay on this page" while the report builds.Note: The Providers, Models, and Clients columns and the row menu with Cost details follow in #32482.
Related to AIGOV-731
Note
Generated by Coder Agents on behalf of @ssncferreira.