mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add AI Governance seat capacity banners (#23411)
## Summary
Add site-wide banners for AI Governance seat usage thresholds:
1. **90% capacity warning (admin-only):** When actual AI Governance
seats are ≥90% and <100% of the license limit, admins see:
> "You have used 90% of your AI governance add-on seats."
2. **Over-limit banner (admin-only):** When actual seats exceed the
license limit, admins see a prominent warning:
> "Your organization is using {actual} / {limit} AI Governance user
seats ({X}% over the limit). Contact sales@coder.com"
- Uses floor whole percentage (Go int division / `Math.floor`)
- Includes a clickable `mailto:sales@coder.com` link
This commit is contained in:
@@ -81,7 +81,7 @@ rates, and usage patterns to inform decisions about AI strategy.
|
||||
Starting with Coder v2.30 (February 2026), AI Bridge and Agent Boundaries are
|
||||
generally available as part of the AI Governance Add-On.
|
||||
|
||||
The AI Governance Add-On is required to use AI Bridge and Agent Boundaries.
|
||||
The AI Governance add-on is required to use AI Bridge and Agent Boundaries.
|
||||
If your deployment does not have the add-on, you'll see a notification banner
|
||||
reminding you to enable it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user