Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: fix event names used to track notifications #25521

Merged
merged 12 commits into from
Jul 26, 2024

Conversation

matteoscurati
Copy link
Contributor

@matteoscurati matteoscurati commented Jun 26, 2024

Description

This PR modifies the names of some tracked events to monitor the use of notifications, ensuring they adhere to the conventions used.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@matteoscurati matteoscurati added the team-notifications Notifications team label Jun 26, 2024
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@matteoscurati matteoscurati marked this pull request as ready for review July 23, 2024 17:00
@matteoscurati matteoscurati requested review from a team as code owners July 23, 2024 17:00
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR updates event names and properties for tracking notifications to ensure consistency and adherence to conventions.

  • app/scripts/metamask-controller.js: Renamed PushNotificationClicked to NotificationClicked and added properties like notification_id, notification_is_read, and click_type.
  • shared/constants/metametrics.ts: Standardized MetaMetrics event names for better consistency.
  • ui/components/app/modals/turn-on-metamask-notifications/turn-on-metamask-notifications.tsx: Updated event names and added properties is_notifications_enabled and action_type.
  • ui/components/multichain/global-menu/global-menu.js: Renamed event names and properties for notification tracking.
  • ui/pages/notifications-settings/notifications-settings-allow-notifications.tsx: Replaced specific event names with NotificationsSettingsUpdated and added properties setting_type, old_value, and new_value.

12 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@legobeat legobeat changed the title refactor: ♻️ fix the event names used to track notifications refactor: fix event names used to track notifications Jul 23, 2024
mathieuartu
mathieuartu previously approved these changes Jul 26, 2024
@Prithpal-Sooriya Prithpal-Sooriya dismissed stale reviews from mathieuartu and themself via d7c77cd July 26, 2024 09:55
add the missing segment events for onboarding snapshots
@metamaskbot
Copy link
Collaborator

Builds ready [d7c77cd]
Page Load Metrics (227 ± 226 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint602971064924
domContentLoaded9105292311
load411763227471226
domInteractive9105292311
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 102 Bytes (0.00%)
  • ui: -771 Bytes (-0.01%)
  • common: -976 Bytes (-0.01%)

Copy link

codecov bot commented Jul 26, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 69.95%. Comparing base (b27dd2b) to head (d7c77cd).

Files Patch % Lines
...ation-detail-button/notification-detail-button.tsx 0.00% 1 Missing ⚠️
ui/pages/notifications/notifications-list-item.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25521      +/-   ##
===========================================
+ Coverage    69.94%   69.95%   +0.01%     
===========================================
  Files         1409     1409              
  Lines        49794    49779      -15     
  Branches     13773    13767       -6     
===========================================
- Hits         34826    34818       -8     
+ Misses       14968    14961       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@Prithpal-Sooriya Prithpal-Sooriya merged commit c7880bf into develop Jul 26, 2024
75 of 76 checks passed
@Prithpal-Sooriya Prithpal-Sooriya deleted the fix/change-notifications-event-names branch July 26, 2024 11:31
@github-actions github-actions bot locked and limited conversation to collaborators Jul 26, 2024
@metamaskbot metamaskbot added the release-12.4.0 Issue or pull request that will be included in release 12.4.0 label Jul 26, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [5a7ea8e]
Page Load Metrics (60 ± 7 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6111487136
domContentLoaded85324126
load409760147
domInteractive85324126
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 102 Bytes (0.00%)
  • ui: -771 Bytes (-0.01%)
  • common: -976 Bytes (-0.01%)

@Prithpal-Sooriya Prithpal-Sooriya added release-12.0.0 Issue or pull request that will be included in release 12.0.0 and removed release-12.0.0 Issue or pull request that will be included in release 12.0.0 labels Aug 1, 2024
@gauthierpetetin gauthierpetetin added release-12.3.0 Issue or pull request that will be included in release 12.3.0 and removed release-12.4.0 Issue or pull request that will be included in release 12.4.0 labels Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-notifications Notifications team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants