another sync with analytics repo

This commit is contained in:
NIkita Fedrunov 2022-02-10 13:22:00 +01:00
parent 761b8031f6
commit ba5c7a530c
3 changed files with 55 additions and 2 deletions

View File

@ -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.

View File

@ -32,8 +32,8 @@ data class SlashCommand(
) : VectorAnalyticsEvent {
enum class Command {
invite,
part,
Invite,
Part,
}
override fun getName() = "SlashCommand"

View File

@ -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() }
}