Skip to content

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

feat(studio): adding log drains mention to plan features (#40136)

kemal.earth817b9deeaa72
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
index 5859e95f9aa..3ac62d2eab2 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
@@ -183,6 +183,11 @@ export const PlanUpdateSidePanel = () => {
const features = plan.features
const footer = plan.footer
+ const source = Array.isArray(router.query.source)
+ ? router.query.source[0]
+ : router.query.source
+ const shouldHighlight = source === 'log-drains-empty-state' && plan.id === 'tier_team'
+
if (plan.id === 'tier_enterprise') {
return <EnterpriseCard key={plan.id} plan={plan} isCurrentPlan={isCurrentPlan} />
}
@@ -192,7 +197,9 @@ export const PlanUpdateSidePanel = () => {
key={plan.id}
className={cn(
'px-4 py-4 flex flex-col items-start justify-between',
- 'border rounded-md col-span-12 md:col-span-4 bg-surface-200'
+ 'border rounded-md col-span-12 md:col-span-4 bg-surface-200',
+ shouldHighlight &&
+ 'ring-4 ring-brand animate-[pulse_1.5s_ease-in-out_1] shadow-md shadow-brand/40'
)}
>
<div className="w-full">
diff --git a/packages/shared-data/plans.ts b/packages/shared-data/plans.ts
index 475160225c5..0b906209837 100644
--- a/packages/shared-data/plans.ts
+++ b/packages/shared-data/plans.ts
@@ -85,6 +85,7 @@ export const plans: PricingInformation[] = [
'Priority email support & SLAs',
'Daily backups stored for 14 days',
'28-day log retention',
+ ['Add Log Drains', 'additional $60 per drain, per project'],
],
preface: 'Everything in the Pro Plan, plus:',
cta: 'Get Started',