Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Improve PITR CTA

Joshen Limc4146be37c4a
diff --git a/studio/components/interfaces/Database/Backups/PITRBackupSelection/index.tsx b/studio/components/interfaces/Database/Backups/PITRBackupSelection/index.tsx
index b368a388983..d14864827ac 100644
--- a/studio/components/interfaces/Database/Backups/PITRBackupSelection/index.tsx
+++ b/studio/components/interfaces/Database/Backups/PITRBackupSelection/index.tsx
@@ -27,10 +27,22 @@ const PITRBackupSelection: FC<Props> = () => {
const { app, ui, backups } = useStore()
const isAvailable = useFlag('pitrBackups')
+ const projectId = ui.selectedProject?.id ?? -1
+ const projectRef = ui.selectedProject?.ref ?? 'default'
+
if (!isAvailable) {
return (
- <div className="flex items-center justify-center rounded border border-gray-500 bg-gray-300 py-8">
- <p className="text-scale-1000 text-sm">Coming soon</p>
+ <div className="block w-full rounded border border-gray-400 border-opacity-50 bg-gray-300 p-3">
+ <div className="flex space-x-3">
+ <IconInfo size={20} strokeWidth={1.5} />
+ <p className="text-scale-1100 text-sm">
+ Coming soon - Point in time backups is an Enterprise feature. Reach out to us{' '}
+ <Link href={`/support/new?ref=${projectRef}&category=sales`}>
+ <a className="text-brand-900">here</a>
+ </Link>{' '}
+ if you're interested!
+ </p>
+ </div>
</div>
)
}
@@ -43,8 +55,6 @@ const PITRBackupSelection: FC<Props> = () => {
const [recoveryPoint, setRecoveryPoint] = useState<string>()
const { configuration } = backups
- const projectId = ui.selectedProject?.id ?? -1
- const projectRef = ui.selectedProject?.ref ?? 'default'
if (backups.isLoading) {
return <Loading />
@@ -59,7 +69,6 @@ const PITRBackupSelection: FC<Props> = () => {
configuration.physicalBackupData.latestPhysicalBackupDateUnix
if (!configuration.walg_enabled) {
- // Using this check as opposed to checking price tier to allow enabling PITR for our own internal projects
return (
<div className="block w-full rounded border border-gray-400 border-opacity-50 bg-gray-300 p-3">
<div className="flex space-x-3">