fix: Notifications platform links
Description
This PR introduces the logic to handle links within notifications to support the different platforms on which we can use the extension.
Related issues
Fixes:
Manual testing steps
- Open the notifications list page
- Click on a product announcement
- Check the link in the detail page
Screenshots/Recordings
Before
After
Pre-merge author checklist
- [x] I’ve followed MetaMask Coding Standards.
- [x] I've completed the PR template to the best of my ability
- [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.
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.
Builds ready [4fe125f]
- 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 (894 ± 544 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 64 | 159 | 91 | 24 | 11 |
| domContentLoaded | 10 | 39 | 14 | 7 | 3 | ||
| load | 51 | 2633 | 894 | 1132 | 544 | ||
| domInteractive | 10 | 39 | 14 | 7 | 3 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 151 Bytes (0.00%)
- ui: 107 Bytes (0.00%)
- common: 0 Bytes (0.00%)
Codecov Report
Attention: Patch coverage is 70.00000% with 6 lines in your changes missing coverage. Please review.
Project coverage is 65.75%. Comparing base (
47706eb) to head (c991bd2). Report is 1 commits behind head on develop.
Additional details and impacted files
@@ Coverage Diff @@
## develop #24708 +/- ##
===========================================
+ Coverage 65.72% 65.75% +0.03%
===========================================
Files 1360 1361 +1
Lines 54043 54072 +29
Branches 14036 14025 -11
===========================================
+ Hits 35518 35552 +34
+ Misses 18525 18520 -5
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Builds ready [341ea4b]
- 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 (727 ± 488 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 63 | 137 | 85 | 20 | 10 |
| domContentLoaded | 10 | 35 | 14 | 7 | 3 | ||
| load | 51 | 2368 | 727 | 1016 | 488 | ||
| domInteractive | 9 | 35 | 14 | 7 | 3 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 151 Bytes (0.00%)
- ui: 107 Bytes (0.00%)
- common: 0 Bytes (0.00%)
Builds ready [c67e024]
- 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 (1317 ± 607 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 65 | 162 | 106 | 29 | 14 |
| domContentLoaded | 9 | 51 | 18 | 12 | 6 | ||
| load | 53 | 3381 | 1317 | 1265 | 607 | ||
| domInteractive | 9 | 51 | 18 | 12 | 6 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 151 Bytes (0.00%)
- ui: 107 Bytes (0.00%)
- common: 0 Bytes (0.00%)
Builds ready [460864c]
- 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 (732 ± 494 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 69 | 175 | 90 | 27 | 13 |
| domContentLoaded | 9 | 20 | 12 | 3 | 2 | ||
| load | 57 | 2661 | 732 | 1029 | 494 | ||
| domInteractive | 9 | 20 | 12 | 3 | 2 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 151 Bytes (0.00%)
- ui: 107 Bytes (0.00%)
- common: 0 Bytes (0.00%)
Builds ready [5ac245e]
- 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 (1316 ± 596 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 82 | 149 | 112 | 20 | 10 |
| domContentLoaded | 9 | 52 | 17 | 11 | 5 | ||
| load | 68 | 2946 | 1316 | 1241 | 596 | ||
| domInteractive | 9 | 52 | 17 | 11 | 5 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 22 Bytes (0.00%)
- ui: 1.9 KiB (0.03%)
- common: 1 Bytes (0.00%)
Missing release label release-12.0.0 on PR. Adding release label release-12.0.0 on PR and removing other release labels(release-12.1.0), as PR was cherry-picked in branch 12.0.0.