Files
supabase/apps/studio/components/interfaces/App/CommandMenu/CommandMenu.tsx
T
Francesco Sansalvadore 0b2edc77fd chore(studio): refine "Create..." commands (#42772)
- Move the "Create..." command menu item at the top of the Actions group
based on feedback.
- Remove "Pro" badge and replace with "New" on Analytics and Vector
buckets
- Hide "Create Data API" and "Create GraphQL" as "create" doesn't apply
2026-02-17 14:08:47 +01:00

56 lines
2.2 KiB
TypeScript

import { IS_PLATFORM } from 'common'
import { useBranchCommands } from 'components/interfaces/BranchManagement/Branch.Commands'
import {
useQueryTableCommands,
useSnippetCommands,
} from 'components/layouts/SQLEditorLayout/SqlEditor.Commands'
import { useProjectLevelTableEditorCommands } from 'components/layouts/TableEditorLayout/TableEditor.Commands'
import { useLayoutNavCommands } from 'components/layouts/useLayoutNavCommands'
import { CommandHeader, CommandInput, CommandList, CommandMenu } from 'ui-patterns/CommandMenu'
import { useChangelogCommand } from 'ui-patterns/CommandMenu/prepackaged/Changelog'
import { useDocsAiCommands } from 'ui-patterns/CommandMenu/prepackaged/DocsAi'
import { useDocsSearchCommands } from 'ui-patterns/CommandMenu/prepackaged/DocsSearch'
import { useThemeSwitcherCommands } from 'ui-patterns/CommandMenu/prepackaged/ThemeSwitcher'
import { useApiKeysCommands } from './ApiKeys'
import { useApiUrlCommand } from './ApiUrl'
import { useContextSearchCommands } from './ContextSearchCommands'
import { useCreateCommands } from './CreateCommands'
import { orderCommandSectionsByPriority } from './ordering'
import { useConfigureOrganizationCommand, useProjectSwitchCommand } from './OrgProjectSwitcher'
import { useSupportCommands } from './Support'
import { useConnectCommands } from '@/components/interfaces/ConnectButton/Connect.Commands'
export default function StudioCommandMenu() {
useCreateCommands()
useApiKeysCommands()
useApiUrlCommand()
useConnectCommands()
useProjectLevelTableEditorCommands()
useProjectSwitchCommand()
useConfigureOrganizationCommand()
useQueryTableCommands()
useBranchCommands()
useSnippetCommands()
useLayoutNavCommands()
useDocsSearchCommands({
options: { orderSection: orderCommandSectionsByPriority, sectionMeta: { priority: 3 } },
})
useDocsAiCommands({
options: { orderSection: orderCommandSectionsByPriority, sectionMeta: { priority: 3 } },
})
useSupportCommands()
useChangelogCommand({ enabled: IS_PLATFORM })
useThemeSwitcherCommands()
useContextSearchCommands()
return (
<CommandMenu>
<CommandHeader>
<CommandInput />
</CommandHeader>
<CommandList />
</CommandMenu>
)
}