mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Adds AI budget and Budget type columns to the group members table, shown when aibridge is enabled and the ai-gateway-cost-control experiment is on. A member's spend, limit, and source come from an ai_cost_control object embedded in the group members and groups responses, so no extra request is made. - Add AI budget and Budget type columns, gated by the aibridge feature and the ai-gateway-cost-control experiment - Read ai_cost_control inline from the group and member lists instead of calling a separate spend endpoint - Share an AIBudgetUsage component (spend vs budget with severity colors) and an InfoIconTooltip for the column headers - When another group governs a member's budget, grey the spend and name that group in a tooltip; otherwise render the spend (severity-colored) against a white limit - Resolve a member's effective group in the AI budget override dialog, marking only the governing group "(default)" and none when no group governs them - Defer the override's custom-budget error until the field is touched Closes AIGOV-291