Revert remove staking link
Description
Reverts the commits to remove the "Stake" button and associated announcement, ie the changes in this PR.
Manual testing steps
Confirm "Stake" button restored
Original PR: https://github.com/MetaMask/metamask-extension/pull/22347
- Go to Token Listing
- Verify that the new staking icon shows only for ETH mainnet
- Click on button; it should go to the MetaMask Porfolio stake page
- Verify that onClick, a new metametrics event is tracked
Confirm announcement restored
Original PR: https://github.com/MetaMask/metamask-extension/pull/22291
- Install MM build with this change
- The Stake announcement should appear, either last on the "What's New" list if you haven't seen previous announcements or as the only item in "What's New" if you have
- CTA should not click through to anything (just close the notification)
Screenshots/Recordings
Before
After
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
- [X] I've included manual testing steps
- [X] I've included screenshots/recordings if applicable
- [X] I’ve included tests if applicable
- [X] 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:
- [x] In case it's not yet "ready for review", I've set it to "draft".
- [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft".
Pre-merge reviewer checklist
- [X] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
- [X] 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.
Codecov Report
Attention: 4 lines in your changes are missing coverage. Please review.
Comparison is base (
14d1974) 68.55% compared to head (0937843) 68.55%.
Additional details and impacted files
@@ Coverage Diff @@
## develop #22816 +/- ##
===========================================
+ Coverage 68.55% 68.55% +0.01%
===========================================
Files 1088 1088
Lines 42907 42932 +25
Branches 11415 11425 +10
===========================================
+ Hits 29411 29431 +20
- Misses 13496 13501 +5
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Builds ready [5c21704]
- 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 ± 22 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 89 | 145 | 111 | 16 | 8 |
| domContentLoaded | 10 | 40 | 17 | 6 | 3 | ||
| load | 728 | 910 | 810 | 45 | 22 | ||
| domInteractive | 10 | 40 | 17 | 6 | 3 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 0 Bytes (0.00%)
- ui: 1.48 KiB (0.02%)
- common: 1.11 KiB (0.02%)
Builds ready [ae84b58]
- 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 (801 ± 22 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 80 | 147 | 112 | 20 | 10 |
| domContentLoaded | 10 | 56 | 20 | 12 | 6 | ||
| load | 723 | 914 | 801 | 46 | 22 | ||
| domInteractive | 10 | 56 | 20 | 12 | 6 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 0 Bytes (0.00%)
- ui: 1.48 KiB (0.02%)
- common: 1.11 KiB (0.02%)
Builds ready [acdb372]
- 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 (980 ± 20 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 108 | 271 | 190 | 33 | 16 |
| domContentLoaded | 10 | 74 | 35 | 24 | 12 | ||
| load | 916 | 1057 | 980 | 41 | 20 | ||
| domInteractive | 10 | 74 | 34 | 24 | 12 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 0 Bytes (0.00%)
- ui: 1.48 KiB (0.02%)
- common: 1.11 KiB (0.02%)
Builds ready [0937843]
- 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 (1048 ± 46 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 125 | 299 | 206 | 45 | 22 |
| domContentLoaded | 11 | 93 | 39 | 24 | 12 | ||
| load | 799 | 1245 | 1048 | 96 | 46 | ||
| domInteractive | 11 | 93 | 39 | 24 | 12 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 0 Bytes (0.00%)
- ui: 1.48 KiB (0.02%)
- common: 1.11 KiB (0.02%)