feat: add group AI budget management UI#26375
Open
EhabY wants to merge 2 commits into
Open
Conversation
0e4e595 to
7ca5b73
Compare
Contributor
Documentation CheckUpdates Needed
New Documentation Needed
Automated review via Coder Agents |
EhabY
commented
Jun 15, 2026
| const navigate = useNavigate(); | ||
|
|
||
| // Budget routes are gated on aibridge; useFeatureVisibility is {} unlicensed. | ||
| const aibridgeVisible = Boolean(useFeatureVisibility().aibridge); |
Contributor
Author
There was a problem hiding this comment.
The backend gates on this, but there's also ai_governance_user_limit. Do we want to unify the cost control features somehow?
Add an AI budget section to the group settings page, gated by the aibridge feature. The page's Save persists a per-member monthly budget via the group AI budget endpoints alongside the group patch: an empty field is uncapped (deletes the budget), 0 disables spending, and any value >= 0 is accepted. A helper shows the group-wide monthly maximum.
7ca5b73 to
d6279fb
Compare
Add AI budgets to the AI Governance Add-On feature list and a section describing the per-member monthly spend limit, the empty/0/positive values, and the group-wide maximum calculation.
Docs preview📖 View docs preview for |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds an AI budget section to the group settings page (
/organizations/{org}/groups/{group}/settings), gated by theaibridgefeature.The page's existing Save persists a per-member monthly budget through
PUT/DELETE /api/v2/groups/{group}/ai/budgetalongside the group patch. An empty field is uncapped (deletes the budget),0disables spending, and any value>= 0is accepted (matching the API'sgte=0). The helper shows the resulting group-wide monthly maximum.Part of AIGOV-294. The "AI governance add-on" access toggle shown in the design is out of scope here, as no backend field or endpoint exists for it yet.