Skip to content

Commit

Permalink
Merge pull request #87 from matrix-org/florianduros/tac-events
Browse files Browse the repository at this point in the history
Threads Activity Centre analytics
  • Loading branch information
florianduros authored Jan 25, 2024
2 parents cd6d1f5 + d60cbe1 commit 270280c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schemas/Interaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
{"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": "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." },
Expand Down
1 change: 1 addition & 0 deletions schemas/ViewRoom.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."},
Expand Down
12 changes: 12 additions & 0 deletions types/kotlin2/Interaction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
6 changes: 6 additions & 0 deletions types/kotlin2/ViewRoom.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
4 changes: 4 additions & 0 deletions types/swift/Interaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions types/swift/ViewRoom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 270280c

Please sign in to comment.