From a3498b5c7629f60212f0e406d2860a8d06706fcc Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 24 Jan 2024 17:30:56 +0100 Subject: [PATCH 1/4] Add `WebRoomHeaderButtonsThreadsButton` interaction --- schemas/Interaction.json | 1 + 1 file changed, 1 insertion(+) diff --git a/schemas/Interaction.json b/schemas/Interaction.json index 0bf9ac2..3709635 100644 --- a/schemas/Interaction.json +++ b/schemas/Interaction.json @@ -54,6 +54,7 @@ {"const": "WebRoomHeaderButtonsThreadsButton", "description": "User clicked the Threads button in the top right of a room in Element Web/Desktop." }, {"const": "WebThreadViewBackButton", "description": "User clicked the back button on a Thread view going back to the Threads Panel of Element Web/Desktop." }, {"const": "WebThreadsPanelThreadItem", "description": "User selected a thread in the Threads panel in Element Web/Desktop." }, + {"const": "WebThreadsActivityCentreButton", "description": "User clicked on the Threads Activity Centre button of Element Web/Desktop." }, {"const": "WebRoomTimelineThreadSummaryButton", "description": "User clicked a thread summary in the timeline of a room in Element Web/Desktop." }, {"const": "WebUserOnboardingHeaderSendDm", "description": "User clicked on the send DM CTA in the header of the new user onboarding page in Element Web/Desktop." }, {"const": "WebUserOnboardingTaskSendDm", "description": "User clicked on the action of the find people task on the new user onboarding page in Element Web/Desktop." }, From 4820b3cd0b67907d6e0ff8186ee7adeac18dba16 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 24 Jan 2024 17:34:47 +0100 Subject: [PATCH 2/4] Add `WebThreadsActivityCentreRoomItem` to interaction --- schemas/Interaction.json | 1 + 1 file changed, 1 insertion(+) diff --git a/schemas/Interaction.json b/schemas/Interaction.json index 3709635..4e1bdd4 100644 --- a/schemas/Interaction.json +++ b/schemas/Interaction.json @@ -55,6 +55,7 @@ {"const": "WebThreadViewBackButton", "description": "User clicked the back button on a Thread view going back to the Threads Panel of Element Web/Desktop." }, {"const": "WebThreadsPanelThreadItem", "description": "User selected a thread in the Threads panel in Element Web/Desktop." }, {"const": "WebThreadsActivityCentreButton", "description": "User clicked on the Threads Activity Centre button of Element Web/Desktop." }, + {"const": "WebThreadsActivityCentreRoomItem", "description": "User clicked on a room in the Threads Activity Centre of Element Web/Desktop." }, {"const": "WebRoomTimelineThreadSummaryButton", "description": "User clicked a thread summary in the timeline of a room in Element Web/Desktop." }, {"const": "WebUserOnboardingHeaderSendDm", "description": "User clicked on the send DM CTA in the header of the new user onboarding page in Element Web/Desktop." }, {"const": "WebUserOnboardingTaskSendDm", "description": "User clicked on the action of the find people task on the new user onboarding page in Element Web/Desktop." }, From e66e14364d804c690068a586a57d4b76a4fadf8a Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 24 Jan 2024 17:40:33 +0100 Subject: [PATCH 3/4] Generate stubs --- types/kotlin2/Interaction.kt | 12 ++++++++++++ types/swift/Interaction.swift | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/types/kotlin2/Interaction.kt b/types/kotlin2/Interaction.kt index 1df1b35..19043d7 100644 --- a/types/kotlin2/Interaction.kt +++ b/types/kotlin2/Interaction.kt @@ -408,6 +408,18 @@ data class Interaction( */ WebThreadViewBackButton, + /** + * User clicked on the Threads Activity Centre button of Element + * Web/Desktop. + */ + WebThreadsActivityCentreButton, + + /** + * User clicked on a room in the Threads Activity Centre of Element + * Web/Desktop. + */ + WebThreadsActivityCentreRoomItem, + /** * User selected a thread in the Threads panel in Element Web/Desktop. */ diff --git a/types/swift/Interaction.swift b/types/swift/Interaction.swift index c18e72c..495c054 100644 --- a/types/swift/Interaction.swift +++ b/types/swift/Interaction.swift @@ -166,6 +166,10 @@ extension AnalyticsEvent { case WebSpaceHomeCreateRoomButton /// User clicked the back button on a Thread view going back to the Threads Panel of Element Web/Desktop. case WebThreadViewBackButton + /// User clicked on the Threads Activity Centre button of Element Web/Desktop. + case WebThreadsActivityCentreButton + /// User clicked on a room in the Threads Activity Centre of Element Web/Desktop. + case WebThreadsActivityCentreRoomItem /// User selected a thread in the Threads panel in Element Web/Desktop. case WebThreadsPanelThreadItem /// User clicked the theme toggle button in the user menu of Element Web/Desktop. From d60cbe1cb6330ab8af4a09c78b4c788a66f1f40e Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Thu, 25 Jan 2024 14:18:32 +0100 Subject: [PATCH 4/4] Add `WebThreadsActivityCentre` trigger for `ViewRoom` event --- schemas/ViewRoom.json | 1 + types/kotlin2/ViewRoom.kt | 6 ++++++ types/swift/ViewRoom.swift | 2 ++ 3 files changed, 9 insertions(+) diff --git a/schemas/ViewRoom.json b/schemas/ViewRoom.json index 1f34303..8782cff 100644 --- a/schemas/ViewRoom.json +++ b/schemas/ViewRoom.json @@ -37,6 +37,7 @@ {"const": "WebRoomListNotificationBadge", "description": "Room accessed via clicking on a notifications badge on a room list sublist in Element Web/Desktop."}, {"const": "WebSpacePanelNotificationBadge", "description": "Room accessed via clicking on the notifications badge on the currently selected space in Element Web/Desktop."}, {"const": "WebFloatingCallWindow", "description": "Room accessed via interacting with the floating call or Jitsi PIP in Element Web/Desktop."}, + {"const": "WebThreadsActivityCentre", "description": "Room accessed via interacting with the Threads Activity Centre in Element Web/Desktop."}, {"const": "MobileFileSearch", "description": "Room switched due to user interacting with a file search result."}, {"const": "MobileRoomSearch", "description": "Room switched due to user interacting with a room search result."}, diff --git a/types/kotlin2/ViewRoom.kt b/types/kotlin2/ViewRoom.kt index 3669790..93c166d 100644 --- a/types/kotlin2/ViewRoom.kt +++ b/types/kotlin2/ViewRoom.kt @@ -252,6 +252,12 @@ data class ViewRoom( */ WebSpacePanelNotificationBadge, + /** + * Room accessed via interacting with the Threads Activity Centre in + * Element Web/Desktop. + */ + WebThreadsActivityCentre, + /** * Room accessed via Element Web/Desktop's Unified Search modal. */ diff --git a/types/swift/ViewRoom.swift b/types/swift/ViewRoom.swift index 18f2c32..b5cced6 100644 --- a/types/swift/ViewRoom.swift +++ b/types/swift/ViewRoom.swift @@ -120,6 +120,8 @@ extension AnalyticsEvent { case WebSpaceContextSwitch /// Room accessed via clicking on the notifications badge on the currently selected space in Element Web/Desktop. case WebSpacePanelNotificationBadge + /// Room accessed via interacting with the Threads Activity Centre in Element Web/Desktop. + case WebThreadsActivityCentre /// Room accessed via Element Web/Desktop's Unified Search modal. case WebUnifiedSearch /// Room accessed via the Element Web/Desktop vertical breadcrumb hover menu.