The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix combo
Jonathan Summers-Muir056e5d628ae5
diff --git a/package-lock.json b/package-lock.jsonindex 22daacdc395..6ef3321773e 100644--- a/package-lock.json+++ b/package-lock.json@@ -17539,6 +17539,33 @@"node": "^14.17.0 || ^16.13.0 || >=18.0.0"}},+ "node_modules/cmdk-supabase": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/cmdk-supabase/-/cmdk-supabase-1.0.7.tgz",+ "integrity": "sha512-5Ts9dZTLSqNwCEFzps/dtNK6Q1baje1JuA+5qjEvtfkk+SGZG0S5D1uqxbAk7YQqF/ctGZHxe8O+0+vNPYMk2A==",+ "dependencies": {+ "@radix-ui/react-dialog": "^1.0.4",+ "@radix-ui/react-id": "^0.0.6",+ "@radix-ui/react-slot": "1.0.2",+ "command-score": "0.1.2",+ "use-sync-external-store": "^1.2.0"+ },+ "peerDependencies": {+ "react": "^17.0",+ "react-dom": "^17.0"+ }+ },+ "node_modules/cmdk-supabase/node_modules/@radix-ui/react-id": {+ "version": "0.0.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-0.0.6.tgz",+ "integrity": "sha512-PzmraF34fYggsYvTIZVJ5S68WMp3aKUN3HkSmGnz4zn9zpRjkAbbg7Xn3ueQI3FQsLWKgyUfnpsmWFDndpcqYg==",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0"+ }+ },"node_modules/co": {"version": "4.6.0","dev": true,@@ -39938,7 +39965,7 @@"autoprefixer": "^10.4.14","class-variance-authority": "^0.6.0","clsx": "^1.2.1",- "cmdk-supabase": "1.0.6",+ "cmdk-supabase": "^1.0.7","color": "^4.2.3","colorjs.io": "^0.4.3","common-tags": "^1.8.2",@@ -41048,22 +41075,6 @@"node": ">=6"}},- "packages/ui/node_modules/cmdk-supabase": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/cmdk-supabase/-/cmdk-supabase-1.0.6.tgz",- "integrity": "sha512-DPeenlnJBtSxx49gJzMbe3gmC/IYCJcE5AZbs/G82pjWtHwK/skzc6LkJqIjdt9JOSoLjsWk0gYFCQXUp3JGBQ==",- "dependencies": {- "@radix-ui/react-dialog": "^1.0.4",- "@radix-ui/react-id": "^0.0.6",- "@radix-ui/react-slot": "1.0.2",- "command-score": "0.1.2",- "use-sync-external-store": "^1.2.0"- },- "peerDependencies": {- "react": "^17.0",- "react-dom": "^17.0"- }- },"packages/ui/node_modules/convert-source-map": {"version": "2.0.0","resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex e0a036269a0..59f0f58500e 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -54,7 +54,7 @@"autoprefixer": "^10.4.14","class-variance-authority": "^0.6.0","clsx": "^1.2.1",- "cmdk-supabase": "1.0.6",+ "cmdk-supabase": "^1.0.7","color": "^4.2.3","colorjs.io": "^0.4.3","common-tags": "^1.8.2",diff --git a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/studio/components/layouts/AppLayout/OrganizationDropdown.tsxindex e33d171fe59..b58fbd62956 100644--- a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx+++ b/studio/components/layouts/AppLayout/OrganizationDropdown.tsx@@ -76,14 +76,7 @@ const OrganizationDropdown = () => {? `/org/${org.slug}/general`: `/org/${org.slug}`return (- <Link- passHref- href={href}- key={org.slug}- onClick={() => {- setOpen(false)- }}- >+ <Link passHref href={href} key={org.slug}><CommandItem_Shadcn_asChildvalue={org.name}@@ -103,20 +96,21 @@ const OrganizationDropdown = () => {})}</CommandGroup_Shadcn_><CommandGroup_Shadcn_ className="border-t">- <CommandItem_Shadcn_- className="cursor-pointer"- onSelect={(e) => {- setOpen(false)- router.push(orgCreationV2 ? `/new-with-subscription` : `/new`)- }}- >- <Link passHref href={orgCreationV2 ? `/new-with-subscription` : `/new`}>- <a className="flex items-center space-x-2 w-full">+ <Link passHref href={orgCreationV2 ? `/new-with-subscription` : `/new`}>+ <CommandItem_Shadcn_+ className="cursor-pointer flex items-center space-x-2 w-full"+ onSelect={(e) => {+ setOpen(false)+ router.push(orgCreationV2 ? `/new-with-subscription` : `/new`)+ }}+ asChild+ >+ <a><IconPlus size={14} strokeWidth={1.5} /><p>New organization</p></a>- </Link>- </CommandItem_Shadcn_>+ </CommandItem_Shadcn_>+ </Link></CommandGroup_Shadcn_></CommandList_Shadcn_></Command_Shadcn_>diff --git a/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/studio/components/layouts/AppLayout/ProjectDropdown.tsxindex e1bda5c145b..61fbfea55b9 100644--- a/studio/components/layouts/AppLayout/ProjectDropdown.tsx+++ b/studio/components/layouts/AppLayout/ProjectDropdown.tsx@@ -77,24 +77,24 @@ const ProjectLink = ({}return (- // <Link passHref href={href}>- <CommandItem_Shadcn_- asChild- key={project.ref}- value={project.name}- className="cursor-pointer w-full flex items-center justify-between"- onSelect={() => {- console.log('hello')- router.push(href)- setOpen(false)- }}- >- <a>- {project.name}- {project.ref === ref && <IconCheck />}- </a>- </CommandItem_Shadcn_>- // </Link>+ <Link passHref href={href}>+ <CommandItem_Shadcn_+ asChild+ key={project.ref}+ value={project.name}+ className="cursor-pointer w-full flex items-center justify-between"+ onSelect={() => {+ router.push(href)+ setOpen(false)+ }}+ onClick={() => setOpen(false)}+ >+ <a>+ {project.name}+ {project.ref === ref && <IconCheck />}+ </a>+ </CommandItem_Shadcn_>+ </Link>)}@@ -163,17 +163,17 @@ const ProjectDropdown = () => {<LinkpassHrefhref={`/new/${selectedOrganization?.slug}`}- // onClick={() => {- // setOpen(false)- // }}+ onClick={() => {+ setOpen(false)+ }}><CommandItem_Shadcn_asChildclassName="cursor-pointer flex items-center space-x-2 w-full"- // onSelect={() => {- // setOpen(false)- // router.push(`/new/${selectedOrganization?.slug}`)- // }}+ onSelect={() => {+ setOpen(false)+ router.push(`/new/${selectedOrganization?.slug}`)+ }}><a><IconPlus size={14} strokeWidth={1.5} />