The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add new menu items
Terry Sutton65456beffa19
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsxindex 3beb7a0fea6..7692fe9a3d3 100644--- a/packages/ui/src/components/Command/CommandMenu.tsx+++ b/packages/ui/src/components/Command/CommandMenu.tsx@@ -70,6 +70,9 @@ const CommandMenu = () => {const { isOpen, setIsOpen, actions, search, setSearch, pages, setPages, currentPage } =useCommandMenu()+ console.log('currentPage page', currentPage)+ console.log('pages page', pages)+const ThemeOptions = ({ isSubItem = false }) => {return (<CommandGroup>diff --git a/packages/ui/src/components/Command/sections/DashboardTableEditor.tsx b/packages/ui/src/components/Command/sections/DashboardTableEditor.tsxindex 8b4a6a6fb99..df63bc8ff39 100644--- a/packages/ui/src/components/Command/sections/DashboardTableEditor.tsx+++ b/packages/ui/src/components/Command/sections/DashboardTableEditor.tsx@@ -8,8 +8,6 @@ import { useCommandMenu } from '../CommandMenuProvider'export default function DashboardTableEditor() {const router = useRouter()const { setPages, currentPage, pages } = useCommandMenu()- console.log('currentPage', currentPage)- console.log('pages', pages)return (<CommandGroup heading={dashboardItems.tools.label}>@@ -27,11 +25,6 @@ export default function DashboardTableEditor() {{currentPage === 'projects' && (<>- <CommandItem type="link">- <CommandLabel>- <span className="font-bold"> projects sub item</span>- </CommandLabel>- </CommandItem><CommandItem type="link">Project B</CommandItem></>)}diff --git a/packages/ui/src/components/Command/utils/dashboard-nav-items.json b/packages/ui/src/components/Command/utils/dashboard-nav-items.jsonindex 3f85105ec7c..86b94adb9fb 100644--- a/packages/ui/src/components/Command/utils/dashboard-nav-items.json+++ b/packages/ui/src/components/Command/utils/dashboard-nav-items.json@@ -4,7 +4,18 @@"items": [{"label": "dashboard - Database",- "url": "https://supabase.com/docs/guides/database"+ "url": "https://supabase.com/docs/guides/database",+ "subItems": [+ {+ "label": "Triggers",+ "url": "http://www.example.com/triggers"+ },+ {+ "label": "Functions",+ "icon": "functions",+ "url": "http://www.example.com/functions"+ }+ ]},{"label": "dashboard - Auth",@@ -23,5 +34,42 @@"url": "https://supabase.com/docs/guides/storage"}]+ },+ "settings": {+ "label": "Dashboard Settings",+ "items": [+ {+ "label": "settings - Database general",+ "url": "https://supabase.com/docs/guides/database"+ },+ {+ "label": "settings - Database settings",+ "url": "https://supabase.com/docs/guides/auth/overview"+ },+ {+ "label": "settings - API settings",+ "url": "https://supabase.com/docs/guides/functions"+ },+ {+ "label": "settings - Auth settings",+ "url": "https://supabase.com/docs/guides/realtime"+ },+ {+ "label": "settings - Storage settings",+ "url": "https://supabase.com/docs/guides/storage"+ },+ {+ "label": "settings - subscription settings",+ "url": "https://supabase.com/docs/guides/storage"+ },+ {+ "label": "settings - usage settings",+ "url": "https://supabase.com/docs/guides/storage"+ },+ {+ "label": "settings - invoices settings",+ "url": "https://supabase.com/docs/guides/storage"+ }+ ]}}