Compare commits

..

2 Commits

Author SHA1 Message Date
h z
f4787d0a27 Merge pull request 'feat: add 'agent' to API key role options' (#4) from feat/agent-role into main
Reviewed-on: #4
2026-05-17 14:10:05 +00:00
40f051bc77 feat: add 'agent' to API key role options
Keeps the Create API Key modal aligned with the backend allowlist
(admin|creator|user|agent).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 15:06:28 +01:00

View File

@@ -12,7 +12,7 @@ import { Button } from '../ui/button';
import { Input, Label } from '../ui/input'; import { Input, Label } from '../ui/input';
// Must match the backend allowlist (admin|creator|user). // Must match the backend allowlist (admin|creator|user).
const AVAILABLE_ROLES = ['user', 'creator', 'admin']; const AVAILABLE_ROLES = ['user', 'creator', 'agent', 'admin'];
const SELECT_CLASS = const SELECT_CLASS =
"flex h-9 w-full rounded-md border border-input bg-background/60 px-3 py-1 text-sm text-foreground transition-colors focus-visible:outline-none focus-visible:border-primary/60 focus-visible:ring-2 focus-visible:ring-ring/40 disabled:cursor-not-allowed disabled:opacity-50"; "flex h-9 w-full rounded-md border border-input bg-background/60 px-3 py-1 text-sm text-foreground transition-colors focus-visible:outline-none focus-visible:border-primary/60 focus-visible:ring-2 focus-visible:ring-ring/40 disabled:cursor-not-allowed disabled:opacity-50";