Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat(studio): add Go to API Keys command menu action (#47916)

Jordi Enricc9d7f00b8e32
diff --git a/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx b/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx
index 82fe7b2cbb2..d8ad22c0763 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx
@@ -160,4 +160,17 @@ export function useApiKeysCommands() {
sectionMeta: { priority: 3 },
}
)
+
+ useRegisterCommands(
+ COMMAND_MENU_SECTIONS.NAVIGATE,
+ [
+ {
+ id: 'nav-api-keys',
+ name: 'Go to API Keys',
+ route: `/project/${ref}/settings/api-keys`,
+ icon: () => <Key />,
+ },
+ ],
+ { enabled: !!project }
+ )
}