Compare commits

...

1 Commits

Author SHA1 Message Date
Trevor Hudson fe323d419a add missing fuction 2025-05-26 15:11:26 -07:00
2 changed files with 20 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
add back missing function
@@ -92,6 +92,8 @@ class TelemetryService {
MODEL_SELECTED: "ui.model_selected",
// Tracks when users use the "favorite" button in the model picker
MODEL_FAVORITE_TOGGLED: "ui.model_favorite_toggled",
// Tracks when a button is clicked
BUTTON_CLICKED: "ui.button_clicked",
},
}
@@ -687,6 +689,19 @@ class TelemetryService {
)
}
public captureButtonClick(button: string, taskId?: string, collect: boolean = false) {
this.capture(
{
event: TelemetryService.EVENTS.UI.BUTTON_CLICKED,
properties: {
button,
taskId,
},
},
collect,
)
}
/**
* Checks if telemetry is enabled
* @returns Boolean indicating whether telemetry is enabled