From 354562b5cabf2b9aec6cbb12e3a614490b3cc6e8 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 19 Feb 2024 12:38:38 +0200 Subject: [PATCH] Add interaction events for favouriting rooms from the room list and room detail screens --- schemas/Interaction.json | 4 +++- types/kotlin2/Interaction.kt | 11 +++++++++++ types/swift/Interaction.swift | 4 ++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/schemas/Interaction.json b/schemas/Interaction.json index e309d8b..969d81a 100644 --- a/schemas/Interaction.json +++ b/schemas/Interaction.json @@ -70,6 +70,7 @@ {"const": "SpacePanelSwitchSubSpace", "description": "User tapped an unselected sub space from the space list -> space switching should occur."}, {"const": "MobileRoomLeave", "description": "User tapped on Leave Room button on Room Details screen."}, {"const": "MobileRoomAddHome", "description": "User tapped on Add to Home button on Room Details screen."}, + {"const": "MobileRoomFavouriteToggle", "description": "User switched the favourite toggle on Room Details screen."}, {"const": "MobileRoomThreadListButton", "description": "User tapped on Threads button on Room screen."}, {"const": "MobileRoomThreadSummaryItem", "description": "User tapped on a thread summary item on Room screen."}, {"const": "MobileThreadListThreadItem", "description": "User selected a thread on ThreadList screen."}, @@ -83,7 +84,8 @@ {"const": "MobileAllChatsFilterUnreads", "description": "User tapped the Unreads filter in the All Chats filter tab."}, {"const": "MobileAllChatsFilterPeople", "description": "User tapped the People filter in the All Chats filter tab."}, {"const": "MobileSpaceCreationValidated", "description": "User validated the creation of a new space."}, - {"const": "MobileRoomListRoomContextMenuUnreadToggle", "description": "User adjusted their unread rooms using the context menu on a room in the room list."} + {"const": "MobileRoomListRoomContextMenuUnreadToggle", "description": "User adjusted their unread rooms using the context menu on a room in the room list."}, + {"const": "MobileRoomListRoomContextMenuFavouriteToggle", "description": "User adjusted their favourite rooms using the context menu on a room in the room list."} ] }, "index": { diff --git a/types/kotlin2/Interaction.kt b/types/kotlin2/Interaction.kt index 6f45861..c744800 100644 --- a/types/kotlin2/Interaction.kt +++ b/types/kotlin2/Interaction.kt @@ -85,11 +85,22 @@ data class Interaction( */ MobileRoomAddHome, + /** + * User switched the favourite toggle on Room Details screen. + */ + MobileRoomFavouriteToggle, + /** * User tapped on Leave Room button on Room Details screen. */ MobileRoomLeave, + /** + * User adjusted their favourite rooms using the context menu on a room + * in the room list. + */ + MobileRoomListRoomContextMenuFavouriteToggle, + /** * User adjusted their unread rooms using the context menu on a room in * the room list. diff --git a/types/swift/Interaction.swift b/types/swift/Interaction.swift index cc75ef6..66e1590 100644 --- a/types/swift/Interaction.swift +++ b/types/swift/Interaction.swift @@ -56,8 +56,12 @@ extension AnalyticsEvent { case MobileAllChatsRecentsEnabled /// User tapped on Add to Home button on Room Details screen. case MobileRoomAddHome + /// User switched the favourite toggle on Room Details screen. + case MobileRoomFavouriteToggle /// User tapped on Leave Room button on Room Details screen. case MobileRoomLeave + /// User adjusted their favourite rooms using the context menu on a room in the room list. + case MobileRoomListRoomContextMenuFavouriteToggle /// User adjusted their unread rooms using the context menu on a room in the room list. case MobileRoomListRoomContextMenuUnreadToggle /// User tapped on Threads button on Room screen.