metamask-extension
metamask-extension copied to clipboard
Show modal when user tries to cancel confirmed transaction
Description
If user tries to cancel transaction which is already confirmed, we would like to show them a modal to show a link to block explorer.
Related issues
Fixes: https://github.com/MetaMask/metamask-extension/issues/22314 Related: https://github.com/MetaMask/metamask-extension/issues/22663
Manual testing steps
Please see the recording.
Screenshots/Recordings
https://github.com/MetaMask/metamask-extension/assets/7644512/861ef616-89a4-4292-8a2b-8a1733f2d88b
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
- [ ] 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.
@metamaskbot update-policies
No policy changes
@metamaskbot update-policies
Policy update failed. You can review the logs or retry the policy update here
@metamaskbot update-policies
Policies updated
Builds ready [0153884]
- 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 (1028 ± 53 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 121 | 233 | 165 | 32 | 16 |
domContentLoaded | 10 | 105 | 32 | 29 | 14 | ||
load | 848 | 1230 | 1028 | 111 | 53 | ||
domInteractive | 10 | 105 | 32 | 29 | 14 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 2.21 KiB (0.07%)
- ui: 7.35 KiB (0.11%)
- common: 26.54 KiB (0.53%)
Codecov Report
Attention: 3 lines
in your changes are missing coverage. Please review.
Comparison is base (
d87b631
) 68.49% compared to head (14878c4
) 68.52%.
Files | Patch % | Lines |
---|---|---|
...lready-confirmed/transaction-already-confirmed.tsx | 75.00% | 3 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## develop #22943 +/- ##
===========================================
+ Coverage 68.49% 68.52% +0.04%
===========================================
Files 1090 1092 +2
Lines 43133 43153 +20
Branches 11501 11502 +1
===========================================
+ Hits 29541 29570 +29
+ Misses 13592 13583 -9
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
New modal is successfully displayed when user attempts to cancel the transaction that was confirmed on blockchain, dev build commit 6bef80e, Chrome 121.0.6167.184:
https://github.com/MetaMask/metamask-extension/assets/104780023/b56a8a40-a9b6-4f31-a1b1-4988778afde1
Builds ready [37403e1]
- 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 (1027 ± 40 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 122 | 251 | 174 | 40 | 19 |
domContentLoaded | 10 | 101 | 36 | 28 | 13 | ||
load | 847 | 1210 | 1027 | 84 | 40 | ||
domInteractive | 10 | 101 | 36 | 28 | 13 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 2.21 KiB (0.07%)
- ui: 6.64 KiB (0.10%)
- common: 26.54 KiB (0.53%)
@metamaskbot update-policies
Policies updated
Builds ready [c07848b]
- 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 (1993 ± 176 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 89 | 484 | 205 | 110 | 53 |
domContentLoaded | 10 | 102 | 39 | 26 | 12 | ||
load | 1566 | 3101 | 1993 | 367 | 176 | ||
domInteractive | 10 | 102 | 39 | 26 | 12 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 0 Bytes (0.00%)
- ui: 4.56 KiB (0.07%)
- common: 193 Bytes (0.00%)
Builds ready [14878c4]
- 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 (1733 ± 67 ms)
Platform | Page | Metric | Min (ms) | Max (ms) | Average (ms) | StandardDeviation (ms) | MarginOfError (ms) |
---|---|---|---|---|---|---|---|
Chrome | Home | firstPaint | 96 | 432 | 192 | 88 | 42 |
domContentLoaded | 10 | 83 | 31 | 24 | 11 | ||
load | 1493 | 2124 | 1733 | 140 | 67 | ||
domInteractive | 10 | 83 | 31 | 24 | 11 |
Bundle size diffs [🚨 Warning! Bundle size has increased!]
- background: 0 Bytes (0.00%)
- ui: 4.56 KiB (0.07%)
- common: 193 Bytes (0.00%)