Skip to content

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

Fix wrappers link (#30032)

Terry Suttonad7aa89e69f3
diff --git a/apps/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx b/apps/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx
index 5e7e016d34a..685e05b56a2 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx
+++ b/apps/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx
@@ -52,7 +52,7 @@ const CreateWrapper = () => {
const hasNewSchema = newTables.some((table) => table.is_new_schema)
if (hasNewSchema) invalidateSchemasQuery(queryClient, ref)
- router.push(`/project/${ref}/database/wrappers`)
+ router.push(`/project/${ref}/integrations/wrappers`)
},
})
@@ -89,7 +89,7 @@ const CreateWrapper = () => {
</p>
</div>
<Button asChild type="default">
- <Link href={`/project/${ref}/database/wrappers`}>Head back</Link>
+ <Link href={`/project/${ref}/integrations/wrappers`}>Head back</Link>
</Button>
</div>
)
diff --git a/apps/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx b/apps/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx
index 895d5aa505c..71aed86921c 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx
+++ b/apps/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx
@@ -62,7 +62,7 @@ const EditWrapper = () => {
const hasNewSchema = wrapperTables.some((table) => table.is_new_schema)
if (hasNewSchema) invalidateSchemasQuery(queryClient, ref)
- router.push(`/project/${ref}/database/wrappers`)
+ router.push(`/project/${ref}/integrations/wrappers`)
},
})
@@ -117,7 +117,7 @@ const EditWrapper = () => {
</p>
</div>
<Button asChild type="default">
- <Link href={`/project/${ref}/database/wrappers`}>Head back</Link>
+ <Link href={`/project/${ref}/integrations/wrappers`}>Head back</Link>
</Button>
</div>
)
@@ -169,7 +169,7 @@ const EditWrapper = () => {
'absolute -left-20 top-1 opacity-75 hover:opacity-100',
].join(' ')}
>
- <Link href={`/project/${ref}/database/wrappers`}>
+ <Link href={`/project/${ref}/integrations/wrappers`}>
<div className="flex items-center space-x-2">
<ArrowLeft strokeWidth={1.5} size={14} />
<p className="text-sm">Back</p>
diff --git a/apps/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx b/apps/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
index 9bb472c3298..8d8a262ae00 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
+++ b/apps/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
@@ -86,7 +86,7 @@ const WrapperDropdown = ({ buttonText = 'Add wrapper', align = 'end' }: WrapperD
onSelect={() => {
setOpen(false)
router.push(
- `/project/${ref}/database/wrappers/new?type=${wrapper.name.toLowerCase()}`
+ `/project/${ref}/integrations/wrappers/new?type=${wrapper.name.toLowerCase()}`
)
}}
className="gap-2 cursor-pointer"
diff --git a/apps/studio/components/interfaces/Database/Wrappers/WrappersEmptyState.tsx b/apps/studio/components/interfaces/Database/Wrappers/WrappersEmptyState.tsx
index 39bc4db5957..3196e7c2cb9 100644
--- a/apps/studio/components/interfaces/Database/Wrappers/WrappersEmptyState.tsx
+++ b/apps/studio/components/interfaces/Database/Wrappers/WrappersEmptyState.tsx
@@ -19,7 +19,7 @@ const WrappersEmptyState = () => {
<div className="grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
{WRAPPERS.map((wrapper) => (
<CardButton
- linkHref={`/project/${ref}/database/wrappers/new?type=${wrapper.name.toLowerCase()}`}
+ linkHref={`/project/${ref}/integrations/wrappers/new?type=${wrapper.name.toLowerCase()}`}
title={wrapper.label}
fixedHeight={false}
>
diff --git a/apps/studio/components/layouts/DatabaseLayout/Database.Commands.tsx b/apps/studio/components/layouts/DatabaseLayout/Database.Commands.tsx
index 891f526f234..0fdc8a11075 100644
--- a/apps/studio/components/layouts/DatabaseLayout/Database.Commands.tsx
+++ b/apps/studio/components/layouts/DatabaseLayout/Database.Commands.tsx
@@ -91,7 +91,7 @@ export function useDatabaseGotoCommands(options?: CommandOptions) {
id: 'nav-database-wrappers',
name: 'Wrappers',
value: 'Database: Wrappers',
- route: `/project/${ref}/database/wrappers`,
+ route: `/project/${ref}/integrations/wrappers`,
defaultHidden: true,
},
{
diff --git a/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrations.Commands.tsx b/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrations.Commands.tsx
index 891f526f234..0fdc8a11075 100644
--- a/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrations.Commands.tsx
+++ b/apps/studio/components/layouts/ProjectIntegrationsLayout/ProjectIntegrations.Commands.tsx
@@ -91,7 +91,7 @@ export function useDatabaseGotoCommands(options?: CommandOptions) {
id: 'nav-database-wrappers',
name: 'Wrappers',
value: 'Database: Wrappers',
- route: `/project/${ref}/database/wrappers`,
+ route: `/project/${ref}/integrations/wrappers`,
defaultHidden: true,
},
{