The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Small style fix
Joshen Lim9d91fea9be3a
diff --git a/studio/components/interfaces/Billing/ProUpgrade.tsx b/studio/components/interfaces/Billing/ProUpgrade.tsxindex 83a50ea215e..12fea2c0c3b 100644--- a/studio/components/interfaces/Billing/ProUpgrade.tsx+++ b/studio/components/interfaces/Billing/ProUpgrade.tsx@@ -43,7 +43,7 @@ const ProUpgrade: FC<Props> = ({}) => {const { app, ui } = useStore()const router = useRouter()- const showPitrAddons = useFlag('pitrSelfServe')+ const isPITRSelfServeEnabled = useFlag('pitrSelfServe')const { addons } = productsconst computeSizes = formatComputeSizes(addons)@@ -220,7 +220,7 @@ const ProUpgrade: FC<Props> = ({</div>{projectRegion !== 'af-south-1' && (<>- {showPitrAddons && pitrDurationOptions.length > 0 && (+ {isPITRSelfServeEnabled && pitrDurationOptions.length > 0 && (<><Divider light /><PITRDurationSelectiondiff --git a/studio/pages/org/[slug]/settings.tsx b/studio/pages/org/[slug]/settings.tsxindex fb8dd3855e1..bf3c8afaf25 100644--- a/studio/pages/org/[slug]/settings.tsx+++ b/studio/pages/org/[slug]/settings.tsx@@ -160,7 +160,7 @@ const OrganizationSettings: NextPageWithLayout = () => {<h1 className="text-3xl">{organization?.name || 'Organization'} settings</h1></section><nav className="">- <Tabs onChange={(id: string) => handleChangeTab(id)} type="underlined">+ <Tabs size="small" onChange={(id: string) => handleChangeTab(id)} type="underlined"><Tabs.Panel id="GENERAL" label="General" /><Tabs.Panel id="TEAM" label="Team" /><Tabs.Panel id="BILLING" label="Billing" />diff --git a/studio/pages/project/[ref]/database/backups/pitr.tsx b/studio/pages/project/[ref]/database/backups/pitr.tsxindex ce48ea01d64..c0e74fcb7c9 100644--- a/studio/pages/project/[ref]/database/backups/pitr.tsx+++ b/studio/pages/project/[ref]/database/backups/pitr.tsx@@ -1,17 +1,18 @@+import Link from 'next/link'import { useRouter } from 'next/router'import { observer } from 'mobx-react-lite'import { IconAlertCircle, Tabs } from 'ui'import { PermissionAction } from '@supabase/shared-types/out/constants'import { NextPageWithLayout } from 'types'-import { useStore, checkPermissions } from 'hooks'+import { useStore, checkPermissions, useFlag } from 'hooks'import { DatabaseLayout } from 'components/layouts'import Loading from 'components/ui/Loading'import NoPermission from 'components/ui/NoPermission'+import InformationBox from 'components/ui/InformationBox'+import UpgradeToPro from 'components/ui/UpgradeToPro'import { PITRNotice, PITRSelection } from 'components/interfaces/Database/Backups/PITR'import BackupsError from 'components/interfaces/Database/Backups/BackupsError'-import InformationBox from 'components/ui/InformationBox'-import Link from 'next/link'const DatabasePhysicalBackups: NextPageWithLayout = () => {const { ui } = useStore()@@ -24,6 +25,7 @@ const DatabasePhysicalBackups: NextPageWithLayout = () => {<Tabstype="underlined"+ size="small"activeId="pitr"onChange={(id: any) => {if (id === 'scheduled') router.push(`/project/${ref}/database/backups/scheduled`)@@ -51,13 +53,20 @@ const PITR = () => {const ref = ui.selectedProject?.ref ?? 'default'const isEnabled = configuration.walg_enabled+ const isPITRSelfServeEnabled = useFlag('pitrSelfServe')const canReadPhysicalBackups = checkPermissions(PermissionAction.READ, 'physical_backups')if (!canReadPhysicalBackups) return <NoPermission resourceText="view PITR backups" />if (isLoading) return <Loading />if (error) return <BackupsError />if (!isEnabled)- return (+ return isPITRSelfServeEnabled ? (+ <UpgradeToPro+ projectRef={ref}+ primaryText="Free Plan does not include point in time recovery."+ secondaryText="Please upgrade to the Pro plan to enable point in time recovery for your project."+ />+ ) : (<InformationBoxhideCollapsedefaultVisibility@@ -76,12 +85,6 @@ const PITR = () => {}icon={<IconAlertCircle size={18} strokeWidth={2} />}/>- // [Joshen] Once PITR is ready for self-serve- // <UpgradeToPro- // projectRef={ref}- // primaryText="Free Plan does not include point in time recovery."- // secondaryText="Please upgrade to the Pro plan to enable point in time recovery for your project."- // />)return (diff --git a/studio/pages/project/[ref]/database/backups/scheduled.tsx b/studio/pages/project/[ref]/database/backups/scheduled.tsxindex 2bb2950cfff..18cd5658a7b 100644--- a/studio/pages/project/[ref]/database/backups/scheduled.tsx+++ b/studio/pages/project/[ref]/database/backups/scheduled.tsx@@ -22,6 +22,7 @@ const DatabaseScheduledBackups: NextPageWithLayout = () => {<Tabstype="underlined"+ size="small"activeId="scheduled"onChange={(id: any) => {if (id === 'pitr') router.push(`/project/${ref}/database/backups/pitr`)diff --git a/studio/pages/project/[ref]/settings/database.tsx b/studio/pages/project/[ref]/settings/database.tsxindex ab1e47d5d3b..012c8b3c48d 100644--- a/studio/pages/project/[ref]/settings/database.tsx+++ b/studio/pages/project/[ref]/settings/database.tsx@@ -351,7 +351,7 @@ const GeneralSettings: FC<any> = ({ projectRef }) => {}><Panel.Content>- <Tabs type="underlined">+ <Tabs type="underlined" size="small">{/* @ts-ignore */}<Tabs.Panel id="psql" label="PSQL"><Input copy readOnly disabled value={psqlConnString} />