The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add shared items with actual dashboard items
Terry Sutton063c999c4bf6
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsxindex 7692fe9a3d3..e4ca4a21f44 100644--- a/packages/ui/src/components/Command/CommandMenu.tsx+++ b/packages/ui/src/components/Command/CommandMenu.tsx@@ -15,6 +15,7 @@ import { IconUser } from './../Icon/icons/IconUser'import AiCommand from './AiCommand'import navItems from './utils/docs-nav-items.json'+import sharedItems from './utils/shared-nav-items.json'import { AiIcon } from './Command.icons'import {CommandDialog,@@ -64,6 +65,8 @@ const SearchOnlyItem = ({ children, isSubItem, ...props }: any) => {return <CommandItem {...props}>{children}</CommandItem>}+const projectRef = ''+const CommandMenu = () => {const router = useRouter()const commandInputRef = useRef<ElementRef<typeof CommandInput>>(null)@@ -199,7 +202,22 @@ const CommandMenu = () => {))}</CommandGroup>- <DashboardTableEditor />+ <CommandGroup heading="Actual Dashboard Items">+ {sharedItems.sharedTools.map((item) => {+ const itemUrl = projectRef ? item.url.replace('_', projectRef) : item.url++ return (+ <CommandItem key={item.url} type="link" onSelect={() => router.push(itemUrl)}>+ <IconArrowRight className="text-scale-900" />+ <CommandLabel>+ Dashboard: <span className="font-bold"> {item.label}</span>+ </CommandLabel>+ </CommandItem>+ )+ })}+ </CommandGroup>++ {/* <DashboardTableEditor /> */}<CommandGroup heading="Support">{navItems.docsSupport.map((item) => (diff --git a/packages/ui/src/components/Command/utils/shared-nav-items.json b/packages/ui/src/components/Command/utils/shared-nav-items.jsonnew file mode 100644index 00000000000..aa2abb16c52--- /dev/null+++ b/packages/ui/src/components/Command/utils/shared-nav-items.json@@ -0,0 +1,28 @@+{+ "sharedTools": [+ {+ "label": "Table Editor",+ "url": "https://app.supabase.com/project/_/editor"+ },+ {+ "label": "SQL Editor",+ "url": "https://app.supabase.com/project/_/sql"+ },+ {+ "label": "Database",+ "url": "https://app.supabase.com/project/_/database/tables"+ },+ {+ "label": "Auth",+ "url": "https://app.supabase.com/project/_/auth/users"+ },+ {+ "label": "Storage",+ "url": "https://app.supabase.com/project/_/storage"+ },+ {+ "label": "Project Settings",+ "url": "https://app.supabase.com/project/_/settings/general"+ }+ ]+}