Skip to content

Commit 7bfc00b

Browse files
authored
add missing fuction (RooCodeInc#3834)
1 parent a346f05 commit 7bfc00b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.changeset/dull-chefs-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
add back missing function

src/services/posthog/telemetry/TelemetryService.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ class TelemetryService {
9292
MODEL_SELECTED: "ui.model_selected",
9393
// Tracks when users use the "favorite" button in the model picker
9494
MODEL_FAVORITE_TOGGLED: "ui.model_favorite_toggled",
95+
// Tracks when a button is clicked
96+
BUTTON_CLICKED: "ui.button_clicked",
9597
},
9698
}
9799

@@ -687,6 +689,19 @@ class TelemetryService {
687689
)
688690
}
689691

692+
public captureButtonClick(button: string, taskId?: string, collect: boolean = false) {
693+
this.capture(
694+
{
695+
event: TelemetryService.EVENTS.UI.BUTTON_CLICKED,
696+
properties: {
697+
button,
698+
taskId,
699+
},
700+
},
701+
collect,
702+
)
703+
}
704+
690705
/**
691706
* Checks if telemetry is enabled
692707
* @returns Boolean indicating whether telemetry is enabled

0 commit comments

Comments
 (0)