about summary refs log tree commit diff
path: root/src/view/shell/desktop
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-12-27 16:21:17 -0600
committerGitHub <noreply@github.com>2024-12-27 14:21:17 -0800
commitc6d26a0a9c6606cccaee38adb535be257f19809d (patch)
treeec5669983ca34f5ce94ed6578dd405643cc6420a /src/view/shell/desktop
parent8b7a33181534b4bce1a74ba81e20db8195f1ae40 (diff)
downloadvoidsky-c6d26a0a9c6606cccaee38adb535be257f19809d.tar.zst
Some metrics (#7294)
* Add trending metrics

* Progress guide events

* Fix naming, improve existing events
Diffstat (limited to 'src/view/shell/desktop')
-rw-r--r--src/view/shell/desktop/SidebarTrendingTopics.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/view/shell/desktop/SidebarTrendingTopics.tsx b/src/view/shell/desktop/SidebarTrendingTopics.tsx
index ef8227d1c..a7b9a8391 100644
--- a/src/view/shell/desktop/SidebarTrendingTopics.tsx
+++ b/src/view/shell/desktop/SidebarTrendingTopics.tsx
@@ -79,7 +79,12 @@ function Inner() {
           ) : !trending?.topics ? null : (
             <>
               {trending.topics.slice(0, TRENDING_LIMIT).map(topic => (
-                <TrendingTopicLink key={topic.link} topic={topic}>
+                <TrendingTopicLink
+                  key={topic.link}
+                  topic={topic}
+                  onPress={() => {
+                    logEvent('trendingTopic:click', {context: 'sidebar'})
+                  }}>
                   {({hovered}) => (
                     <TrendingTopic
                       size="small"