mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-18 18:23:18 +02:00
Add AI Provider and Virtual API Key actions to command palette
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user