From 40f051bc77a57bc4c1034d72845bfbcb2524a762 Mon Sep 17 00:00:00 2001 From: hzhang Date: Sun, 17 May 2026 15:06:28 +0100 Subject: [PATCH] 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) --- src/components/Modals/ApiKeyCreationModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Modals/ApiKeyCreationModal.js b/src/components/Modals/ApiKeyCreationModal.js index a715352..87b5136 100644 --- a/src/components/Modals/ApiKeyCreationModal.js +++ b/src/components/Modals/ApiKeyCreationModal.js @@ -12,7 +12,7 @@ import { Button } from '../ui/button'; import { Input, Label } from '../ui/input'; // Must match the backend allowlist (admin|creator|user). -const AVAILABLE_ROLES = ['user', 'creator', 'admin']; +const AVAILABLE_ROLES = ['user', 'creator', 'agent', 'admin']; 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";