Skip to content

feat(site): label AI spend as estimated - #27584

Merged
ssncferreira merged 2 commits into
mainfrom
ssncf/site-aigov-estimate-spend-label
Aug 3, 2026
Merged

feat(site): label AI spend as estimated#27584
ssncferreira merged 2 commits into
mainfrom
ssncf/site-aigov-estimate-spend-label

Conversation

@ssncferreira

@ssncferreira ssncferreira commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

AI spend is estimated by multiplying token usage by a snapshot of published model prices that ships with each Coder release, so it can differ from provider invoices.

Label spend figures as estimated and link to the How spend is estimated docs section. "Estimated spend" matches the terminology already defined in the cost controls doc.

Changes

  • Group members tooltip: "Monthly AI spend for this user." becomes "Estimated monthly AI spend for this user.", followed by an inline docs link.
  • Groups table tooltip: "Current AI spend compared to the group's AI budget..." becomes "Estimated AI spend compared to...", with the same link.
  • User dropdown: "(AI spend/month)" becomes "(Estimated AI spend/month)".
  • StatusIconTooltip now exports SpendEstimateDocsLink, shared by both tooltips.

Note

Initially generated by Claude Opus 5, modified and reviewed by @ssncferreira

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ssncferreira
ssncferreira force-pushed the ssncf/site-aigov-estimate-spend-label branch from 9ea63ac to 50504f8 Compare August 3, 2026 12:03
@ssncferreira
ssncferreira marked this pull request as ready for review August 3, 2026 12:32
@ssncferreira
ssncferreira requested review from EhabY and johnstcn August 3, 2026 12:32

@EhabY EhabY left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some smol comments!

Comment thread site/src/modules/dashboard/Navbar/UserDropdown/UserDropdown.stories.tsx Outdated
Comment thread site/src/modules/dashboard/Navbar/UserDropdown/UserDropdown.stories.tsx Outdated
) : (
<StatusIconTooltip message="Current AI spend compared to the group's AI budget for the active period." />
<StatusIconTooltip
message={

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose the message here can take a JSX and not just a string?

Just checked and it does, maybe we need to rename this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 👍 I didn't change it here in order to avoid further changes, since this is used in some places. Will address this as a follow-up

Comment thread site/src/pages/GroupsPage/StatusIconTooltip.tsx Outdated
@ssncferreira
ssncferreira merged commit ec9b0f0 into main Aug 3, 2026
27 checks passed
@ssncferreira
ssncferreira deleted the ssncf/site-aigov-estimate-spend-label branch August 3, 2026 13:56
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants