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

Revert "Updated copy changes for display NFT Media (#20380)" #21109

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Sep 28, 2023

This reverts commit 6c1b71b.

Description

This is a temporary fix to https://github.com/MetaMask/MetaMask-planning/issues/1380

The changes needed to justify the copy update in #20380 have not been made yet. See this comment for more details

We will make future fixes to the nft-controller to justify the copy changes that are being reverted here. After that, we can revert this revert.

Manual testing steps

In the "Security and Privacy" tab of settings, we should see a toggle with "Enable OpenSea API" as the label and "Use OpenSea's API to fetch NFT data. NFT auto-detection relies on OpenSea's API, and will not be available when this is turned off." as the description.

We should be able to search in settings for that toggle.

Switch to french, spanish and chinese languages, and the expected translations of the above copy should be present.

When the toggle is off, already imported NFTs from opensea should display no image. Also, when the toggle is off, you should not be able to click "Refresh List" to detect NFTs.

However, note that if the toggle is off and you manually import NFTs whose token metadata is stored on a server, a network request is still made to that server, and if the image of that NFT is stored on IPFS, it will be displayed. (This is what we will change in the future, before reverting this revert.

Screenshots/Recordings

If applicable, add screenshots and/or recordings to visualize the before and after of your change.

After

Screenshot 2023-08-03 at 5 10 30 PM

Before

Screenshot 2023-08-03 at 5 09 46 PM

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I’ve indicated what issue this PR is linked to: Fixes #???
  • I’ve included tests if applicable.
  • I’ve documented any added code.
  • I’ve applied the right labels on the PR (see labeling guidelines).
  • 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.

@danjm danjm requested a review from a team as a code owner September 28, 2023 20:28
@github-actions
Copy link
Contributor

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.

@danjm danjm force-pushed the revert-6c1b71b branch 3 times, most recently from 656e9f9 to a8672b3 Compare September 28, 2023 23:09
@metamaskbot
Copy link
Collaborator

Builds ready [a8672b3]
Page Load Metrics (1015 ± 362 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint8512299105
domContentLoaded7211892115
load8719371015755362
domInteractive7211892115
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 18 Bytes (0.00%)
  • common: -138 Bytes (-0.00%)

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (b4aff28) 68.46% compared to head (c8363f7) 68.46%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #21109   +/-   ##
========================================
  Coverage    68.46%   68.46%           
========================================
  Files         1012     1012           
  Lines        40447    40447           
  Branches     10790    10790           
========================================
  Hits         27692    27692           
  Misses       12755    12755           
Files Coverage Δ
...e-import-nfts/nfts-detection-notice-import-nfts.js 0.00% <ø> (ø)
...es/settings/security-tab/security-tab.component.js 100.00% <ø> (ø)
ui/helpers/constants/settings.js 33.77% <0.00%> (ø)

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

@metamaskbot
Copy link
Collaborator

Builds ready [c8363f7]
Page Load Metrics (977 ± 384 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint86141109178
domContentLoaded731421022110
load872141977799384
domInteractive731421022110
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 22 Bytes (0.00%)
  • common: -118 Bytes (-0.00%)

@danjm danjm merged commit 6572842 into develop Sep 29, 2023
9 checks passed
@danjm danjm deleted the revert-6c1b71b branch September 29, 2023 10:17
@github-actions github-actions bot locked and limited conversation to collaborators Sep 29, 2023
@metamaskbot metamaskbot added the release-11.3.0 Issue or pull request that will be included in release 11.3.0 label Sep 29, 2023
@gauthierpetetin gauthierpetetin added release-11.1.1 Issue or pull request that will be included in release 11.1.1 and removed release-11.3.0 Issue or pull request that will be included in release 11.3.0 labels Oct 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.1.1 Issue or pull request that will be included in release 11.1.1 team-extension-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants