Skip to content

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

Added all side panel telemetry

Pamela Chiaba8895028766
diff --git a/studio/components/interfaces/BillingV2/Subscription/AddOns/CustomDomainSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/AddOns/CustomDomainSidePanel.tsx
index bab2e1459de..4d10efada65 100644
--- a/studio/components/interfaces/BillingV2/Subscription/AddOns/CustomDomainSidePanel.tsx
+++ b/studio/components/interfaces/BillingV2/Subscription/AddOns/CustomDomainSidePanel.tsx
@@ -10,9 +10,12 @@ import Link from 'next/link'
import { useEffect, useState } from 'react'
import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'
import { Alert, Button, IconExternalLink, Radio, SidePanel } from 'ui'
+import Telemetry from 'lib/telemetry'
+import { useRouter } from 'next/router'
const CustomDomainSidePanel = () => {
const { ui } = useStore()
+ const router = useRouter()
const { ref: projectRef } = useParams()
const [isSubmitting, setIsSubmitting] = useState<boolean>(false)
@@ -51,6 +54,17 @@ const CustomDomainSidePanel = () => {
} else {
setSelectedOption('cd_none')
}
+ Telemetry.sendActivity(
+ {
+ activity: 'Side Panel Viewed',
+ source: 'Dashboard',
+ data: {
+ title: 'Custom domains',
+ section: 'Add ons',
+ },
+ },
+ router
+ )
}
}, [visible, isLoading])
diff --git a/studio/components/interfaces/BillingV2/Subscription/AddOns/PITRSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/AddOns/PITRSidePanel.tsx
index 712570e02ac..b944e79cd6b 100644
--- a/studio/components/interfaces/BillingV2/Subscription/AddOns/PITRSidePanel.tsx
+++ b/studio/components/interfaces/BillingV2/Subscription/AddOns/PITRSidePanel.tsx
@@ -11,6 +11,8 @@ import Link from 'next/link'
import { useEffect, useState } from 'react'
import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'
import { Alert, Button, IconExternalLink, Radio, SidePanel } from 'ui'
+import Telemetry from 'lib/telemetry'
+import { useRouter } from 'next/router'
const PITR_CATEGORY_OPTIONS: {
id: 'off' | 'on'
@@ -34,6 +36,7 @@ const PITR_CATEGORY_OPTIONS: {
const PITRSidePanel = () => {
const { ui } = useStore()
+ const router = useRouter()
const { ref: projectRef } = useParams()
const { isDarkMode } = useTheme()
@@ -72,6 +75,17 @@ const PITRSidePanel = () => {
setSelectedCategory('off')
setSelectedOption('pitr_0')
}
+ Telemetry.sendActivity(
+ {
+ activity: 'Side Panel Viewed',
+ source: 'Dashboard',
+ data: {
+ title: 'Point in Time Recovery',
+ section: 'Add ons',
+ },
+ },
+ router
+ )
}
}, [visible, isLoading])
@@ -152,6 +166,18 @@ const PITRSidePanel = () => {
onClick={() => {
setSelectedCategory(option.id)
if (option.id === 'off') setSelectedOption('pitr_0')
+ Telemetry.sendActivity(
+ {
+ activity: 'Option Selected',
+ source: 'Dashboard',
+ data: {
+ title: 'Point in Time Recovery',
+ section: 'Add ons',
+ option: option.name,
+ },
+ },
+ router
+ )
}}
>
<img