From b12a4e3ba7ffa62c111203c85d1191c964a1d4cd Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 12 Apr 2024 14:14:50 +0100 Subject: [PATCH] Add interaction events for the activity toggles --- .../vector/app/features/analytics/plan/Interaction.kt | 11 +++++++++++ schemas/Interaction.json | 2 ++ types/swift/Interaction.swift | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt b/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt index 1562eca..31032eb 100644 --- a/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt +++ b/kotlin/lib/src/main/java/im/vector/app/features/analytics/plan/Interaction.kt @@ -401,6 +401,17 @@ data class Interaction( */ WebSettingsAppearanceTabThemeSelector, + /** + * User toggled the 'Notifications.showbold' in Element Web/Desktop. + */ + WebSettingsNotificationsShowBoldToggle, + + /** + * User toggled the 'Notifications.tac_only_notifications' in Element + * Web/Desktop. + */ + WebSettingsNotificationsTACOnlyNotificationsToggle, + /** * User interacted with the pre-built space checkboxes in the Sidebar * tab of Settings in Element Web/Desktop. diff --git a/schemas/Interaction.json b/schemas/Interaction.json index 1f01ece..4fe1720 100644 --- a/schemas/Interaction.json +++ b/schemas/Interaction.json @@ -11,6 +11,8 @@ "oneOf": [ {"const": "WebRoomListRoomTileContextMenuFavouriteToggle", "description": "User adjusted their favourites using the context menu on a room tile in the room list in Element Web/Desktop." }, {"const": "WebRoomHeaderContextMenuFavouriteToggle", "description": "User adjusted their favourites using the context menu on the header of a room in Element Web/Desktop." }, + {"const": "WebSettingsNotificationsShowBoldToggle", "description": "User toggled the 'Notifications.showbold' in Element Web/Desktop." }, + {"const": "WebSettingsNotificationsTACOnlyNotificationsToggle", "description": "User toggled the 'Notifications.tac_only_notifications' in Element Web/Desktop." }, {"const": "WebRoomListRoomTileNotificationsMenu", "description": "User accessed their room notification settings via the context menu on a room tile in the room list in Element Web/Desktop." }, {"const": "WebRoomHeaderContextMenuNotificationsItem", "description": "User accessed their room notification settings via the context menu on the header of a room in Element Web/Desktop." }, {"const": "WebRoomHeaderContextMenuPeopleItem", "description": "User accessed room member list using the context menu on the header of a room in Element Web/Desktop." }, diff --git a/types/swift/Interaction.swift b/types/swift/Interaction.swift index d10d2bc..a62efa8 100644 --- a/types/swift/Interaction.swift +++ b/types/swift/Interaction.swift @@ -164,6 +164,10 @@ extension AnalyticsEvent { case WebRoomTimelineThreadSummaryButton /// User interacted with the theme radio selector in the Appearance tab of Settings in Element Web/Desktop. case WebSettingsAppearanceTabThemeSelector + /// User toggled the 'Notifications.showbold' in Element Web/Desktop. + case WebSettingsNotificationsShowBoldToggle + /// User toggled the 'Notifications.tac_only_notifications' in Element Web/Desktop. + case WebSettingsNotificationsTACOnlyNotificationsToggle /// User interacted with the pre-built space checkboxes in the Sidebar tab of Settings in Element Web/Desktop. case WebSettingsSidebarTabSpacesCheckbox /// User clicked the explore rooms button in the context menu of a space in Element Web/Desktop.