Skip to content

Commit 817b9de

Browse files
feat(studio): adding log drains mention to plan features (supabase#40136)
* feat: add mention of log drains to team plan in plan selection Adds an additional feature row to the Team Plan to mention log drains can be added for another 60 dollars * feat: experiment with highlighing team plan * style: minor ring adjustment
1 parent 5108f45 commit 817b9de

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@ export const PlanUpdateSidePanel = () => {
183183
const features = plan.features
184184
const footer = plan.footer
185185

186+
const source = Array.isArray(router.query.source)
187+
? router.query.source[0]
188+
: router.query.source
189+
const shouldHighlight = source === 'log-drains-empty-state' && plan.id === 'tier_team'
190+
186191
if (plan.id === 'tier_enterprise') {
187192
return <EnterpriseCard key={plan.id} plan={plan} isCurrentPlan={isCurrentPlan} />
188193
}
@@ -192,7 +197,9 @@ export const PlanUpdateSidePanel = () => {
192197
key={plan.id}
193198
className={cn(
194199
'px-4 py-4 flex flex-col items-start justify-between',
195-
'border rounded-md col-span-12 md:col-span-4 bg-surface-200'
200+
'border rounded-md col-span-12 md:col-span-4 bg-surface-200',
201+
shouldHighlight &&
202+
'ring-4 ring-brand animate-[pulse_1.5s_ease-in-out_1] shadow-md shadow-brand/40'
196203
)}
197204
>
198205
<div className="w-full">

packages/shared-data/plans.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export const plans: PricingInformation[] = [
8585
'Priority email support & SLAs',
8686
'Daily backups stored for 14 days',
8787
'28-day log retention',
88+
['Add Log Drains', 'additional $60 per drain, per project'],
8889
],
8990
preface: 'Everything in the Pro Plan, plus:',
9091
cta: 'Get Started',

0 commit comments

Comments
 (0)