Skip to content

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

Fix pro plan side panel telemetry

Pamela Chia509a91eb10b8
diff --git a/studio/components/interfaces/BillingV2/Subscription/AddOns/CustomDomainSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/AddOns/CustomDomainSidePanel.tsx
index 4d10efada65..46c5be4a06f 100644
--- a/studio/components/interfaces/BillingV2/Subscription/AddOns/CustomDomainSidePanel.tsx
+++ b/studio/components/interfaces/BillingV2/Subscription/AddOns/CustomDomainSidePanel.tsx
@@ -142,7 +142,21 @@ const CustomDomainSidePanel = () => {
type="large-cards"
size="tiny"
id="custom-domain"
- onChange={(event: any) => setSelectedOption(event.target.value)}
+ onChange={(event: any) => {
+ setSelectedOption(event.target.value)
+ Telemetry.sendActivity(
+ {
+ activity: 'Option Selected',
+ source: 'Dashboard',
+ data: {
+ title: 'Custom domains',
+ section: 'Add ons',
+ option: event.target.label,
+ },
+ },
+ router
+ )
+ }}
>
<Radio
name="custom-domain"
diff --git a/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx
index 952fb29bb8e..3a8bb65b1e2 100644
--- a/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx
+++ b/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx
@@ -220,7 +220,21 @@ const SpendCapSidePanel = () => {
<div
key={option.value}
className={clsx('col-span-4 group space-y-1', isFreePlan && 'opacity-75')}
- onClick={() => !isFreePlan && setSelectedOption(option.value)}
+ onClick={() => {
+ !isFreePlan && setSelectedOption(option.value)
+ Telemetry.sendActivity(
+ {
+ activity: 'Option Selected',
+ source: 'Dashboard',
+ data: {
+ title: 'Spend cap',
+ section: 'Cost Control',
+ option: option.name,
+ },
+ },
+ router
+ )
+ }}
>
<img
alt="Spend Cap"