Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #24322 - Disable edits for all dapp initiated transactions #24334

Merged
merged 6 commits into from
May 2, 2024

Conversation

darkwing
Copy link
Contributor

@darkwing darkwing commented May 1, 2024

Description

Ensures only transactions started within MetaMask are editable

Open in GitHub Codespaces

Related issues

Fixes: #24322

Manual testing steps

  1. Go to the test dapp (https://metamask.github.io/test-dapp/)
  2. Trigger any number of transactions
  3. Do not see "Edit" in header
  4. Open MetaMask, manually start a send, see the "Edit" button

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • 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.

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.

@darkwing darkwing requested review from a team as code owners May 1, 2024 19:24
Copy link
Contributor

github-actions bot commented May 1, 2024

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.

@sleepytanya
Copy link
Contributor

I don't see 'Edit' button for dapp initiated transactions:

noEdit.mov

@darkwing darkwing requested a review from a team as a code owner May 1, 2024 23:28
@sleepytanya
Copy link
Contributor

Latest commit ef8dd7c, looks great!
No 'Edit' option for dapp initiated simple transactions, NFT safeTransferFrom and for ERC20 transferFrom:

2.mov

Send transaction initiated from within the wallet has "Edit" button:

Screen.Recording.2024-05-01.at.22.20.44.mov

@metamaskbot
Copy link
Collaborator

Builds ready [a48d8f0]
Page Load Metrics (998 ± 614 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6110983126
domContentLoaded10141111
load4930409981278614
domInteractive10141111
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 66 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented May 2, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 67.32%. Comparing base (f2ec444) to head (a48d8f0).
Report is 52 commits behind head on develop.

Files Patch % Lines
...-header/confirm-page-container-header.component.js 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #24334   +/-   ##
========================================
  Coverage    67.32%   67.32%           
========================================
  Files         1276     1276           
  Lines        49739    49740    +1     
  Branches     12925    12926    +1     
========================================
+ Hits         33482    33483    +1     
  Misses       16257    16257           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [a48d8f0]
Page Load Metrics (998 ± 614 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6110983126
domContentLoaded10141111
load4930409981278614
domInteractive10141111
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 66 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [a48d8f0]
Page Load Metrics (998 ± 614 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6110983126
domContentLoaded10141111
load4930409981278614
domInteractive10141111
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 66 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

NidhiKJha
NidhiKJha previously approved these changes May 2, 2024
danjm
danjm previously approved these changes May 2, 2024
digiwand
digiwand previously approved these changes May 2, 2024
sleepytanya
sleepytanya previously approved these changes May 2, 2024
@danjm danjm dismissed stale reviews from sleepytanya, digiwand, pedronfigueiredo, NidhiKJha, and themself via 7c77c22 May 2, 2024 14:30
@danjm danjm merged commit 4a1853c into develop May 2, 2024
69 of 71 checks passed
@danjm danjm deleted the 24322-edits branch May 2, 2024 17:15
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [7c77c22]
Page Load Metrics (444 ± 421 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint57305915325
domContentLoaded894192110
load452709444876421
domInteractive894192110
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 66 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot metamaskbot added release-11.14.5 Issue or pull request that will be included in release 11.14.5 and removed release-11.18.0 labels May 2, 2024
@metamaskbot
Copy link
Collaborator

Missing release label release-11.14.5 on PR. Adding release label release-11.14.5 on PR and removing other release labels(release-11.18.0), as PR was cherry-picked in branch 11.14.5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.14.5 Issue or pull request that will be included in release 11.14.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable edits for all dapp initiated transactions
7 participants