Skip to content

feat(notifications): use shared libraries NotificationServicesController#26480

Merged
Prithpal-Sooriya merged 21 commits intodevelopfrom
notify_840-use-notification-services-controller
Aug 19, 2024
Merged

feat(notifications): use shared libraries NotificationServicesController#26480
Prithpal-Sooriya merged 21 commits intodevelopfrom
notify_840-use-notification-services-controller

Conversation

@Prithpal-Sooriya
Copy link
Copy Markdown
Contributor

@Prithpal-Sooriya Prithpal-Sooriya commented Aug 16, 2024

Description

This removes our old MetaMaskNotificationsController and uses our shared NotificationServicesController. This controller is identical to the old one, but replacing it so we have shared controllers for Mobile and Extension.

Open in GitHub Codespaces

Related issues

Fixes: N/A

Manual testing steps

Test Notifications flows

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.

@github-actions
Copy link
Copy Markdown
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.

@sentry
Copy link
Copy Markdown

sentry bot commented Aug 16, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: app/scripts/background.js

Function Unhandled Issue
setupController TypeError: t.has is not a function _checkPrivateR...
Event Count: 1 Affected Users: 0
setupController SyntaxError: Invalid or unexpected token setupCon...
Event Count: 1 Affected Users: 0
setupController TypeError: Cannot read properties of undefined (reading 'getVersion') new MetamaskController(app/scripts/me...
Event Count: 1 Affected Users: 0

Did you find this useful? React with a 👍 or 👎

@Prithpal-Sooriya Prithpal-Sooriya added the team-notifications-deprecated DEPRECATED: please use "team-assets" instead label Aug 16, 2024
@Prithpal-Sooriya Prithpal-Sooriya changed the title refactor (notifications): use shared libraries NotificationServicesController feat(notifications): use shared libraries NotificationServicesController Aug 16, 2024
@Prithpal-Sooriya Prithpal-Sooriya force-pushed the notify_840-use-notification-services-controller branch 2 times, most recently from 1db00e1 to a5a01e8 Compare August 16, 2024 18:18
@Prithpal-Sooriya Prithpal-Sooriya marked this pull request as ready for review August 16, 2024 18:51
@Prithpal-Sooriya Prithpal-Sooriya requested review from a team as code owners August 16, 2024 18:51
@Prithpal-Sooriya Prithpal-Sooriya requested a review from a team as a code owner August 16, 2024 18:51
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [a5a01e8]
Page Load Metrics (81 ± 19 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint692821094421
domContentLoaded40235774120
load47235814019
domInteractive9190333818
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -576.76 KiB (-14.76%)
  • ui: -1.34 KiB (-0.02%)
  • common: 542.5 KiB (7.41%)

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 69.98%. Comparing base (69696bb) to head (43de4b4).
Report is 1 commits behind head on develop.

Files Patch % Lines
app/scripts/background.js 0.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #26480      +/-   ##
===========================================
- Coverage    70.19%   69.98%   -0.22%     
===========================================
  Files         1420     1405      -15     
  Lines        49767    48991     -776     
  Branches     13828    13697     -131     
===========================================
- Hits         34933    34282     -651     
+ Misses       14834    14709     -125     

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

Copy link
Copy Markdown
Contributor

@matteoscurati matteoscurati left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud
Copy link
Copy Markdown

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [43de4b4]
Page Load Metrics (80 ± 22 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint733161115024
domContentLoaded42277784823
load50277804722
domInteractive11171313316
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -576.76 KiB (-14.76%)
  • ui: -1.34 KiB (-0.02%)
  • common: 542.5 KiB (7.41%)

@Prithpal-Sooriya Prithpal-Sooriya merged commit e3aef95 into develop Aug 19, 2024
@Prithpal-Sooriya Prithpal-Sooriya deleted the notify_840-use-notification-services-controller branch August 19, 2024 10:50
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2024
@metamaskbot metamaskbot added the release-12.5.0 Issue or pull request that will be included in release 12.5.0 label Aug 19, 2024
@gauthierpetetin gauthierpetetin added release-12.4.0 Issue or pull request that will be included in release 12.4.0 and removed release-12.5.0 Issue or pull request that will be included in release 12.5.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.4.0 Issue or pull request that will be included in release 12.4.0 team-notifications-deprecated DEPRECATED: please use "team-assets" instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants