From ba5c7a530c283a0add6a542300eb90fcbf7b581f Mon Sep 17 00:00:00 2001 From: NIkita Fedrunov Date: Thu, 10 Feb 2022 13:22:00 +0100 Subject: [PATCH] another sync with analytics repo --- .../features/analytics/plan/Interaction.kt | 48 +++++++++++++++++++ .../features/analytics/plan/SlashCommand.kt | 4 +- .../features/analytics/plan/UserProperties.kt | 5 ++ 3 files changed, 55 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt b/vector/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt index feffa6d5c6..7bdc7740e1 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt @@ -51,6 +51,18 @@ data class Interaction( */ SpacePanelSwitchSpace, + /** + * User clicked the create room button in the + context menu of the room + * list header in Element Web/Desktop. + */ + WebAddExistingToSpaceDialogCreateRoomButton, + + /** + * User clicked the create room button in the home page of Element + * Web/Desktop. + */ + WebHomeCreateRoomButton, + /** * User interacted with pin to sidebar checkboxes in the quick settings * menu of Element Web/Desktop. @@ -93,6 +105,12 @@ data class Interaction( */ WebRightPanelRoomUserInfoInviteButton, + /** + * User clicked the create room button in the room directory of Element + * Web/Desktop. + */ + WebRoomDirectoryCreateRoomButton, + /** * User adjusted their favourites using the context menu on the header * of a room in Element Web/Desktop. @@ -129,6 +147,12 @@ data class Interaction( */ WebRoomHeaderContextMenuSettingsItem, + /** + * User clicked the create room button in the + context menu of the room + * list header in Element Web/Desktop. + */ + WebRoomListHeaderPlusMenuCreateRoomItem, + /** * User adjusted their favourites using the context menu on a room tile * in the room list in Element Web/Desktop. @@ -159,12 +183,24 @@ data class Interaction( */ WebRoomListRoomTileNotificationsMenu, + /** + * User clicked the create room button in the + context menu of the + * rooms sublist in Element Web/Desktop. + */ + WebRoomListRoomsSublistPlusMenuCreateRoomItem, + /** * User interacted with leave action in the general tab of the room * settings dialog in Element Web/Desktop. */ WebRoomSettingsLeaveButton, + /** + * User interacted with the prompt to create a new room when adjusting + * security settings in an existing room in Element Web/Desktop. + */ + WebRoomSettingsSecurityTabCreateNewRoomButton, + /** * User interacted with the theme radio selector in the Appearance tab * of Settings in Element Web/Desktop. @@ -177,6 +213,18 @@ data class Interaction( */ WebSettingsSidebarTabSpacesCheckbox, + /** + * User clicked the create room button in the + context menu of the room + * list header in Element Web/Desktop. + */ + WebSpaceContextMenuNewRoomItem, + + /** + * User clicked the create room button in the + context menu of the room + * list header in Element Web/Desktop. + */ + WebSpaceHomeCreateRoomButton, + /** * User clicked the theme toggle button in the user menu of Element * Web/Desktop. diff --git a/vector/src/main/java/im/vector/app/features/analytics/plan/SlashCommand.kt b/vector/src/main/java/im/vector/app/features/analytics/plan/SlashCommand.kt index 69c34bbc15..33d3545487 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/plan/SlashCommand.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/plan/SlashCommand.kt @@ -32,8 +32,8 @@ data class SlashCommand( ) : VectorAnalyticsEvent { enum class Command { - invite, - part, + Invite, + Part, } override fun getName() = "SlashCommand" diff --git a/vector/src/main/java/im/vector/app/features/analytics/plan/UserProperties.kt b/vector/src/main/java/im/vector/app/features/analytics/plan/UserProperties.kt index bbe2c48fec..dea499edde 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/plan/UserProperties.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/plan/UserProperties.kt @@ -48,6 +48,10 @@ data class UserProperties( * The selected messaging use case during the onboarding flow. */ val ftueUseCaseSelection: FtueUseCaseSelection? = null, + /** + * Number of joined rooms the user has favourited + */ + val numFavouriteRooms: Int? = null, /** * Number of spaces (and sub-spaces) the user is joined to */ @@ -84,6 +88,7 @@ data class UserProperties( WebMetaSpaceOrphansEnabled?.let { put("WebMetaSpaceOrphansEnabled", it) } WebMetaSpacePeopleEnabled?.let { put("WebMetaSpacePeopleEnabled", it) } ftueUseCaseSelection?.let { put("ftueUseCaseSelection", it.name) } + numFavouriteRooms?.let { put("numFavouriteRooms", it) } numSpaces?.let { put("numSpaces", it) } }.takeIf { it.isNotEmpty() } }