Skip to content

Commit

Permalink
Add interaction events for favouriting rooms from the room list and r…
Browse files Browse the repository at this point in the history
…oom detail screens
  • Loading branch information
stefanceriu committed Feb 19, 2024
1 parent ad2b2d2 commit 354562b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schemas/Interaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."},
Expand All @@ -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": {
Expand Down
11 changes: 11 additions & 0 deletions types/kotlin2/Interaction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions types/swift/Interaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 354562b

Please sign in to comment.