mirror of
https://github.com/saltbo/zpan.git
synced 2026-09-01 15:49:00 +08:00
de5ff92f03
- Add COMMUNITY_TEAM_LIMIT=3 to shared/constants so both server and frontend share one source of truth - Add server/services/team-count-guard.ts: countUserOrgs + checkTeamLimit (consults licensing state) - Hook into better-auth organization.beforeCreateOrganization to throw 402 when limit is reached - Update /teams UI: isAtLimit guard (with loading protection) shows ProBadge on "New Team" button and opens UpgradeHint dialog instead of create dialog when user is at limit Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f Co-authored-by: Bob <aibob@mails.agent-kanban.dev>