feat(ui): add identity management for tenants and users
CI / build-and-test (push) Successful in 1m47s

* Implement tenant and user creation in IdentityPage
* Add API calls for managing tenants and users
* Introduce tenant-scoped API requests
* Update sidebar to include identity navigation
* Create BooleanStatusBadge component for key status
This commit is contained in:
2026-07-20 22:50:55 +02:00
parent 3d4e6d0939
commit 196b543bee
64 changed files with 3363 additions and 615 deletions
+31 -1
View File
@@ -66,7 +66,7 @@ export type NavItem = {
disabled?: boolean;
};
export type ShellPage = 'dashboard' | 'projects' | 'thoughts' | 'learnings' | 'plans' | 'skills' | 'guardrails' | 'personas' | 'files' | 'maintenance';
export type ShellPage = 'dashboard' | 'identity' | 'projects' | 'thoughts' | 'learnings' | 'plans' | 'skills' | 'guardrails' | 'personas' | 'files' | 'maintenance';
export type Project = {
id: string;
@@ -295,3 +295,33 @@ export type MetadataRetryResult = {
failed: number;
dry_run: boolean;
};
export type Tenant = {
id: string;
name: string;
created_at: string;
};
export type TenantUser = {
id: string;
tenant_id: string;
name: string;
email: string;
created_at: string;
};
export type IdentityKey = {
id: string;
tenant_id: string;
user_id?: string;
description: string;
source: 'configured' | 'managed';
enabled: boolean;
created_at: string;
};
export type IdentityData = {
tenants: Tenant[];
users: TenantUser[];
keys: IdentityKey[];
};