Skip to content

Commit 551d172

Browse files
authored
fix: add missing feature preview enabled event def (supabase#31234)
1 parent 1a4e024 commit 551d172

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

apps/studio/data/telemetry/send-event-mutation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import {
1313
CronJobHistoryClickedEvent,
1414
CronJobUpdateClickedEvent,
1515
CronJobUpdatedEvent,
16+
FeaturePreviewsClickedEvent,
17+
FeaturePreviewEnabledEvent,
18+
FeaturePreviewDisabledEvent,
1619
TelemetryActions,
1720
} from 'lib/constants/telemetry'
1821
import { useRouter } from 'next/router'
@@ -27,6 +30,9 @@ export type SendEventVariables =
2730
| CronJobUpdateClickedEvent
2831
| CronJobDeleteClickedEvent
2932
| CronJobHistoryClickedEvent
33+
| FeaturePreviewsClickedEvent
34+
| FeaturePreviewEnabledEvent
35+
| FeaturePreviewDisabledEvent
3036

3137
// TODO remove this once all events are documented
3238
| {

apps/studio/lib/constants/telemetry.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,24 @@ export interface FeaturePreviewsClickedEvent {
173173
action: TelemetryActions.FEATURE_PREVIEWS_CLICKED
174174
}
175175

176+
/**
177+
* A feature preview was enabled by the user through the FeaturePreviewModal.
178+
*
179+
* The FeaturePreviewModal can be opened clicking at the profile icon at the bottom left corner of the project sidebar.
180+
*
181+
* @group Events
182+
* @source studio
183+
*/
184+
export interface FeaturePreviewEnabledEvent {
185+
action: TelemetryActions.FEATURE_PREVIEW_ENABLED
186+
properties: {
187+
/**
188+
* Feature key of the preview that was enabled. e.g. supabase-ui-api-side-panel
189+
*/
190+
feature: string
191+
}
192+
}
193+
176194
/**
177195
* A feature preview was disabled by the user through the FeaturePreviewModal.
178196
*

0 commit comments

Comments
 (0)