Bluesky app fork with some witchin' additions 💫

Add metrics for when OPs click "hide reply for me" or "hide reply for everyone" (#9206)

authored by

Alex Benzer and committed by
GitHub
6c7fd965 6a1c0ff3

+9
+7
src/components/PostControls/PostMenu/PostMenuItems.tsx
··· 258 258 259 259 const onHidePost = () => { 260 260 hidePost({uri: postUri}) 261 + logEvent('thread:click:hideReplyForMe', {}) 261 262 } 262 263 263 264 const hideInPWI = !!postAuthor.labels?.find( ··· 338 339 replyUri: postUri, 339 340 action, 340 341 }) 342 + 343 + // Log metric only when hiding (not when showing) 344 + if (isHide) { 345 + logEvent('thread:click:hideReplyForEveryone', {}) 346 + } 347 + 341 348 Toast.show( 342 349 isHide 343 350 ? _(msg`Reply was successfully hidden`)
+2
src/logger/metrics.ts
··· 481 481 'share:press:embed': {} 482 482 483 483 'thread:click:showOtherReplies': {} 484 + 'thread:click:hideReplyForMe': {} 485 + 'thread:click:hideReplyForEveryone': {} 484 486 'thread:preferences:load': { 485 487 [key: string]: any 486 488 }