Skip to content

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

Move alpha items to database section

Terry Sutton4105b1cca37b
diff --git a/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts b/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts
index 8dc5c5b9109..9a6cce9ada7 100644
--- a/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts
+++ b/studio/components/layouts/DatabaseLayout/DatabaseMenu.utils.ts
@@ -28,6 +28,7 @@ export const generateDatabaseMenu = (project?: Project): ProductMenuGroup[] => {
key: 'functions',
url: `/project/${ref}/database/functions`,
items: [],
+ isPreview: true,
},
{
name: 'Extensions',
@@ -98,36 +99,5 @@ export const generateDatabaseMenu = (project?: Project): ProductMenuGroup[] => {
},
]
: []),
- ...(IS_PLATFORM
- ? [
- {
- title: 'Alpha Preview',
- items: [
- {
- name: 'Database Triggers',
- key: 'triggers',
- url: `/project/${ref}/database/triggers`,
- items: [],
- },
- {
- name: 'Database Functions',
- key: 'functions',
- url: `/project/${ref}/database/functions`,
- items: [],
- },
- ...(showHooksRoute
- ? [
- {
- name: 'Database Webhooks',
- key: 'hooks',
- url: `/project/${ref}/database/hooks`,
- items: [],
- },
- ]
- : []),
- ],
- },
- ]
- : []),
]
}
diff --git a/studio/components/ui/ProductMenu/ProductMenuItem.tsx b/studio/components/ui/ProductMenu/ProductMenuItem.tsx
index 9ab0e31e01d..3349658a87c 100644
--- a/studio/components/ui/ProductMenu/ProductMenuItem.tsx
+++ b/studio/components/ui/ProductMenu/ProductMenuItem.tsx
@@ -13,7 +13,7 @@ interface Props {
onClick?: () => void
textClassName?: string
hoverText?: string
- ispreview?: boolean
+ isPreview?: boolean
}
const ProductMenuItem: FC<Props> = ({
@@ -34,9 +34,12 @@ const ProductMenuItem: FC<Props> = ({
<div className="flex w-full items-center justify-between">
<span
title={hoverText ? hoverText : typeof name === 'string' ? name : ''}
- className={'flex items-center truncate ' + textClassName}
+ className={'flex items-center gap-2 truncate ' + textClassName}
>
- {name} {isPreview && <Badge color="amber">Alpha</Badge>}
+ {name}{' '}
+ {isPreview && (
+ <span className="uppercase text-orange-800 text-xs font-normal">Alpha</span>
+ )}
</span>
{action}
</div>