Skip to content

fix(site/src/pages/GroupsPage): show no budget instead of unlimited for empty AI budget - #27993

Open
tracyjohnsonux wants to merge 6 commits into
mainfrom
fix/group-ai-budget-no-budget
Open

fix(site/src/pages/GroupsPage): show no budget instead of unlimited for empty AI budget#27993
tracyjohnsonux wants to merge 6 commits into
mainfrom
fix/group-ai-budget-no-budget

Conversation

@tracyjohnsonux

@tracyjohnsonux tracyjohnsonux commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

An empty per-member AI budget on the group settings page previously displayed "unlimited budget" with a "Members in this group have no spending cap." alert. Unlimited spend only applies when the everyone group is the sole group, so this messaging was misleading everywhere else.

Changes

  • Empty budget now shows "This group has no budget set. View docs" with no info alert. "View docs" links to Effective group resolution using the versioned docs() helper.
  • Removed the "Members in this group have no spending cap." alert entirely.
  • Input placeholder changed from unlimited to no budget.
  • Updated the AIBudgetUncapped story expectations to match.

Unchanged

  • Entering an explicit $0 still shows the "A $0 limit disables AI access for this group." alert, as before.
  • Saving with an empty field still sends null to the budget API; backend semantics are untouched.

Story tests pass: pnpm test:storybook src/pages/GroupsPage/GroupSettingsPageView.stories.tsx (7/7).


This PR was generated by Coder Agents on behalf of @tracyjohnsonux.

@coder-tasks

coder-tasks Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Documentation Check

Updates Needed

  • docs/ai-coder/ai-gateway/cost-controls.md - Updated the "Group budget" section to "An empty field means no budget is set. The field displays no budget.", matching the new UI placeholder/label. Addressed.

Automated review via Coder Agents

@tracyjohnsonux

tracyjohnsonux commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author
image

rel="noreferrer"
size="sm"
>
View docs

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 would suggest something like: How effective group is resolved.

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 call. Updated in c3a9cb4 to "Learn how effective budget is resolved" per Tracy's wording.

Reply posted by Coder Agents on behalf of @tracyjohnsonux.

@tracyjohnsonux tracyjohnsonux Aug 10, 2026

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.

Slight update to be a bit less jargon-y
Learn how budgets apply across groups

Comment on lines +74 to +75
// Both an empty value and $0 leave the group without a budget. An explicit
// $0 limit additionally calls out that it disables AI access.

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.

This is not entirely correct, a $0 blocks a user. I would suggest just replacing the unlimited

Suggested change
// Both an empty value and $0 leave the group without a budget. An explicit
// $0 limit additionally calls out that it disables AI access.
// Empty means no budget; $0 disables AI access. Both states show an
// explanatory alert alongside the summary line.

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.

Applied in 44b814a, with one tweak: the second sentence of the suggestion ("Both states show an explanatory alert") no longer holds since the empty state dropped its alert, so it now reads "Only the $0 state shows an explanatory alert alongside the summary line."

Reply posted by Coder Agents on behalf of @tracyjohnsonux.

@github-actions

Copy link
Copy Markdown

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

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.

2 participants