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

feat: Network verification changed #7701

Merged
merged 16 commits into from
Nov 9, 2023
Merged

Conversation

tommasini
Copy link
Contributor

@tommasini tommasini commented Nov 7, 2023

Description

This PR aims to update network verification UI to help the user with more warnings when adding a custom network via dapp.

Related issues

Fixes: #

Manual testing steps

  1. Go to this chainlist.org on in app browser
  2. Add a custom network
  3. Should see the new layout

Screenshots/Recordings

redirect to add custom network article
https://recordit.co/U7eo17r4qD
https://recordit.co/zywbsTqOec

Before

After

https://recordit.co/QTde2ZiVrv

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.

Copy link
Contributor

github-actions bot commented Nov 7, 2023

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.

@tommasini tommasini marked this pull request as ready for review November 7, 2023 11:51
@tommasini tommasini requested a review from a team as a code owner November 7, 2023 11:51
Copy link
Contributor

github-actions bot commented Nov 7, 2023

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/e50b8625-0b56-4721-8acd-87a6ae284a2c
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2023

Codecov Report

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

Comparison is base (351778e) 34.97% compared to head (616e3b0) 35.02%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7701      +/-   ##
==========================================
+ Coverage   34.97%   35.02%   +0.04%     
==========================================
  Files        1034     1035       +1     
  Lines       27529    27526       -3     
  Branches     2298     2309      +11     
==========================================
+ Hits         9629     9640      +11     
+ Misses      17387    17370      -17     
- Partials      513      516       +3     
Files Coverage Δ
...s/Pickers/PickerNetwork/PickerNetwork.constants.ts 100.00% <100.00%> (+50.00%) ⬆️
...components/Pickers/PickerNetwork/PickerNetwork.tsx 100.00% <100.00%> (ø)
...ts/Approvals/AddChainApproval/AddChainApproval.tsx 100.00% <100.00%> (ø)
...VerificationInfo/NetworkVerificationInfo.styles.ts 100.00% <100.00%> (ø)
app/constants/urls.ts 100.00% <100.00%> (ø)
...foundation/BottomSheetDialog/BottomSheetDialog.tsx 1.53% <0.00%> (+1.53%) ⬆️
app/core/RPCMethods/wallet_addEthereumChain.js 80.37% <84.61%> (+0.37%) ⬆️
...omponents/BottomSheets/BottomSheet/BottomSheet.tsx 3.57% <0.00%> (+3.57%) ⬆️
...etworkVerificationInfo/NetworkVerificationInfo.tsx 61.11% <61.11%> (ø)

... and 7 files with indirect coverage changes

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

@metamaskbot metamaskbot added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Nov 7, 2023
Copy link
Contributor

@NicolasMassart NicolasMassart left a comment

Choose a reason for hiding this comment

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

Very clean and easy to understand code.
I pointed at some possible syntax improvements but they do not change the way the code works.
Only required change is the typo and comment to make a todo ;)

Copy link
Contributor

github-actions bot commented Nov 7, 2023

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/fc4f9955-2902-456b-b91c-769cb0c0b6fa
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

Copy link
Contributor

github-actions bot commented Nov 8, 2023

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/63dbcc28-5bb7-4779-bdb7-1df81366a5b0
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

Copy link
Contributor

github-actions bot commented Nov 8, 2023

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b08ae87f-a8cd-42e9-b964-2e7cdcf441a2
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

Left some comments

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

Lgtm

Copy link

sonarcloud bot commented Nov 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

60.3% 60.3% Coverage
0.0% 0.0% Duplication

@tommasini tommasini merged commit cb37fdf into main Nov 9, 2023
28 checks passed
@tommasini tommasini deleted the feat/1267-network-verification branch November 9, 2023 17:01
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2023
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Nov 9, 2023
@metamaskbot metamaskbot added the release-7.12.0 Issue or pull request that will be included in release 7.12.0 label Nov 9, 2023
@gauthierpetetin gauthierpetetin added team-mobile-platform team-mobile-ux DEPRECATED: please use "team-wallet-ux" label instead labels Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.12.0 Issue or pull request that will be included in release 7.12.0 team-mobile-platform team-mobile-ux DEPRECATED: please use "team-wallet-ux" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants