Skip to content

feat(site/src/pages/AISettingsPage/AISpendPage): add the AI spend trends chart - #32341

Draft
ssncferreira wants to merge 1 commit into
ssncf/ai-spend-user-stat-cardsfrom
ssncf/ai-spend-trends-chart
Draft

ssncferreira wants to merge 1 commit into
ssncf/ai-spend-user-stat-cardsfrom
ssncf/ai-spend-trends-chart

Conversation

@ssncferreira

Copy link
Copy Markdown
Collaborator

Description

Adds the AI spend trends card to the AI spend Overview tab: the overview's daily spend as a bar chart, built on the shared Chart components.

Changes

  • Add SpendTrendsCard. Each bar is one UTC day, so the axis, the tooltip, and the subtitle format the days in UTC and say so.
  • Label the first, middle, and last days, so the axis stays evenly spaced for any range.
  • Show a skeleton while loading and an empty state when the period has no spend.
  • Add OverviewCard, the bordered panel the overview cards share, and formatSpendDays for the subtitle's range label.
  • Add stories for a week, a month, a single day, loading, and no spend.

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