Skip to content

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

chore: Customize price plan info for partner Fly (#20642)

Thomas755461cdcabf
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
index 1f9179cc9ab..c84e942e78f 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
@@ -5,9 +5,12 @@ import { Button, IconCheck } from 'ui'
export interface EnterpriseCardProps {
plan: PricingInformation
isCurrentPlan: boolean
+ billingViaPartner: boolean
}
-const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {
+const EnterpriseCard = ({ plan, isCurrentPlan, billingViaPartner }: EnterpriseCardProps) => {
+ const features = billingViaPartner ? plan.featuresPartner : plan.features
+
return (
<div
key={plan.id}
@@ -44,7 +47,7 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {
role="list"
className="text-xs text-foreground-light md:grid md:grid-cols-2 md:gap-x-10"
>
- {plan.features.map((feature) => (
+ {features.map((feature) => (
<li key={feature} className="flex items-center py-2 first:mt-0">
<IconCheck className="text-brand h-4 w-4" aria-hidden="true" strokeWidth={3} />
<span className="text-foreground mb-0 ml-3 ">{feature}</span>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
index eac13c0f384..ca4838db36f 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
@@ -178,23 +178,32 @@ const PlanUpdateSidePanel = () => {
<div className="py-6 grid grid-cols-12 gap-3">
{subscriptionsPlans.map((plan) => {
const planMeta = availablePlans.find((p) => p.id === plan.id.split('tier_')[1])
- const tierMeta = subscriptionsPlans.find((it) => it.id === plan.id)
const price = planMeta?.price ?? 0
const isDowngradeOption = planMeta?.change_type === 'downgrade'
const isCurrentPlan = planMeta?.id === subscription?.plan?.id
+ const features = billingViaPartner ? plan.featuresPartner : plan.features
+ const warning =
+ billingViaPartner && plan.warningPartner
+ ? plan.warningPartner
+ : plan.warning ?? null
if (plan.id === 'tier_enterprise') {
- return <EnterpriseCard key={plan.id} plan={plan} isCurrentPlan={isCurrentPlan} />
+ return (
+ <EnterpriseCard
+ key={plan.id}
+ plan={plan}
+ isCurrentPlan={isCurrentPlan}
+ billingViaPartner={billingViaPartner}
+ />
+ )
}
return (
<div
key={plan.id}
- className={clsx(
- 'border rounded-md px-4 py-4 flex flex-col items-start justify-between',
- plan.id === 'tier_enterprise' ? 'col-span-12' : 'col-span-12 md:col-span-4',
- plan.id === 'tier_enterprise' ? 'bg-background' : 'bg-surface-200'
- )}
+ className={
+ 'border rounded-md px-4 py-4 flex flex-col items-start justify-between col-span-12 md:col-span-4 bg-surface-200'
+ }
>
<div className="w-full">
<div className="flex items-center space-x-2">
@@ -220,11 +229,11 @@ const PlanUpdateSidePanel = () => {
) : (
<p className="text-foreground text-lg">${price}</p>
)}
- <p className="text-foreground-light text-sm">{tierMeta?.costUnit}</p>
+ <p className="text-foreground-light text-sm">{plan.costUnit}</p>
</div>
- <div className={clsx('flex mt-1 mb-4', !tierMeta?.warning && 'opacity-0')}>
+ <div className={clsx('flex mt-1 mb-4', !warning && 'opacity-0')}>
<div className="bg-background text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-xs">
- {tierMeta?.warning}
+ {warning}
</div>
</div>
{isCurrentPlan ? (
@@ -287,7 +296,7 @@ const PlanUpdateSidePanel = () => {
<div className="border-t my-6" />
<ul role="list">
- {plan.features.map((feature) => (
+ {features.map((feature) => (
<li key={feature} className="flex py-2">
<div className="w-[12px]">
<IconCheck
diff --git a/packages/shared-data/plans.ts b/packages/shared-data/plans.ts
index 0d705064349..15149777529 100644
--- a/packages/shared-data/plans.ts
+++ b/packages/shared-data/plans.ts
@@ -7,9 +7,11 @@ export interface PricingInformation {
priceLabel?: string
priceMonthly: number | string
warning?: string
+ warningPartner?: string
description: string
preface: string
features: string[]
+ featuresPartner: string[]
footer?: string
cta: string
}
@@ -24,6 +26,7 @@ export const plans: PricingInformation[] = [
priceLabel: '',
priceMonthly: 0,
warning: 'Limit of 2 free organizations',
+ warningPartner: 'Limit of 1 free organization',
description: 'Perfect for passion projects & simple websites.',
preface: 'Get started with:',
features: [
@@ -40,6 +43,13 @@ export const plans: PricingInformation[] = [
'1-day log retention',
'Community support',
],
+ featuresPartner: [
+ 'Unlimited API requests',
+ 'Up to 500MB database space',
+ 'Up to 5GB bandwidth',
+ '1-day log retention',
+ 'Community support',
+ ],
footer: 'Free projects are paused after 1 week of inactivity.',
cta: 'Get Started',
},
@@ -67,6 +77,14 @@ export const plans: PricingInformation[] = [
'7-day log retention',
'Email support',
],
+ featuresPartner: [
+ 'No project pausing',
+ 'Daily backups stored for 7 days',
+ '8GB database space included',
+ '250GB bandwidth included',
+ '7-day log retention',
+ 'Email support',
+ ],
footer: 'Your cost control settings determine if you allow over-usage.',
preface: 'Everything in the Free plan, plus:',
cta: 'Get Started',
@@ -92,6 +110,16 @@ export const plans: PricingInformation[] = [
'Priority email support & SLAs',
'28-day log retention',
],
+ featuresPartner: [
+ 'Additional Organization member roles',
+ 'Daily backups stored for 14 days',
+ 'Standardised Security Questionnaire',
+ 'SOC2',
+ 'HIPAA available as paid add-on',
+ 'SSO for Supabase Dashboard',
+ 'Priority email support & SLAs',
+ '28-day log retention',
+ ],
footer: 'Additional fees apply for usage beyond included usage.',
preface: 'Everything in the Pro plan, plus:',
cta: 'Get Started',
@@ -108,6 +136,12 @@ export const plans: PricingInformation[] = [
'Custom Security Questionnaires',
`Private Slack channel`,
],
+ featuresPartner: [
+ `Designated Support manager & SLAs`,
+ `24×7×365 premium enterprise support`,
+ 'Custom Security Questionnaires',
+ `Private Slack channel`,
+ ],
priceLabel: '',
priceMonthly: 'Contact us',
preface: '',