Add AI Provider and Virtual API Key actions to command palette

This commit is contained in:
Owen
2026-08-18 10:19:56 -04:00
parent 51375ed8b7
commit 35104f7b29
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -1607,6 +1607,8 @@
"commandPaletteCreateMachineClient": "Create Machine Client", "commandPaletteCreateMachineClient": "Create Machine Client",
"commandPaletteCreateAlertRule": "Create Alert Rule", "commandPaletteCreateAlertRule": "Create Alert Rule",
"commandPaletteCreateIdentityProvider": "Create Identity Provider", "commandPaletteCreateIdentityProvider": "Create Identity Provider",
"commandPaletteCreateAiProvider": "Create AI Provider",
"commandPaletteCreateVirtualApiKey": "Create Virtual API Key",
"commandPaletteToggleTheme": "Toggle Theme", "commandPaletteToggleTheme": "Toggle Theme",
"commandPaletteChooseOrganization": "Choose Organization", "commandPaletteChooseOrganization": "Choose Organization",
"commandPaletteShortcutMac": "⌘K", "commandPaletteShortcutMac": "⌘K",
@@ -11,6 +11,7 @@ import {
KeyRound, KeyRound,
MonitorUp, MonitorUp,
Plus, Plus,
Sparkles,
SunMoon, SunMoon,
UserPlus UserPlus
} from "lucide-react"; } from "lucide-react";
@@ -117,6 +118,18 @@ export function useCommandPaletteActions(
icon: <KeyRound className="size-4" />, icon: <KeyRound className="size-4" />,
href: `/${orgId}/settings/api-keys/create` href: `/${orgId}/settings/api-keys/create`
}); });
actions.push({
id: "create-ai-provider",
label: t("commandPaletteCreateAiProvider"),
icon: <Sparkles className="size-4" />,
href: `/${orgId}/settings/ai-providers/create`
});
actions.push({
id: "create-virtual-api-key",
label: t("commandPaletteCreateVirtualApiKey"),
icon: <KeyRound className="size-4" />,
href: `/${orgId}/settings/virtual-api-keys/keys`
});
if (!env?.flags.disableEnterpriseFeatures) { if (!env?.flags.disableEnterpriseFeatures) {
actions.push({ actions.push({