Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add analytics for the ViewRoom action #7666

Merged
merged 6 commits into from
Feb 10, 2022
Merged

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jan 28, 2022

Requires matrix-org/matrix-analytics-events#18
Part of element-hq/element-web#20613


This change is marked as an internal change (Task), so will not be included in the changelog.

Preview: https://pr7666--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

… t3chguy/analytics/view-room

� Conflicts:
�	src/SlashCommands.tsx
�	src/components/structures/MatrixChat.tsx
�	src/components/structures/RoomView.tsx
�	src/components/views/context_menus/RoomContextMenu.tsx
�	src/components/views/context_menus/SpaceContextMenu.tsx
�	src/components/views/dialogs/InviteDialog.tsx
�	src/components/views/dialogs/SpotlightDialog.tsx
�	src/components/views/right_panel/TimelineCard.tsx
�	src/components/views/right_panel/UserInfo.tsx
�	src/components/views/rooms/MessageComposer.tsx
�	src/components/views/rooms/RecentlyViewedButton.tsx
�	src/components/views/rooms/RoomBreadcrumbs.tsx
�	src/components/views/rooms/RoomSublist.tsx
�	src/components/views/rooms/RoomTile.tsx
�	src/stores/spaces/SpaceStore.ts
@t3chguy t3chguy added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Feb 10, 2022
@t3chguy t3chguy marked this pull request as ready for review February 10, 2022 09:41
@t3chguy t3chguy requested a review from a team as a code owner February 10, 2022 09:41
… t3chguy/analytics/view-room

� Conflicts:
�	src/components/structures/RoomDirectory.tsx
�	src/components/structures/SpaceRoomView.tsx
�	src/components/views/context_menus/SpaceContextMenu.tsx
�	src/components/views/rooms/RoomList.tsx
�	src/components/views/rooms/RoomListHeader.tsx
Copy link
Contributor

@kerryarchibald kerryarchibald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good apart from type issues.

src/components/views/messages/DateSeparator.tsx Outdated Show resolved Hide resolved
deferred_action?: ActionPayload; // Action to fire after MatrixChat handles this ViewRoom action

// additional parameters for the purpose of metrics & instrumentation
_trigger: ViewRoomEvent["trigger"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be optional? It's often set to undefined.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its non-optional so that every call-site takes care to specify it, even if that specified value is undefined, just to prevent a call site forgetting to specify it

@t3chguy t3chguy merged commit 0d6ef76 into develop Feb 10, 2022
@t3chguy t3chguy deleted the t3chguy/analytics/view-room branch February 10, 2022 14:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants