The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: copy for project-based billing
Kevin Grünebergad2d2984d176
diff --git a/apps/www/pages/pricing/index.tsx b/apps/www/pages/pricing/index.tsxindex f98ab1a0260..209acbdf7af 100644--- a/apps/www/pages/pricing/index.tsx+++ b/apps/www/pages/pricing/index.tsx@@ -288,7 +288,7 @@ export default function IndexPage() {{plan.priceMonthly}</p><p className="text-scale-900 mb-1.5 ml-1 text-[13px] leading-4">- {plan.costUnit}+ {plan.costUnitOrg}</p></div>diff --git a/packages/shared-data/plans.ts b/packages/shared-data/plans.tsindex 2f1d9b29839..5e40e4b5c51 100644--- a/packages/shared-data/plans.ts+++ b/packages/shared-data/plans.ts@@ -8,6 +8,7 @@ export interface PricingInformation {priceLabel?: stringpriceMonthly: number | stringwarning?: string+ warningLegacy?: stringdescription: stringpreface: stringfeatures: string[]@@ -20,12 +21,13 @@ export const plans: PricingInformation[] = [id: 'tier_free',name: 'Free',nameBadge: '',- costUnit: '/ month / org',+ costUnit: '/ month / project',costUnitOrg: '/ month / org',href: 'https://supabase.com/dashboard/new?plan=free',priceLabel: '',priceMonthly: 0,warning: 'Limit of 2 free organizations',+ warningLegacy: 'Limit of 2 free projects',description: 'Perfect for passion projects & simple websites.',preface: 'Get started with:',features: [@@ -49,11 +51,12 @@ export const plans: PricingInformation[] = [id: 'tier_pro',name: 'Pro',nameBadge: '',- costUnit: '/ month / org',+ costUnit: '/ month / project',costUnitOrg: '/ month / org',href: 'https://supabase.com/dashboard/new?plan=pro',priceLabel: 'From',warning: 'Usage-based plan',+ warningLegacy: 'Usage-based plan',priceMonthly: 25,description: 'For production applications with the option to scale.',features: [@@ -78,11 +81,12 @@ export const plans: PricingInformation[] = [id: 'tier_team',name: 'Team',nameBadge: 'New',- costUnit: '/ month / org',+ costUnit: '/ month / project',costUnitOrg: '/ month / org',href: 'https://supabase.com/dashboard/new?plan=team',priceLabel: 'From',warning: 'Usage-based plan',+ warningLegacy: 'Usage-based plan',priceMonthly: 599,description: 'Collaborate with different permissions and access patterns.',features: [diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsxindex b2c2c5c914a..e6d158e2c9d 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx@@ -17,11 +17,12 @@ import Telemetry from 'lib/telemetry'import { useRouter } from 'next/router'import { plans as subscriptionsPlans } from 'shared-data/plans'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'-import { Alert, Button, IconCheck, IconExternalLink, Modal, SidePanel } from 'ui'+import { Alert, Button, IconCheck, IconExternalLink, IconInfo, Modal, SidePanel } from 'ui'import EnterpriseCard from './EnterpriseCard'import ExitSurveyModal from './ExitSurveyModal'import MembersExceedLimitModal from './MembersExceedLimitModal'import PaymentMethodSelection from './PaymentMethodSelection'+import InformationBox from 'components/ui/InformationBox'const TierUpdateSidePanel = () => {const { ui } = useStore()@@ -120,7 +121,7 @@ const TierUpdateSidePanel = () => {onCancel={() => onClose()}header={<div className="flex items-center justify-between">- <h4>Change subscription plan</h4>+ <h4>Change subscription plann</h4><Link href="https://supabase.com/pricing"><a target="_blank" rel="noreferrer"><Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>@@ -132,6 +133,48 @@ const TierUpdateSidePanel = () => {}><SidePanel.Content>+ <InformationBox+ icon={<IconInfo size="large" strokeWidth={1.5} />}+ defaultVisibility={true}+ hideCollapse+ title="Legacy Billing"+ className="mt-4"+ description={+ <div className="space-y-3">+ <p className="text-sm leading-normal">+ This organization uses the legacy project-based billing. We’ve recently made some+ big improvements to our billing system. To opt-in to the new organization-based+ billing, head over to your{' '}+ <Link href={`/org/${slug}/billing`}>+ <a>+ <span className="text-sm text-green-900 transition hover:text-green-1000">+ organization billing settings+ </span>+ </a>+ </Link>+ .+ </p>++ <div className="space-x-3">+ <Link href="https://supabase.com/blog/organization-based-billing">+ <a target="_blank" rel="noreferrer">+ <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>+ Announcement+ </Button>+ </a>+ </Link>+ <Link href="https://supabase.com/docs/guides/platform/org-based-billing">+ <a target="_blank" rel="noreferrer">+ <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>+ Documentation+ </Button>+ </a>+ </Link>+ </div>+ </div>+ }+ />+<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])@@ -179,9 +222,11 @@ const TierUpdateSidePanel = () => {)}<p className="text-scale-1000 text-sm">{tierMeta?.costUnit}</p></div>- <div className={clsx('flex mt-1 mb-4', !tierMeta?.warning && 'opacity-0')}>+ <div+ className={clsx('flex mt-1 mb-4', !tierMeta?.warningLegacy && 'opacity-0')}+ ><div className="bg-scale-200 text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-xs">- {tierMeta?.warning}+ {tierMeta?.warningLegacy}</div></div>{isCurrentPlan ? (