mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 16:09:06 +00:00
Cmd K remove duplicate results for project integrations (#52208)
## Context Searching for project integrations currently returns "duplicate" results as such <img width="622" height="284" alt="image" src="https://github.com/user-attachments/assets/95f20b79-4365-494e-8e19-08bb19173d51" /> Am opting to remove the "navigate" section as "Integrations" seem more appropriate + also tighten the copy a little <img width="637" height="218" alt="image" src="https://github.com/user-attachments/assets/5d801477-8924-4001-a409-e66e76166c90" />
This commit is contained in:
1 parent
9048d86e35
commit
ea3d522cbf
1 file changed
+3
-17
@@ -23,30 +23,16 @@ export function useIntegrationsGotoCommands(options?: CommandOptions) {
|
||||
const getName = (integration: IntegrationDefinition) => {
|
||||
switch (integration.id) {
|
||||
case 'cron':
|
||||
return 'View and manage your Cron Jobs'
|
||||
return 'Manage Cron Jobs'
|
||||
case 'graphiql':
|
||||
return 'Query database using GraphQL'
|
||||
case 'vault':
|
||||
return 'View and manage your keys and secrets via Vault'
|
||||
return 'Manage keys and secrets via Vault'
|
||||
default:
|
||||
return `View and manage your ${integration.name}${integration.type === 'wrapper' ? 's' : ''}`
|
||||
return `Manage ${integration.name}${integration.type === 'wrapper' ? 's' : ''}`
|
||||
}
|
||||
}
|
||||
|
||||
useRegisterCommands(
|
||||
COMMAND_MENU_SECTIONS.NAVIGATE,
|
||||
allIntegrations.map((x) => {
|
||||
return {
|
||||
id: `nav-integrations-${x.id}`,
|
||||
name: x.name,
|
||||
value: `Integrations: ${x.name}`,
|
||||
route: `/project/${ref}/integrations/${x.id}/overview`,
|
||||
defaultHidden: true,
|
||||
}
|
||||
}),
|
||||
{ ...options, deps: [ref] }
|
||||
)
|
||||
|
||||
useRegisterCommands(
|
||||
COMMAND_MENU_SECTIONS.INTEGRATIONS,
|
||||
allIntegrations.map((x) => {
|
||||
|
||||
Reference in new issue
Block a user