Repository navigation
feat(site/src): add the AI spend overview page shell - #32337
Draft
ssncferreira wants to merge 1 commit into
Draft
ssncferreira wants to merge 1 commit into
ssncferreira wants to merge 1 commit into
Conversation
This branch was previously 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
Adds the shell of the redesigned AI spend page, the first PR of the Overview tab stack. The page lives at
/ai/settings/spend/experimentaland is not linked from the sidebar, so the current Spend page stays as is until the redesign replaces it.Changes
API.experimental.getOrganizationAISpendOverviewand theorganizationAISpendOverviewquery forGET /api/experimental/organizations/{organization}/ai/spend.AISpendPageroute, with the header, the organization picker and the tabs. Detailed report stays disabled with aTODO(AIGOV-731).DateRangePicker. The days are kept in the URL asstartDate/endDate(YYYY-MM-DD) and sent as whole UTC days, as the endpoint requires. The default is the last 7 days, including today.MockOrganizationAISpendOverview, unit tests for the day conversions and the page's requests, and stories for the view states.Related to AIGOV-732
Stack plan
/ai/spend, plus the unpriced models from/ai/model-prices/unpriced, which load separately and only for viewers who can read model prices.Follow-ups, outside this stack: Cost details (after AIGOV-734), Manage AI spend (after #32203), the Detailed report tab (AIGOV-731), and replacing the current Spend page.
Decisions:
Note
Generated by Coder Agents on behalf of @ssncferreira.