feat(site): label AI spend as estimated - #27584
Merged
Merged
Conversation
ssncferreira
force-pushed
the
ssncf/site-aigov-estimate-spend-label
branch
from
August 3, 2026 12:03
9ea63ac to
50504f8
Compare
ssncferreira
marked this pull request as ready for review
August 3, 2026 12:32
EhabY
approved these changes
Aug 3, 2026
| ) : ( | ||
| <StatusIconTooltip message="Current AI spend compared to the group's AI budget for the active period." /> | ||
| <StatusIconTooltip | ||
| message={ |
Contributor
There was a problem hiding this comment.
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
Contributor
Author
There was a problem hiding this comment.
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
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

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
StatusIconTooltipnow exportsSpendEstimateDocsLink, shared by both tooltips.Note
Initially generated by Claude Opus 5, modified and reviewed by @ssncferreira