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

Added a 'Verify contract details' link to SetApprovalForAll confirmation screens #15756

Merged
merged 3 commits into from
Nov 14, 2022

Conversation

adnansahovic
Copy link
Contributor

@adnansahovic adnansahovic commented Sep 7, 2022

Explanation

Added a 'Verify contract details' link to SetApprovalForAll and NFT Allowance confirmation screens. Clicking on this link will take you to new contract detail modal. On the contract detail modal the NFT contract is the NFT contract that the user is granting allowance for, and the Contract requesting access is the address that being granted access to the NFTs (we currently show it as "Granted to" under permission request).

More Information

Screenshots/Screencaps

Screenshot 2022-10-14 at 01 32 26

Screen.Recording.2022-10-14.at.01.34.56.mov

Manual Testing Steps

  • Open the test dapp https://metamask.github.io/test-dapp/
  • Under the collectibles section, click on "Deploy"
  • Wait for transaction to be confirmed and click on "Mint"
  • Wait for transaction to be confirmed and click on "Set Approval For All" or "Approve"

@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2022

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.

@adnansahovic adnansahovic self-assigned this Sep 7, 2022
@metamaskbot
Copy link
Collaborator

Builds ready [86812d5]
Page Load Metrics (1759 ± 49 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint97164121168
domContentLoaded1597196617439244
load16202068175910249
domInteractive1597196617439244

highlights:

storybook

@adnansahovic adnansahovic force-pushed the verify-contract-details-SetApprovalForAll branch 2 times, most recently from ca276f9 to fea6d49 Compare September 12, 2022 07:12
@metamaskbot
Copy link
Collaborator

Builds ready [fea6d49]
Page Load Metrics (1860 ± 55 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint981901293526253
domContentLoaded16252082183811656
load16932107186011555
domInteractive16252082183811656

highlights:

storybook

@adnansahovic adnansahovic force-pushed the verify-contract-details-SetApprovalForAll branch from fea6d49 to 148bb8a Compare September 13, 2022 09:44
@mirjanaKukic
Copy link
Contributor

Verified by QA

@adnansahovic adnansahovic force-pushed the verify-contract-details-SetApprovalForAll branch from 148bb8a to d5f4f2d Compare September 13, 2022 12:05
@metamaskbot
Copy link
Collaborator

Builds ready [d5f4f2d]
Page Load Metrics (1921 ± 60 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint103176127189
domContentLoaded16722130189412359
load16722200192112660
domInteractive16722130189412359

highlights:

storybook

@adnansahovic adnansahovic marked this pull request as ready for review September 13, 2022 13:05
@adnansahovic adnansahovic requested a review from a team as a code owner September 13, 2022 13:05
@adnansahovic adnansahovic requested a review from segun September 13, 2022 13:05
@adonesky1
Copy link
Contributor

Does this mean we're no longer showing the address we're granting approval to on this screen?

@adnansahovic
Copy link
Contributor Author

Does this mean we're no longer showing the address we're granting approval to on this screen?

hi @adonesky1, If this is what you meant, the setApprovalForAll confirmation screen doesn't show the address by default, but you can see it by clicking on View full transaction details ("Granted to:"), also clicking Verify contract details.

@adnansahovic adnansahovic marked this pull request as draft September 15, 2022 12:17
@adnansahovic adnansahovic force-pushed the verify-contract-details-SetApprovalForAll branch 2 times, most recently from 5eaeeb3 to fc5edea Compare September 15, 2022 18:29
@adonesky1
Copy link
Contributor

hi @adonesky1, If this is what you meant, the setApprovalForAll confirmation screen doesn't show the address by default, but you can see it by clicking on View full transaction details ("Granted to:"), also clicking Verify contract details.

Ah after watching the video I see that the address hasn't changed there.

Looks good, only thing I would change is the placement. Seems like the address component should go above the "Verify Contract Details" button, since it should be right under the "You are allowing the follow account to access your funds".
Screen Shot 2022-09-15 at 5 25 58 PM

@adnansahovic
Copy link
Contributor Author

hi @adonesky1, If this is what you meant, the setApprovalForAll confirmation screen doesn't show the address by default, but you can see it by clicking on View full transaction details ("Granted to:"), also clicking Verify contract details.

Ah after watching the video I see that the address hasn't changed there.

Looks good, only thing I would change is the placement. Seems like the address component should go above the "Verify Contract Details" button, since it should be right under the "You are allowing the follow account to access your funds". Screen Shot 2022-09-15 at 5 25 58 PM

That address component will be deleted in this ticket

@adnansahovic adnansahovic force-pushed the verify-contract-details-SetApprovalForAll branch from fc5edea to 20927e7 Compare October 13, 2022 23:04
@metamaskbot
Copy link
Collaborator

Builds ready [105d4e0]
Page Load Metrics (2475 ± 90 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint953441325728
domContentLoaded21582871245319393
load21582872247518890
domInteractive21582871245319393

highlights:

storybook

@metamaskbot
Copy link
Collaborator

Builds ready [1853d18]
Page Load Metrics (2230 ± 57 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint85144106147
domContentLoaded19702432221712661
load19702432223011957
domInteractive19702432221712661

highlights:

storybook

@adnansahovic adnansahovic force-pushed the verify-contract-details-SetApprovalForAll branch 2 times, most recently from 628c778 to 09c474e Compare October 15, 2022 12:02
@mirjanaKukic
Copy link
Contributor

Verified by QA

@metamaskbot
Copy link
Collaborator

Builds ready [09c474e]
Page Load Metrics (2068 ± 44 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint833211055024
domContentLoaded1841221120619244
load1841221220689144
domInteractive1841221120619244

highlights:

storybook

@adnansahovic adnansahovic force-pushed the verify-contract-details-SetApprovalForAll branch from 09c474e to 4438e5f Compare October 17, 2022 09:54
@adnansahovic adnansahovic marked this pull request as ready for review October 17, 2022 11:15
@metamaskbot
Copy link
Collaborator

Builds ready [17ce341]
Page Load Metrics (2344 ± 71 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint872537346701336
domContentLoaded21692733232713665
load21692821234414771
domInteractive21692733232713665

highlights:

storybook

let nftCollectionNameExist;
let nftCollectionImageExist;

Object.values(collections).forEach((nftCollections) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commented on some similar code in another PR here: #15844 (comment)

If we need the same code here, it might be best to create a reusable component for rendering nft collection images

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @danjm , You can see changes here

…ion screens

added one larger button in footer

verify locales

modified contract-details-modal

fixed contract details modal

modified open in block explorer

modified contract details modal

deleted gotItModal in locales

modified collection image

modified nft collection image
@adnansahovic adnansahovic force-pushed the verify-contract-details-SetApprovalForAll branch from 17ce341 to 14a43cd Compare October 26, 2022 07:56
@metamaskbot
Copy link
Collaborator

Builds ready [14a43cd]
Page Load Metrics (2514 ± 159 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint992615371660317
domContentLoaded185731732472344165
load188331732514332159
domInteractive185731732472344165

highlights:

storybook

@brad-decker brad-decker merged commit bf1db00 into develop Nov 14, 2022
@brad-decker brad-decker deleted the verify-contract-details-SetApprovalForAll branch November 14, 2022 19:28
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a 'Verify contract details' link to SetApprovalForAll confirmation screens
6 participants