about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-20 15:26:05 -0700
committerGitHub <noreply@github.com>2024-05-20 15:26:05 -0700
commit516eb69637d4d71cb25397376f9e1e5d3680f314 (patch)
tree375081d63277d961f5bfdace7a6c7bfefeabdebe /src/lib
parent22522090c23df68251bdb37842323ffa1f7ea06d (diff)
downloadvoidsky-516eb69637d4d71cb25397376f9e1e5d3680f314.tar.zst
[🐴] Add new chat metrics (#4130)
* remove a comment

* add types for event, add log to profile button

* add `chat:open`

* add to chat list items

* fix types

* oops

* oops 2.0
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/statsig/events.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/statsig/events.ts b/src/lib/statsig/events.ts
index 660a37d2a..fe4c9e65a 100644
--- a/src/lib/statsig/events.ts
+++ b/src/lib/statsig/events.ts
@@ -125,6 +125,13 @@ export type LogEvents = {
       | 'ProfileHeaderSuggestedFollows'
       | 'ProfileMenu'
       | 'ProfileHoverCard'
+      | 'Chat'
+  }
+  'chat:create': {
+    logContext: 'ProfileHeader' | 'NewChatDialog'
+  }
+  'chat:open': {
+    logContext: 'ProfileHeader' | 'NewChatDialog' | 'ChatsList'
   }
 
   'test:all:always': {}