Added PoC for polling hook
Description
Related issues
Fixes:
Manual testing steps
- Go to this page...
Screenshots/Recordings
Before
After
Pre-merge author checklist
- [ ] I’ve followed MetaMask Coding Standards.
- [ ] I've clearly explained what problem this PR is solving and how it is solved.
- [ ] 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
- [ ] I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
- [ ] I’ve properly set the pull request status:
- [ ] 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
- [ ] 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.
@metamaskbot update-policies
Policies updated
@metamaskbot update-policies
Policies updated
@metamaskbot update-policies
Policies updated
Codecov Report
Attention: 4 lines in your changes are missing coverage. Please review.
Comparison is base (
d5cf563) 68.33% compared to head (16a39fe) 68.35%.
:exclamation: Current head 16a39fe differs from pull request most recent head 65d2500. Consider uploading reports for the commit 65d2500 to get more accurate results
| Files | Patch % | Lines |
|---|---|---|
| app/scripts/metamask-controller.js | 0.00% | 2 Missing :warning: |
| ui/store/actions.ts | 50.00% | 2 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## jl/transaction-multichain-preview-test #22770 +/- ##
==========================================================================
+ Coverage 68.33% 68.35% +0.03%
==========================================================================
Files 1088 1089 +1
Lines 42810 42812 +2
Branches 11394 11387 -7
==========================================================================
+ Hits 29251 29264 +13
+ Misses 13559 13548 -11
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Builds ready [16a39fe]
- 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 (815 ± 24 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 99 | 136 | 115 | 12 | 6 |
| domContentLoaded | 11 | 23 | 17 | 4 | 2 | ||
| load | 726 | 915 | 815 | 49 | 24 | ||
| domInteractive | 11 | 23 | 17 | 4 | 2 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: -79.07 KiB (-2.35%)
- ui: 941 Bytes (0.01%)
- common: 145.49 KiB (2.89%)
Builds ready [65d2500]
- 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 (799 ± 29 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 93 | 146 | 113 | 13 | 6 |
| domContentLoaded | 9 | 43 | 17 | 8 | 4 | ||
| load | 715 | 930 | 799 | 59 | 29 | ||
| domInteractive | 9 | 43 | 17 | 8 | 4 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: -79.07 KiB (-2.35%)
- ui: 941 Bytes (0.01%)
- common: 145.49 KiB (2.89%)
Builds ready [f529769]
- 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 (813 ± 42 ms)
| Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
|---|---|---|---|---|---|---|---|
| Chrome | Home | firstPaint | 94 | 139 | 114 | 13 | 6 |
| domContentLoaded | 10 | 37 | 17 | 6 | 3 | ||
| load | 733 | 1105 | 813 | 87 | 42 | ||
| domInteractive | 10 | 37 | 17 | 6 | 3 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: -79.07 KiB (-2.35%)
- ui: 941 Bytes (0.01%)
- common: 145.49 KiB (2.89%)
replaced by https://github.com/MetaMask/metamask-extension/pull/23010