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

feat(NOTIFY-866): add account syncing #27060

Merged
merged 48 commits into from
Sep 19, 2024
Merged

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Sep 11, 2024

Description

This PR adds account syncing to MetaMask.
As part of profile syncing, with this new feature, users will be able to synchronize all of their accounts and accounts' names across all of their devices.

Open in GitHub Codespaces

Related issues

Fixes:

NOTIFY-866

Manual testing steps

  1. Log in with SRP
  2. Activate profile syncing in preferences
  3. Add new accounts and rename others
  4. Using another browser, log in with SRP
  5. Activate profile syncing in preferences
  6. Watch the magic happen!

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.

@mathieuartu mathieuartu added the team-notifications Notifications team label Sep 11, 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.

Copy link

socket-security bot commented Sep 11, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
New author npm/[email protected] 🚫

View full report↗︎

Next steps

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@mathieuartu
Copy link
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Sep 12, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [3f71dd9]
Page Load Metrics (1837 ± 101 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint153222051836210101
domContentLoaded15002197181020598
load153222061837211101
domInteractive146333136
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -24.12 KiB (-0.67%)
  • ui: 1.41 KiB (0.02%)
  • common: -1.93 KiB (-0.02%)

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 86.66667% with 4 lines in your changes missing coverage. Please review.

Project coverage is 70.10%. Comparing base (1d686e2) to head (a7e9c2c).
Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
.../hooks/metamask-notifications/useProfileSyncing.ts 90.91% 2 Missing ⚠️
ui/store/actions.ts 71.43% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #27060      +/-   ##
===========================================
+ Coverage    70.09%   70.10%   +0.01%     
===========================================
  Files         1438     1438              
  Lines        49971    50001      +30     
  Branches     13989    13992       +3     
===========================================
+ Hits         35026    35052      +26     
- Misses       14945    14949       +4     

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

@metamaskbot
Copy link
Collaborator

Builds ready [6fec4c5]
Page Load Metrics (1890 ± 173 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23531161732592284
domContentLoaded158329671867338162
load159331271890360173
domInteractive15123372411
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -24.12 KiB (-0.67%)
  • ui: 1.47 KiB (0.02%)
  • common: -1.93 KiB (-0.02%)

@metamaskbot
Copy link
Collaborator

Builds ready [0a69a97]
Page Load Metrics (2098 ± 114 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30926812001451217
domContentLoaded161425992067236113
load162526802098238114
domInteractive166436136
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -24.12 KiB (-0.67%)
  • ui: 1.47 KiB (0.02%)
  • common: -1.93 KiB (-0.02%)

@metamaskbot
Copy link
Collaborator

Builds ready [09185ce]
Page Load Metrics (1975 ± 123 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25824271692638306
domContentLoaded156924171954251121
load162324271975257123
domInteractive15109372010
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -24.12 KiB (-0.67%)
  • ui: 1.44 KiB (0.02%)
  • common: -1.93 KiB (-0.02%)

Copy link

socket-security bot commented Sep 18, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] None 0 266 kB metamaskbot
npm/@metamask/[email protected] None 0 59.7 kB metamaskbot
npm/@metamask/[email protected] None 0 42.4 kB metamaskbot
npm/@metamask/[email protected] None 0 537 kB metamaskbot
npm/@noble/[email protected] None 0 624 kB paulmillr
npm/[email protected] None 0 162 kB ralxz
npm/[email protected] None 0 11.2 kB mathias

🚮 Removed packages: npm/@metamask/[email protected], npm/@noble/[email protected]

View full report↗︎

Copy link

sonarcloud bot commented Sep 18, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [bbdb18d]
Page Load Metrics (1863 ± 133 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint150127191871279134
domContentLoaded149227061844277133
load150127171863277133
domInteractive13197624924
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -961 Bytes (-0.02%)
  • ui: 1.54 KiB (0.02%)
  • common: -16.97 KiB (-0.21%)

@mathieuartu mathieuartu marked this pull request as ready for review September 19, 2024 11:23
@mathieuartu mathieuartu requested review from a team as code owners September 19, 2024 11:23
Copy link
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

Copy link

sonarcloud bot commented Sep 19, 2024

@mathieuartu mathieuartu merged commit b15e7cd into develop Sep 19, 2024
75 of 77 checks passed
@mathieuartu mathieuartu deleted the feat/add_account_syncing branch September 19, 2024 13:14
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 19, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [0e01f8d]
Page Load Metrics (1852 ± 73 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint32723281778370177
domContentLoaded15752170181112761
load15842264185215273
domInteractive238343178
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -961 Bytes (-0.02%)
  • ui: 1.54 KiB (0.02%)
  • common: -16.97 KiB (-0.21%)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template release-12.6.0 Issue or pull request that will be included in release 12.6.0 team-notifications Notifications team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants