Skip to content

feat(site/src/pages/AISettingsPage/AISpendPage): add the AI spend top spenders card - #32342

Draft
ssncferreira wants to merge 1 commit into
ssncf/ai-spend-trends-chartfrom
ssncf/ai-spend-top-spenders
Draft

ssncferreira wants to merge 1 commit into
ssncf/ai-spend-trends-chartfrom
ssncf/ai-spend-top-spenders

Conversation

@ssncferreira

Copy link
Copy Markdown
Collaborator

Description

Adds the Top spenders card to the AI spend Overview tab, with the first page of users the overview endpoint returns, most spend first.

Changes

  • Add TopSpendersCard, with a summary of how much the listed users spent compared with everyone else, for example "Top 10 users spent 91% of the total. The other 34 users spent $2,693.00."
  • Keep Detailed report disabled with a TODO(AIGOV-731).
  • Add a menu per user with User AI session logs, which opens the sessions page filtered to that user and period. The sessions page needs read access to every user's sessions, so the menu is hidden without it. Cost details follows with AIGOV-734, and Manage AI spend after feat: add organization member AI spend endpoint #32203.
  • Add tests for the summary and the session logs link, and stories for the card states.

Related to AIGOV-732

Note

Generated by Coder Agents on behalf of @ssncferreira.

@linear-code

linear-code Bot commented Nov 17, 2026

Copy link
Copy Markdown

AIGOV-732

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant