feat: reduce Community Edition user limit from 50 to 10

Reduces the hardcoded max users for Community Edition from 50 to 10.

Changes:
- Backend: MAX_USERS_COMMUNITY constant (enforcement)
- Frontend: Display messages on users and tenants pages
- README: Documentation update

Ref: GT-Edge-AI-Internal/GT-2.0#289

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
HackWeasel
2025-12-15 12:19:48 -05:00
parent 91cbfc5213
commit 1dbc93f53b
5 changed files with 6 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ Embedding model is installed by default.
| Feature | Community (Free) | Enterprise (Paid) |
|---------|-----------|------------|
| **Users** | Up to 50 users | User licenses per seat |
| **Users** | Up to 10 users | User licenses per seat |
| **Support** | GitHub Issues | Dedicated human support |
| **Billing & Reports** | Not included | Full financial tracking |
| **Pro Agents** | Not included | Pre-built professional agents |

View File

@@ -23,7 +23,7 @@ router = APIRouter(prefix="/users", tags=["users"])
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
# GT AI OS Community Edition - Hardcoded user limit
MAX_USERS_COMMUNITY = 50
MAX_USERS_COMMUNITY = 10
def get_default_capabilities(user_type: str) -> List[Dict[str, Any]]:

View File

@@ -155,7 +155,7 @@ export default function TenantsPage() {
Manage your tenant configuration
</p>
<p className="text-sm text-amber-600 mt-1">
GT AI OS Community Edition: Limited to 50 users per tenant
GT AI OS Community Edition: Limited to 10 users per tenant
</p>
</div>
</div>
@@ -210,7 +210,7 @@ export default function TenantsPage() {
<div className="grid grid-cols-2 md:grid-cols-4 gap-4">
<div>
<p className="text-sm font-medium text-muted-foreground">Users</p>
<p className="text-2xl font-bold">{tenant.user_count} <span className="text-sm font-normal text-muted-foreground">/ 50</span></p>
<p className="text-2xl font-bold">{tenant.user_count} <span className="text-sm font-normal text-muted-foreground">/ 10</span></p>
</div>
<div>
<p className="text-sm font-medium text-muted-foreground">Domain</p>

View File

@@ -329,7 +329,7 @@ export default function UsersPage() {
Manage users and access permissions
</p>
<p className="text-sm text-amber-600 mt-1">
GT AI OS Community Edition: Limited to 50 users
GT AI OS Community Edition: Limited to 10 users
</p>
</div>
<div className="flex space-x-2">

View File

@@ -143,7 +143,7 @@ export default function TenantsPage() {
domain: 'betatest',
template: 'development',
status: 'suspended',
max_users: 50,
max_users: 10,
current_users: 12,
namespace: 'gt-tenant-betatest',
resource_count: 5,