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:
Jaayden Halko
2026-03-27 05:51:51 +00:00
committed by GitHub
parent 2312e5c428
commit 86c3983fc0
12 changed files with 1036 additions and 174 deletions
+1 -1
View File
@@ -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.