metamask-extension
metamask-extension copied to clipboard
Remove unused notifications, their messages, and images
Description
Continues the work that @legobeat was doing in #20703 and #21533
All old numbered notifications except 8, 20, and 24 were permanently turned off, but their code, their messages.json
, and most importantly their images were still present in the Extension.
By removing all this, we reduce the size of the zipped Extension by 949kB, and the unzipped Extension by 1,852kB.
IMPORTANT: This is NOT well-tested from a QA perspective, and QA should do some good testing on it before we merge.
Related issues
Followup to: #20703 Followup to: #21533
Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
- [x] I’ve followed MetaMask Coding Standards.
- [x] I've clearly explained what problem this PR is solving and how it is solved.
- [x] I've linked related issues
- [ ] I've included manual testing steps
- [ ] I've included screenshots/recordings if applicable
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using JSDoc format if applicable
- [x] I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
- [x] I’ve properly set the pull request status:
- [ ] In case it's not yet "ready for review", I've set it to "draft".
- [x] In case it's "ready for review", I've changed it from "draft" to "non-draft".
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.
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.
Builds ready [321dc85]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (780 ± 21 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 85 | 131 | 109 | 11 | 5 |
domContentLoaded | 9 | 26 | 17 | 4 | 2 | ||
load | 721 | 899 | 780 | 43 | 21 | ||
domInteractive | 9 | 26 | 17 | 4 | 2 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -118 Bytes (-0.00%)
- common: -14.19 KiB (-0.28%)
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
b0bd096
) 68.47% compared to head (17137c7
) 68.54%. Report is 2 commits behind head on develop.
Additional details and impacted files
@@ Coverage Diff @@
## develop #22678 +/- ##
===========================================
+ Coverage 68.47% 68.54% +0.07%
===========================================
Files 1088 1088
Lines 42956 42900 -56
Branches 11436 11417 -19
===========================================
- Hits 29410 29403 -7
+ Misses 13546 13497 -49
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Builds ready [65b7d0b]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (823 ± 48 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 92 | 157 | 112 | 19 | 9 |
domContentLoaded | 9 | 23 | 15 | 4 | 2 | ||
load | 727 | 1133 | 823 | 101 | 48 | ||
domInteractive | 9 | 23 | 15 | 4 | 2 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -118 Bytes (-0.00%)
- common: -14.19 KiB (-0.28%)
Builds ready [6ef3df8]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (811 ± 24 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 96 | 148 | 114 | 14 | 7 |
domContentLoaded | 10 | 45 | 18 | 8 | 4 | ||
load | 733 | 917 | 811 | 49 | 24 | ||
domInteractive | 10 | 45 | 18 | 8 | 4 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -118 Bytes (-0.00%)
- common: -14.19 KiB (-0.28%)
Manual test cases passed on Chrome 121.0.6167.139 and Firefox 122.0:
- [x] Send native token MM
- [x] Send native token dapp
- [x] Check incoming transactions history is present in the Activity list
- [x] Send ERC20 token MM
- [x] Send ERC20 token dapp
- [x] Send ERC721 MM
- [x] Send ERC721 dapp
- [x] Import ERC 20 MM
- [x] Import ERC20 dapp
- [x] Import ERC721 MM
- [x] Import ERC721 dapp
- [x] Import ERC1155 MM
- [x] Import ERC1155 dapp
- [x] Contract interaction flows
- [x] Approve ERC20
- [x] Approve ERC721
- [x] Approve ERC1155
- [x] Cancel transaction
- [x] Speed up cancellation
- [x] Speed up transaction
- [x] Queue multiple transactions, cancel / speed up
- [x] Custom nonce
- [x] Token autodetect
- [x] NFT autodetect
- [x] Add / remove networks / custom networks
- [x] Personal sign
- [x] Sign typed data
- [x] Sign typed data v3
- [x] Sign typed data v4
- [x] Swap
- [x] Smart swap
- 'Watch NFT' and 'Watch all NFTs' is not responsive in Chrome, works as expected on Firefox.
- ENS name resolution on Chrome and Firefox:
doesn't work on Linea Goerli and Sepolia
works on Goerli
On mainnet ENS name is initially recognized then 'ens lookup failed' message pops up
https://github.com/MetaMask/metamask-extension/assets/104780023/27166438-27ca-4a31-882d-3ad7251e2904
- Errors in the background when cancelling a swap: Firefox
https://github.com/MetaMask/metamask-extension/assets/104780023/5e05a727-798b-4002-af20-348fce93ee2e
Chrome
I wasn't able to cancel any swap (performed about 10 swaps).
Builds ready [32113b5]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (755 ± 15 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 90 | 130 | 108 | 10 | 5 |
domContentLoaded | 9 | 35 | 17 | 5 | 2 | ||
load | 707 | 826 | 755 | 31 | 15 | ||
domInteractive | 9 | 34 | 17 | 5 | 2 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -1.33 KiB (-0.02%)
- common: -14.19 KiB (-0.28%)
Builds ready [d2954e9]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (791 ± 26 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 84 | 150 | 113 | 17 | 8 |
domContentLoaded | 9 | 56 | 23 | 14 | 7 | ||
load | 722 | 909 | 791 | 54 | 26 | ||
domInteractive | 9 | 56 | 23 | 14 | 7 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -1.33 KiB (-0.02%)
- common: -14.19 KiB (-0.28%)
Builds ready [c62f986]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (707 ± 12 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 74 | 122 | 89 | 11 | 5 |
domContentLoaded | 9 | 17 | 14 | 2 | 1 | ||
load | 672 | 751 | 707 | 24 | 12 | ||
domInteractive | 9 | 17 | 14 | 2 | 1 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -1.33 KiB (-0.02%)
- common: -14.19 KiB (-0.28%)
Builds ready [b02ec91]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (763 ± 17 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 79 | 137 | 96 | 15 | 7 |
domContentLoaded | 9 | 21 | 14 | 4 | 2 | ||
load | 712 | 845 | 763 | 36 | 17 | ||
domInteractive | 9 | 21 | 14 | 4 | 2 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -1.33 KiB (-0.02%)
- common: -14.19 KiB (-0.28%)
Builds ready [b1d94c3]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (810 ± 32 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 81 | 276 | 113 | 44 | 21 |
domContentLoaded | 9 | 197 | 27 | 40 | 19 | ||
load | 714 | 1054 | 810 | 67 | 32 | ||
domInteractive | 9 | 197 | 27 | 40 | 19 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -1.33 KiB (-0.02%)
- common: -14.19 KiB (-0.28%)
Builds ready [e6f0390]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (1105 ± 85 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 94 | 221 | 167 | 36 | 17 |
domContentLoaded | 9 | 142 | 35 | 32 | 15 | ||
load | 850 | 1572 | 1105 | 177 | 85 | ||
domInteractive | 9 | 142 | 35 | 32 | 15 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -1.33 KiB (-0.02%)
- common: -14.19 KiB (-0.28%)
I did some exploratory testing for notifications and compared the notifications between the PR branch and the develop branch. QA passed. ✔️ @HowardBraham
Builds ready [17137c7]
- builds: chrome, firefox
- builds (beta): chrome
- builds (flask): chrome, firefox
- builds (MMI): chrome, firefox
- builds (test): chrome, firefox
- builds (test-flask): chrome, firefox
- build viz: Build System
- mv3: Background Module Init Stats
- mv3: UI Init Stats
- mv3: Module Load Stats
- mv3: Bundle Size Stats
- mv2: E2e Actions Stats
- code coverage: Report
- storybook: Storybook
- typescript migration: Dashboard
- all artifacts
Page Load Metrics (1030 ± 109 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 116 | 295 | 189 | 44 | 21 |
domContentLoaded | 9 | 86 | 30 | 24 | 11 | ||
load | 816 | 1819 | 1030 | 228 | 109 | ||
domInteractive | 9 | 86 | 30 | 24 | 11 |
Bundle size diffs [🚀 Bundle size reduced!]
- background: 0 Bytes (0.00%)
- ui: -1.33 KiB (-0.02%)
- common: -14.19 KiB (-0.28%)