The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Replace branching waitlist CTA with support CTA (#20472)
Joshen Limf482c67ef18e
diff --git a/apps/studio/components/interfaces/BranchManagement/EmptyStates.tsx b/apps/studio/components/interfaces/BranchManagement/EmptyStates.tsxindex 2ca5870cd6a..568335475b0 100644--- a/apps/studio/components/interfaces/BranchManagement/EmptyStates.tsx+++ b/apps/studio/components/interfaces/BranchManagement/EmptyStates.tsx@@ -18,7 +18,7 @@ export const BranchingEmptyState = () => {<p className="text-sm text-light">{hasAccessToBranching? 'Create preview branches to experiment changes to your database schema in a safe, non-destructible environment.'- : "Register for early access and you'll be contacted by email when your organization is enrolled in database branching."}+ : "Database Branching is currently in early access and not available to projects yet. If you're interested, you may reach out to us via support."}</p>{hasAccessToBranching ? (<div className="!mt-4">@@ -33,14 +33,22 @@ export const BranchingEmptyState = () => {<div className="flex items-center space-x-2 !mt-4"><Button asChild><Link- passHrefrel="noreferrer"target="_blank"- href="https://forms.supabase.com/branching-request"+ href={`/support/new?category=sales&slug=${selectedOrg?.slug}&subject=Enquiry%20on%20database%20branching`}>- Join waitlist+ Contact support</Link></Button>+ <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />} asChild>+ <a+ target="_blank"+ rel="noreferrer"+ href="https://supabase.com/docs/guides/platform/branching"+ >+ View the docs+ </a>+ </Button></div>)}</ProductEmptyState>diff --git a/apps/studio/components/interfaces/Support/SupportForm.tsx b/apps/studio/components/interfaces/Support/SupportForm.tsxindex 2ea1c99a524..5a851f1d66a 100644--- a/apps/studio/components/interfaces/Support/SupportForm.tsx+++ b/apps/studio/components/interfaces/Support/SupportForm.tsx@@ -46,7 +46,7 @@ export interface SupportFormProps {const SupportForm = ({ setSentCategory }: SupportFormProps) => {const { ui } = useStore()const { isReady } = useRouter()- const { ref, subject, category, message } = useParams()+ const { ref, slug, subject, category, message } = useParams()const uploadButtonRef = useRef()const enableFreeSupport = useFlag('enableFreeSupport')@@ -90,6 +90,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {const projects = [...(allProjects ?? []), ...projectDefaults]const selectedProjectFromUrl = projects.find((project) => project.ref === ref)+ const selectedOrganizationFromUrl = organizations?.find((org) => org.slug === slug)const selectedCategoryFromUrl = CATEGORY_OPTIONS.find((option) => {if (option.value.toLowerCase() === ((category as string) ?? '').toLowerCase()) return option})@@ -103,7 +104,9 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {)const selectedOrganizationSlug =- selectedProjectRef !== 'no-project'+ selectedOrganizationFromUrl !== undefined+ ? selectedOrganizationFromUrl.slug+ : selectedProjectRef !== 'no-project'? organizations?.find((org) => {const project = projects.find((project) => project.ref === selectedProjectRef)return org.id === project?.organization_id@@ -347,6 +350,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {key={`option-${option.ref}`}label={option.name || ''}value={option.ref}+ className="!w-72"><span>{option.name}</span><span className="block text-xs opacity-50">{organization?.name}</span>@@ -362,6 +366,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {key={`option-${option.value}`}label={option.label}value={option.value}+ className="!w-72"><span>{option.label}</span><span className="block text-xs opacity-50">{option.description}</span>diff --git a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitlistPopover.tsx b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitlistPopover.tsxindex cbd7c189dee..f64d9134075 100644--- a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitlistPopover.tsx+++ b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingWaitlistPopover.tsx@@ -1,3 +1,4 @@+import { useSelectedOrganization } from 'hooks'import Link from 'next/link'import { useState } from 'react'import {@@ -16,6 +17,7 @@ interface BranchingWaitlistPopoverProps {const BranchingWaitlistPopover = ({ isNewNav = false }: BranchingWaitlistPopoverProps) => {const [open, setOpen] = useState(false)+ const org = useSelectedOrganization()return (<Popover_Shadcn_ open={open} onOpenChange={setOpen} modal={false}>@@ -33,27 +35,27 @@ const BranchingWaitlistPopover = ({ isNewNav = false }: BranchingWaitlistPopover<p>Database Branching</p></div><p className="text-xs text-foreground-light">- Register for early access and you'll be contacted by email when your organization is- enrolled in database branching.+ Database Branching is currently in early access and not available to projects yet. If+ you're interested, you may reach out to us via support.</p><div className="flex items-center gap-2"><Button asChild><Link- href="https://forms.supabase.com/branching-request"+ href={`/support/new?category=sales&slug=${org?.slug}&subject=Enquiry%20on%20database%20branching`}rel="noreferrer"target="_blank">- Join waitlist+ Contact support</Link></Button>- <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>- <Link+ <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />} asChild>+ <atarget="_blank"rel="noreferrer"href="https://supabase.com/docs/guides/platform/branching">View the docs- </Link>+ </a></Button></div></PopoverContent_Shadcn_>