The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
new Integrations page (#29671)
Terry Suttonb6de81485c17
diff --git a/apps/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx b/apps/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsxindex 920e6a3577d..61933f017b7 100644--- a/apps/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx+++ b/apps/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx@@ -75,7 +75,7 @@ const WrappersDisabledState = () => {return (<div><div- className="w-full px-12 py-12 bg-no-repeat border rounded-md bg-studio border-default"+ className="w-full px-12 py-12 bg-no-repeat border rounded-md bg-alternative-200 border-default"style={{backgroundSize: '45%',backgroundPosition: '105% 40%',diff --git a/apps/studio/components/interfaces/Database/CronJobs/CreateCronJobSheet.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsxsimilarity index 99%rename from apps/studio/components/interfaces/Database/CronJobs/CreateCronJobSheet.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsxindex b08732f6e58..02391b94026 100644--- a/apps/studio/components/interfaces/Database/CronJobs/CreateCronJobSheet.tsx+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet.tsx@@ -31,7 +31,7 @@ import {import { Admonition } from 'ui-patterns'import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'-import EnableExtensionModal from '../Extensions/EnableExtensionModal'+import { CRONJOB_DEFINITIONS } from './CronJobs.constants'import { buildCronQuery, buildHttpRequestCommand, parseCronJobCommand } from './CronJobs.utils'import { CronJobScheduleSection } from './CronJobScheduleSection'@@ -41,6 +41,7 @@ import { HTTPParameterFieldsSection } from './HttpParameterFieldsSection'import { HttpRequestSection } from './HttpRequestSection'import { SqlFunctionSection } from './SqlFunctionSection'import { SqlSnippetSection } from './SqlSnippetSection'+import EnableExtensionModal from 'components/interfaces/Database/Extensions/EnableExtensionModal'export interface CreateCronJobSheetProps {selectedCronJob?: Pick<CronJob, 'jobname' | 'schedule' | 'active' | 'command'>diff --git a/apps/studio/components/interfaces/Database/CronJobs/CronJobCard.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobCard.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/CronJobCard.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/CronJobCard.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/CronJobScheduleSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobScheduleSection.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/CronJobScheduleSection.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/CronJobScheduleSection.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/CronJobs.constants.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.constants.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/CronJobs.constants.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.constants.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/CronJobs.utils.test.ts b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.test.tssimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/CronJobs.utils.test.tsrename to apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.test.tsdiff --git a/apps/studio/components/interfaces/Database/CronJobs/CronJobs.utils.ts b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.tssimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/CronJobs.utils.tsrename to apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.tsdiff --git a/apps/studio/components/interfaces/Database/CronJobs/CronJobsDisabledState.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsDisabledState.tsxsimilarity index 97%rename from apps/studio/components/interfaces/Database/CronJobs/CronJobsDisabledState.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/CronJobsDisabledState.tsxindex c6003b569d9..4668f703848 100644--- a/apps/studio/components/interfaces/Database/CronJobs/CronJobsDisabledState.tsx+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsDisabledState.tsx@@ -8,8 +8,9 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConteimport { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'import { Button } from 'ui'-import EnableExtensionModal from '../Extensions/EnableExtensionModal'+import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'+import EnableExtensionModal from 'components/interfaces/Database/Extensions/EnableExtensionModal'export const CronJobsDisabledState = () => {const [showEnableExtensionModal, setShowEnableExtensionModal] = useState(false)diff --git a/apps/studio/components/interfaces/Database/CronJobs/CronJobsListing.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsListing.tsxsimilarity index 98%rename from apps/studio/components/interfaces/Database/CronJobs/CronJobsListing.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/CronJobsListing.tsxindex 916dd0a0612..24a6b8958ba 100644--- a/apps/studio/components/interfaces/Database/CronJobs/CronJobsListing.tsx+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsListing.tsx@@ -10,11 +10,12 @@ import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { CronJob, useCronJobsQuery } from 'data/database-cron-jobs/database-cron-jobs-query'import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'import { Button, Sheet, SheetContent } from 'ui'-import EnableExtensionModal from '../Extensions/EnableExtensionModal'+import { CreateCronJobSheet } from './CreateCronJobSheet'import { CronJobCard } from './CronJobCard'import { CronJobsDisabledState } from './CronJobsDisabledState'import DeleteCronJob from './DeleteCronJob'+import EnableExtensionModal from 'components/interfaces/Database/Extensions/EnableExtensionModal'export const CronJobsListing = () => {const { project } = useProjectContext()diff --git a/apps/studio/components/interfaces/Database/CronJobs/DeleteCronJob.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/DeleteCronJob.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/DeleteCronJob.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/DeleteCronJob.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/EdgeFunctionSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/EdgeFunctionSection.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/HttpHeaderFieldsSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/HttpHeaderFieldsSection.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/HttpHeaderFieldsSection.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/HttpHeaderFieldsSection.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/HttpParameterFieldsSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/HttpParameterFieldsSection.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/HttpParameterFieldsSection.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/HttpParameterFieldsSection.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/HttpRequestSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/HttpRequestSection.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/HttpRequestSection.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/HttpRequestSection.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/SqlFunctionSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/SqlFunctionSection.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/SqlFunctionSection.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/SqlFunctionSection.tsxdiff --git a/apps/studio/components/interfaces/Database/CronJobs/SqlSnippetSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/SqlSnippetSection.tsxsimilarity index 100%rename from apps/studio/components/interfaces/Database/CronJobs/SqlSnippetSection.tsxrename to apps/studio/components/interfaces/Integrations/CronJobs/SqlSnippetSection.tsxdiff --git a/apps/studio/components/interfaces/Settings/Vault/VaultNavTabs.tsx b/apps/studio/components/interfaces/Settings/Vault/VaultNavTabs.tsxindex a79cb9fe45c..27d3f4b16c7 100644--- a/apps/studio/components/interfaces/Settings/Vault/VaultNavTabs.tsx+++ b/apps/studio/components/interfaces/Settings/Vault/VaultNavTabs.tsx@@ -11,10 +11,12 @@ const VaultNavTabs = (props: PropsWithChildren<Props>) => {return (<NavMenu className="mb-4" aria-label="Vault menu"><NavMenuItem active={props.activeTab === 'secrets'}>- <Link href={`/project/${props.projRef}/settings/vault/secrets`}>Secrets Management</Link>+ <Link href={`/project/${props.projRef}/integrations/vault/secrets`}>+ Secrets Management+ </Link></NavMenuItem><NavMenuItem active={props.activeTab === 'keys'}>- <Link href={`/project/${props.projRef}/settings/vault/keys`}>Encryption Keys</Link>+ <Link href={`/project/${props.projRef}/integrations/vault/keys`}>Encryption Keys</Link></NavMenuItem></NavMenu>)diff --git a/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.tsx b/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.tsxindex 02f7c059f0f..bf527528b39 100644--- a/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.tsx+++ b/apps/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.tsx@@ -101,7 +101,8 @@ export const generateDatabaseMenu = ({name: 'Wrappers',key: 'wrappers',- url: `/project/${ref}/database/wrappers`,+ url: `/project/${ref}/integrations/wrappers`,+ rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,items: [],},{@@ -115,17 +116,8 @@ export const generateDatabaseMenu = ({name: 'Webhooks',key: 'hooks',- url: `/project/${ref}/database/hooks`,- items: [],- },- ]- : []),- ...(!!cronUiEnabled- ? [- {- name: 'Cron Jobs',- key: 'cron-jobs',- url: `/project/${ref}/database/cron-jobs`,+ url: `/project/${ref}/integrations/hooks`,+ rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,items: [],},]diff --git a/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx b/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsxindex f6f69f2c2bf..04aa4edd1e5 100644--- a/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx+++ b/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx@@ -1,6 +1,6 @@import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'import { BASE_PATH } from 'lib/constants'-import { Book, BookOpen } from 'lucide-react'+import { ArrowUpRight, Book, BookOpen } from 'lucide-react'import SVG from 'react-inlinesvg'export const generateDocsMenu = (@@ -71,7 +71,7 @@ export const generateDocsMenu = ({name: 'GraphiQL',key: 'graphiql',- url: `/project/${ref}/api/graphiql`,+ url: `/project/${ref}/integrations/graphiql`,icon: (<SVGsrc={`${BASE_PATH}/img/graphql.svg`}@@ -81,6 +81,7 @@ export const generateDocsMenu = (/>),items: [],+ rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,},],},diff --git a/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrations.Commands.tsx b/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrations.Commands.tsxnew file mode 100644index 00000000000..891f526f234--- /dev/null+++ b/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrations.Commands.tsx@@ -0,0 +1,107 @@+import { Code } from 'lucide-react'++import { COMMAND_MENU_SECTIONS } from 'components/interfaces/App/CommandMenu/CommandMenu.utils'+import type { CommandOptions } from 'ui-patterns/CommandMenu'+import { useRegisterCommands } from 'ui-patterns/CommandMenu'+import { useParams } from 'common'+import { orderCommandSectionsByPriority } from 'components/interfaces/App/CommandMenu/ordering'++export function useDatabaseGotoCommands(options?: CommandOptions) {+ let { ref } = useParams()+ ref ||= '_'++ useRegisterCommands(+ COMMAND_MENU_SECTIONS.QUERY,+ [+ {+ id: 'run-sql',+ name: 'Run SQL',+ route: `/project/${ref}/sql/new`,+ icon: () => <Code />,+ },+ ],+ {+ ...options,+ deps: [ref],+ orderSection: orderCommandSectionsByPriority,+ sectionMeta: { priority: 2 },+ }+ )++ useRegisterCommands(+ COMMAND_MENU_SECTIONS.NAVIGATE,+ [+ {+ id: 'nav-database-tables',+ name: 'Tables',+ value: 'Database: Tables',+ route: `/project/${ref}/database/tables`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-triggers',+ name: 'Triggers',+ value: 'Database: Triggers',+ route: `/project/${ref}/database/triggers`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-functions',+ name: 'Functions',+ value: 'Database: Functions',+ route: `/project/${ref}/database/functions`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-extensions',+ name: 'Extensions',+ value: 'Database: Extensions',+ route: `/project/${ref}/database/extensions`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-roles',+ name: 'Roles',+ value: 'Database: Roles',+ route: `/project/${ref}/database/roles`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-replication',+ name: 'Replication',+ value: 'Database: Replication',+ route: `/project/${ref}/database/replication`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-hooks',+ name: 'Webhooks',+ value: 'Database: Webhooks',+ route: `/project/${ref}/database/hooks`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-backups',+ name: 'Backups',+ value: 'Database: Backups',+ route: `/project/${ref}/database/backups/scheduled`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-wrappers',+ name: 'Wrappers',+ value: 'Database: Wrappers',+ route: `/project/${ref}/database/wrappers`,+ defaultHidden: true,+ },+ {+ id: 'nav-database-migrations',+ name: 'Migrations',+ value: 'Database: Migrations',+ route: `/project/${ref}/database/migrations`,+ defaultHidden: true,+ },+ ],+ { ...options, deps: [ref] }+ )+}diff --git a/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout.tsx b/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout.tsxnew file mode 100644index 00000000000..a7a08d5f617--- /dev/null+++ b/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout.tsx@@ -0,0 +1,59 @@+import { useRouter } from 'next/router'+import { PropsWithChildren } from 'react'++import { ProductMenu } from 'components/ui/ProductMenu'+import { useDatabaseExtensionsQuery } from 'data/database-extensions/database-extensions-query'+import { useSelectedProject } from 'hooks/misc/useSelectedProject'+import { withAuth } from 'hooks/misc/withAuth'+import ProjectLayout from '../ProjectLayout/ProjectLayout'+import { generateProjectIntegrationsMenu } from './ProjectIntegrationsMenu.utils'+import { useFlag } from 'hooks/ui/useFlag'++export interface ProjectIntegrationsLayoutProps {+ title?: string+}++const ProjectIntegrationsMenu = () => {+ const cronUiEnabled = useFlag('cronUi')+ const project = useSelectedProject()++ const router = useRouter()+ const page = router.pathname.split('/')[4]++ const { data } = useDatabaseExtensionsQuery({+ projectRef: project?.ref,+ connectionString: project?.connectionString,+ })+ console.log({ data })+ const pgNetExtensionExists = (data ?? []).find((ext) => ext.name === 'pg_net') !== undefined+ const graphqlExtensionExists = (data ?? []).find((ext) => ext.name === 'pg_graphql') !== undefined++ return (+ <>+ <ProductMenu+ page={page}+ menu={generateProjectIntegrationsMenu(project, {+ pgNetExtensionExists,+ cronUiEnabled,+ graphqlExtensionExists,+ })}+ />+ </>+ )+}++const ProjectIntegrationsLayout = ({+ children,+}: PropsWithChildren<ProjectIntegrationsLayoutProps>) => {+ return (+ <ProjectLayout+ product="Integrations"+ productMenu={<ProjectIntegrationsMenu />}+ isBlocking={false}+ >+ {children}+ </ProjectLayout>+ )+}++export default withAuth(ProjectIntegrationsLayout)diff --git a/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsMenu.utils.tsx b/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsMenu.utils.tsxnew file mode 100644index 00000000000..78f2f91eb6a--- /dev/null+++ b/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsMenu.utils.tsx@@ -0,0 +1,66 @@+import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'+import type { Project } from 'data/projects/project-detail-query'++export const generateProjectIntegrationsMenu = (+ project?: Project,+ flags?: {+ pgNetExtensionExists: boolean+ cronUiEnabled: boolean+ graphqlExtensionExists: boolean+ }+): ProductMenuGroup[] => {+ const ref = project?.ref ?? 'default'+ const { pgNetExtensionExists, cronUiEnabled, graphqlExtensionExists } = flags || {}++ return [+ {+ title: 'Manage',+ items: [+ {+ name: 'Wrappers',+ key: 'wrappers',+ url: `/project/${ref}/integrations/wrappers`,+ items: [],+ },+ ...(!!pgNetExtensionExists+ ? [+ {+ name: 'Webhooks',+ key: 'hooks',+ url: `/project/${ref}/integrations/hooks`,+ items: [],+ },+ ]+ : []),++ ...(!!cronUiEnabled+ ? [+ {+ name: 'Cron Jobs',+ key: 'cron-jobs',+ url: `/project/${ref}/integrations/cron-jobs`,+ items: [],+ },+ ]+ : []),+ ...(!!graphqlExtensionExists+ ? [+ {+ name: 'GraphiQL',+ key: 'graphiql',+ url: `/project/${ref}/integrations/graphiql`,+ items: [],+ },+ ]+ : []),+ {+ name: 'Vault',+ key: 'vault',+ url: `/project/${ref}/integrations/vault/secrets`,+ items: [],+ label: 'BETA',+ },+ ],+ },+ ]+}diff --git a/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx b/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsxindex 3073b168764..159f5bb7dae 100644--- a/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx+++ b/apps/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx@@ -12,7 +12,7 @@ import {TableEditor,} from 'icons'import { ICON_SIZE, ICON_STROKE_WIDTH } from './NavigationBar'-import { Settings, FileText, List, Lightbulb } from 'lucide-react'+import { Settings, FileText, List, Lightbulb, Blocks } from 'lucide-react'export const generateToolRoutes = (ref?: string, project?: Project): Route[] => {const isProjectBuilding = project?.status === PROJECT_STATUS.COMING_UP@@ -138,6 +138,12 @@ export const generateOtherRoutes = (ref?: string, project?: Project): Route[] =>icon: <FileText size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/api`),},+ {+ key: 'integrations',+ label: 'Integrations',+ icon: <Blocks size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,+ link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/integrations/wrappers`),+ },]}diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsxsimilarity index 96%rename from apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsrename to apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsxindex 534af51b477..768c38a20c1 100644--- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts+++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx@@ -2,6 +2,7 @@ import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.typimport type { Project } from 'data/projects/project-detail-query'import { IS_PLATFORM, PROJECT_STATUS } from 'lib/constants'import type { Organization } from 'types'+import { ArrowUpRight } from 'lucide-react'export const generateSettingsMenu = (ref?: string,@@ -62,8 +63,9 @@ export const generateSettingsMenu = ({name: 'Vault',key: 'vault',- url: isProjectBuilding ? buildingUrl : `/project/${ref}/settings/vault/secrets`,+ url: isProjectBuilding ? buildingUrl : `/project/${ref}/integrations/vault/secrets`,items: [],+ rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,label: 'BETA',},],diff --git a/apps/studio/next.config.js b/apps/studio/next.config.jsindex 5b25632526d..6ea759427e0 100644--- a/apps/studio/next.config.js+++ b/apps/studio/next.config.js@@ -394,6 +394,36 @@ const nextConfig = {source: '/project/:ref/database/performance-advisor',destination: '/project/:ref/advisors/performance',},+ {+ permanent: true,+ source: '/project/:ref/database/webhooks',+ destination: '/project/:ref/integrations/webhooks',+ },+ {+ permanent: true,+ source: '/project/:ref/database/wrappers',+ destination: '/project/:ref/integrations/wrappers',+ },+ {+ permanent: true,+ source: '/project/:ref/.....',+ destination: '/project/:ref/integrations/cron-jobs',+ },+ {+ permanent: true,+ source: '/project/:ref/api/graphiql',+ destination: '/project/:ref/integrations/graphiql',+ },+ {+ permanent: true,+ source: '/project/:ref/settings/vault/secrets',+ destination: '/project/:ref/integrations/vault/secrets',+ },+ {+ permanent: true,+ source: '/project/:ref/settings/vault/keys',+ destination: '/project/:ref/integrations/vault/keys',+ },...(process.env.NEXT_PUBLIC_BASE_PATH?.length? [{diff --git a/apps/studio/pages/project/[ref]/database/cron-jobs.tsx b/apps/studio/pages/project/[ref]/integrations/cron-jobs.tsxsimilarity index 71%rename from apps/studio/pages/project/[ref]/database/cron-jobs.tsxrename to apps/studio/pages/project/[ref]/integrations/cron-jobs.tsxindex f0fdf1c88a9..cb183f11488 100644--- a/apps/studio/pages/project/[ref]/database/cron-jobs.tsx+++ b/apps/studio/pages/project/[ref]/integrations/cron-jobs.tsx@@ -1,7 +1,7 @@-import { CronJobsListing } from 'components/interfaces/Database/CronJobs/CronJobsListing'-import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'+import { CronJobsListing } from 'components/interfaces/Integrations/CronJobs/CronJobsListing'import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'import type { NextPageWithLayout } from 'types'+import ProjectIntegrationsLayout from 'components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout'const CronJobsPage: NextPageWithLayout = () => {// TODO: Change this to the correct permissions@@ -23,6 +23,8 @@ const CronJobsPage: NextPageWithLayout = () => {)}-CronJobsPage.getLayout = (page) => <DatabaseLayout title="Database">{page}</DatabaseLayout>+CronJobsPage.getLayout = (page) => (+ <ProjectIntegrationsLayout title="Database">{page}</ProjectIntegrationsLayout>+)export default CronJobsPagediff --git a/apps/studio/pages/project/[ref]/api/graphiql.tsx b/apps/studio/pages/project/[ref]/integrations/graphiql.tsxsimilarity index 94%rename from apps/studio/pages/project/[ref]/api/graphiql.tsxrename to apps/studio/pages/project/[ref]/integrations/graphiql.tsxindex 0d7e0bfb9d8..3d34d908c1b 100644--- a/apps/studio/pages/project/[ref]/api/graphiql.tsx+++ b/apps/studio/pages/project/[ref]/integrations/graphiql.tsx@@ -7,7 +7,6 @@ import { toast } from 'sonner'import { useParams } from 'common'import ExtensionCard from 'components/interfaces/Database/Extensions/ExtensionCard'import GraphiQL from 'components/interfaces/GraphQL/GraphiQL'-import DocsLayout from 'components/layouts/DocsLayout/DocsLayout'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { Loading } from 'components/ui/Loading'import { useSessionAccessTokenQuery } from 'data/auth/session-access-token-query'@@ -18,6 +17,7 @@ import { API_URL, IS_PLATFORM } from 'lib/constants'import { getRoleImpersonationJWT } from 'lib/role-impersonation'import { useGetImpersonatedRole } from 'state/role-impersonation-state'import type { NextPageWithLayout } from 'types'+import ProjectIntegrationsLayout from 'components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout'const GraphiQLPage: NextPageWithLayout = () => {const { resolvedTheme } = useTheme()@@ -111,6 +111,8 @@ const GraphiQLPage: NextPageWithLayout = () => {return <GraphiQL fetcher={fetcher} theme={currentTheme} />}-GraphiQLPage.getLayout = (page) => <DocsLayout title="GraphiQL">{page}</DocsLayout>+GraphiQLPage.getLayout = (page) => (+ <ProjectIntegrationsLayout title="GraphiQL">{page}</ProjectIntegrationsLayout>+)export default GraphiQLPagediff --git a/apps/studio/pages/project/[ref]/database/hooks.tsx b/apps/studio/pages/project/[ref]/integrations/hooks.tsxsimilarity index 95%rename from apps/studio/pages/project/[ref]/database/hooks.tsxrename to apps/studio/pages/project/[ref]/integrations/hooks.tsxindex 3bc6f1ad659..31474bccbda 100644--- a/apps/studio/pages/project/[ref]/database/hooks.tsx+++ b/apps/studio/pages/project/[ref]/integrations/hooks.tsx@@ -16,6 +16,7 @@ import { useHooksEnableMutation } from 'data/database/hooks-enable-mutation'import { useSchemasQuery } from 'data/database/schemas-query'import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'import type { NextPageWithLayout } from 'types'+import ProjectIntegrationsLayout from 'components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout'const HooksPage: NextPageWithLayout = () => {const { project } = useProjectContext()@@ -124,6 +125,8 @@ const HooksPage: NextPageWithLayout = () => {)}-HooksPage.getLayout = (page) => <DatabaseLayout title="Hooks">{page}</DatabaseLayout>+HooksPage.getLayout = (page) => (+ <ProjectIntegrationsLayout title="Hooks">{page}</ProjectIntegrationsLayout>+)export default HooksPagediff --git a/apps/studio/pages/project/[ref]/settings/vault/keys.tsx b/apps/studio/pages/project/[ref]/integrations/vault/keys.tsxsimilarity index 89%rename from apps/studio/pages/project/[ref]/settings/vault/keys.tsxrename to apps/studio/pages/project/[ref]/integrations/vault/keys.tsxindex 068b46426ed..63e5fd1b4cb 100644--- a/apps/studio/pages/project/[ref]/settings/vault/keys.tsx+++ b/apps/studio/pages/project/[ref]/integrations/vault/keys.tsx@@ -2,6 +2,7 @@ import { useParams } from 'common'import { EncryptionKeysManagement, VaultToggle } from 'components/interfaces/Settings/Vault'import VaultNavTabs from 'components/interfaces/Settings/Vault/VaultNavTabs'+import ProjectIntegrationsLayout from 'components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'import {@@ -54,5 +55,7 @@ const VaultSettingsSecrets: NextPageWithLayout = () => {)}-VaultSettingsSecrets.getLayout = (page) => <SettingsLayout title="Vault">{page}</SettingsLayout>+VaultSettingsSecrets.getLayout = (page) => (+ <ProjectIntegrationsLayout title="Vault">{page}</ProjectIntegrationsLayout>+)export default VaultSettingsSecretsdiff --git a/apps/studio/pages/project/[ref]/settings/vault/secrets.tsx b/apps/studio/pages/project/[ref]/integrations/vault/secrets.tsxsimilarity index 89%rename from apps/studio/pages/project/[ref]/settings/vault/secrets.tsxrename to apps/studio/pages/project/[ref]/integrations/vault/secrets.tsxindex 5adf498d416..bd3c1c7eade 100644--- a/apps/studio/pages/project/[ref]/settings/vault/secrets.tsx+++ b/apps/studio/pages/project/[ref]/integrations/vault/secrets.tsx@@ -1,8 +1,9 @@import { useParams } from 'common/hooks'import { SecretsManagement, VaultToggle } from 'components/interfaces/Settings/Vault'import VaultNavTabs from 'components/interfaces/Settings/Vault/VaultNavTabs'+import ProjectIntegrationsLayout from 'components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'-import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'+import {ScaffoldContainer,ScaffoldDescription,@@ -55,5 +56,7 @@ const VaultSettingsSecrets: NextPageWithLayout = () => {)}-VaultSettingsSecrets.getLayout = (page) => <SettingsLayout title="Vault">{page}</SettingsLayout>+VaultSettingsSecrets.getLayout = (page) => (+ <ProjectIntegrationsLayout title="Vault">{page}</ProjectIntegrationsLayout>+)export default VaultSettingsSecretsdiff --git a/apps/studio/pages/project/[ref]/database/wrappers/[id].tsx b/apps/studio/pages/project/[ref]/integrations/wrappers/[id].tsxsimilarity index 75%rename from apps/studio/pages/project/[ref]/database/wrappers/[id].tsxrename to apps/studio/pages/project/[ref]/integrations/wrappers/[id].tsxindex d73f76480aa..d9110015d27 100644--- a/apps/studio/pages/project/[ref]/database/wrappers/[id].tsx+++ b/apps/studio/pages/project/[ref]/integrations/wrappers/[id].tsx@@ -1,7 +1,7 @@import { PermissionAction } from '@supabase/shared-types/out/constants'import { EditWrapper } from 'components/interfaces/Database'-import DatabaseLayout from 'components/layouts/DatabaseLayout/DatabaseLayout'+import ProjectIntegrationsLayout from 'components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout'import NoPermission from 'components/ui/NoPermission'import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPermissions'import type { NextPageWithLayout } from 'types'@@ -17,6 +17,8 @@ const DatabaseWrappersNew: NextPageWithLayout = () => {return <EditWrapper />}-DatabaseWrappersNew.getLayout = (page) => <DatabaseLayout title="Wrappers">{page}</DatabaseLayout>+DatabaseWrappersNew.getLayout = (page) => (+ <ProjectIntegrationsLayout title="Wrappers">{page}</ProjectIntegrationsLayout>+)export default DatabaseWrappersNewdiff --git a/apps/studio/pages/project/[ref]/database/wrappers/index.tsx b/apps/studio/pages/project/[ref]/integrations/wrappers/index.tsxsimilarity index 93%rename from apps/studio/pages/project/[ref]/database/wrappers/index.tsxrename to apps/studio/pages/project/[ref]/integrations/wrappers/index.tsxindex 93e3bf73f4a..6c0d2ea7566 100644--- a/apps/studio/pages/project/[ref]/database/wrappers/index.tsx+++ b/apps/studio/pages/project/[ref]/integrations/wrappers/index.tsx@@ -19,6 +19,7 @@ import { useCheckPermissions, usePermissionsLoaded } from 'hooks/misc/useCheckPeimport type { NextPageWithLayout } from 'types'import { Button } from 'ui'import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'+import ProjectIntegrationsLayout from 'components/layouts/ProjectIntegrationsLayout/ProjectIntegrationsLayout'const DatabaseWrappers: NextPageWithLayout = () => {const { project } = useProjectContext()@@ -80,6 +81,8 @@ const DatabaseWrappers: NextPageWithLayout = () => {)}-DatabaseWrappers.getLayout = (page) => <DatabaseLayout title="Wrappers">{page}</DatabaseLayout>+DatabaseWrappers.getLayout = (page) => (+ <ProjectIntegrationsLayout title="Wrappers">{page}</ProjectIntegrationsLayout>+)export default DatabaseWrappersdiff --git a/apps/studio/pages/project/[ref]/database/wrappers/new.tsx b/apps/studio/pages/project/[ref]/integrations/wrappers/new.tsxsimilarity index 100%rename from apps/studio/pages/project/[ref]/database/wrappers/new.tsxrename to apps/studio/pages/project/[ref]/integrations/wrappers/new.tsx