The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add tracking on side panel open (#33349)
Pamela Chiaff25c9c24c9e
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsxindex e072a5a38d7..b807a52749c 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx@@ -126,6 +126,13 @@ const PlanUpdateSidePanel = () => {useEffect(() => {if (visible) {setSelectedTier(undefined)+ sendEvent({+ action: TelemetryActions.STUDIO_PRICING_SIDE_PANEL_OPENED,+ properties: {+ currentPlan: subscription?.plan?.name,+ },+ groups: { organization: slug ?? 'Unknown' },+ })}// eslint-disable-next-line react-hooks/exhaustive-deps}, [visible])diff --git a/packages/common/telemetry-constants.ts b/packages/common/telemetry-constants.tsindex 79465c0ba8b..9d416c71366 100644--- a/packages/common/telemetry-constants.ts+++ b/packages/common/telemetry-constants.ts@@ -70,6 +70,7 @@ export enum TelemetryActions {IMPORT_DATA_ADDED = 'import_data_added',SQL_EDITOR_QUERY_RUN_BUTTON_CLICKED = 'sql_editor_query_run_button_clicked',STUDIO_PRICING_PLAN_CTA_CLICKED = 'studio_pricing_plan_cta_clicked',+ STUDIO_PRICING_SIDE_PANEL_OPENED = 'studio_pricing_side_panel_opened',}/**@@ -1059,6 +1060,19 @@ export interface StudioPricingPlanCtaClickedEvent {groups: { organization: string }}+/**+ * User opened the pricing side panel in studio.+ *+ * @group Events+ * @source studio+ * @page /billing?panel=subscriptionPlan+ */+export interface StudioPricingSidePanelOpenedEvent {+ action: TelemetryActions.STUDIO_PRICING_SIDE_PANEL_OPENED+ properties: { currentPlan?: string }+ groups: { organization: string }+}+export type TelemetryEvent =| SignUpEvent| SignInEvent@@ -1119,3 +1133,4 @@ export type TelemetryEvent =| SendFeedbackButtonClickedEvent| SqlEditorQueryRunButtonClickedEvent| StudioPricingPlanCtaClickedEvent+ | StudioPricingSidePanelOpenedEvent