The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Small improvements to custom domains ui
Joshen Limc6cb6e37223f
diff --git a/studio/components/interfaces/Billing/AddOns/AddOns.utils.ts b/studio/components/interfaces/Billing/AddOns/AddOns.utils.tsindex 4440c0a0f78..9b1a7bf7d68 100644--- a/studio/components/interfaces/Billing/AddOns/AddOns.utils.ts+++ b/studio/components/interfaces/Billing/AddOns/AddOns.utils.ts@@ -1,12 +1,17 @@import { DatabaseAddon } from './AddOns.types'-// e.g supabase-postgres-14.1.0.88 (There's 4 segments instead, so we can't use semver)export const getSemanticVersion = (version: string) => {if (!version) return 0- const segments = version.split('-')+ // e.g supabase-postgres-14.1.0.88+ // There's 4 segments instead so we can't use the semver package+ const segments = version.split('supabase-postgres-')const semver = segments[segments.length - 1]- return Number(semver.split('.').join(''))++ // e.g supabase-postgres-14.1.0.99-vault-rc1+ const formattedSemver = semver.split('-')[0]++ return Number(formattedSemver.split('.').join(''))}export const formatComputeSizes = (addons: DatabaseAddon[]) => {diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsxindex dde95501290..be80c2ac9d8 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx@@ -35,7 +35,7 @@ const CustomDomainConfig = () => {return (<section>- <FormHeader title="Custom Domains" description="" />+ <FormHeader title="Custom Domains" description="Present a branded experience to your users" />{data?.status === '0_no_hostname_configured' ? (<CustomDomainsConfigureHostname projectRef={ref} />) : (diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsxindex c8dee15035a..ab3a0664e3d 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx@@ -83,9 +83,29 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain: 'Please note that it may take up to 24 hours for the DNS records to propagate.'}description={- isNotVerifiedYet- ? 'Do check again in a bit as it may take up to 24 hours for changes in DNS records to propagate.'- : undefined+ isNotVerifiedYet ? (+ <div className="space-y-1">+ <p>+ Do check again in a bit as it may take up to 24 hours for changes in DNS+ records to propagate.+ </p>+ <p>+ You may also visit{' '}+ <Link href={`https://whatsmydns.net/#TXT/${customDomain.hostname}`}>+ <a className="text-brand-900">here</a>+ </Link>{' '}+ to check if your DNS has been propagated successfully before clicking verify.+ </p>+ </div>+ ) : (+ <p>+ You may also visit{' '}+ <Link href={`https://whatsmydns.net/#TXT/${customDomain.hostname}`}>+ <a className="text-brand-900">here</a>+ </Link>{' '}+ to check if your DNS has been propagated successfully before clicking verify.+ </p>+ )}/></div>diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsxindex a79ced1679c..5fa62056d20 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx@@ -88,7 +88,7 @@ const CustomDomainsConfigureHostname = ({ projectRef }: CustomDomainsConfigureHo</div>}>- <FormSection header={<FormSectionLabel>Add a Custom Domain</FormSectionLabel>}>+ <FormSection header={<FormSectionLabel>Add a custom domain</FormSectionLabel>}><FormSectionContent loading={false}><Inputid="domain"diff --git a/studio/components/ui/UpgradeToPro.tsx b/studio/components/ui/UpgradeToPro.tsxindex 0dd4d6e3b46..ca7b1b549b6 100644--- a/studio/components/ui/UpgradeToPro.tsx+++ b/studio/components/ui/UpgradeToPro.tsx@@ -26,7 +26,7 @@ const UpgradeToPro: FC<Props> = ({ icon, primaryText, projectRef, secondaryText><div className="flex space-x-3">{icon && <div className="mt-1">{icon}</div>}- <div className="flex w-full items-center justify-between">+ <div className="flex w-full items-center justify-between space-x-32"><div className="space-y-1"><p className="text-sm">{primaryText}</p><div>