-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(site/src/pages/AISettingsPage/SpendPage): announce cost controls move to AI Governance #27543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| import type { FC } from "react"; | ||
| import { getErrorMessage } from "#/api/errors"; | ||
| import type * as TypesGen from "#/api/typesGenerated"; | ||
| import { Alert, AlertDescription } from "#/components/Alert/Alert"; | ||
| import { ErrorAlert } from "#/components/Alert/ErrorAlert"; | ||
| import { Button } from "#/components/Button/Button"; | ||
| import type { DateRangeValue } from "#/components/DateRangePicker/DateRangePicker"; | ||
| import { Link } from "#/components/Link/Link"; | ||
| import type { PaginationResult } from "#/components/PaginationWidget/PaginationContainer"; | ||
| import { | ||
| SettingsHeader, | ||
|
|
@@ -22,6 +24,7 @@ import { | |
| useTemporarySavedState, | ||
| } from "#/components/TemporarySavedState/TemporarySavedState"; | ||
| import { dollarsToMicros, microsToDollars } from "#/utils/currency"; | ||
| import { docs } from "#/utils/docs"; | ||
| import { | ||
| DefaultLimitController, | ||
| type DefaultLimitFormValues, | ||
|
|
@@ -232,6 +235,19 @@ export const SpendPageView: FC<SpendPageViewProps> = ({ | |
| > | ||
| {(userCtrl) => ( | ||
| <div className="flex max-w-[1100px] flex-col gap-8"> | ||
| <Alert severity="info"> | ||
| <AlertDescription> | ||
| Cost controls features will move to AI Governance in v2.37.{" "} | ||
| <Link | ||
| href={docs("/ai-coder/ai-gateway/cost-controls")} | ||
|
ibetitsmike marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Every user who follows this new “Read more here” CTA reaches Useful? React with 👍 / 👎.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Flagging this as a deliberate open decision rather than resolving it a third time. This is the same finding as the thread above, and it is factually correct: The link target was chosen explicitly by the PR author, who directed the banner at this canonical path knowing the page was still in flight. What was not known at that time is that the page merged (#27570) as a placeholder rather than with content. Leaving this thread unresolved on purpose, so a human adjudicates rather than having an automated loop close the same objection repeatedly. The options are: ship now and let AIGOV-476 fill the page before v2.37, hold this PR until that content lands, or point the CTA at No further
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Summary
Testing
|
||
| target="_blank" | ||
| rel="noreferrer" | ||
| > | ||
| Read more here | ||
| </Link> | ||
| </AlertDescription> | ||
| </Alert> | ||
|
|
||
| <SettingsHeader> | ||
| <SettingsHeaderTitle> | ||
| Spend limits and usage | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.