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

Updated 1 NetworkDisplay component #20825

Closed
wants to merge 32 commits into from

Conversation

MaxwellDG
Copy link

@MaxwellDG MaxwellDG commented Sep 12, 2023

This is my first PR for Metamask, so apologizes if I've overlooked a couple parts.

This is fixing 1 instance of #20485. For this issue to be closed, there's several more NetworkDisplay tags to be removed. (Should I be creating a new PR each time? Or will we be doing multiple steps of approval in this single PR?)

As stated by @georgewrmarshall in #20485, there are some UI differences. I didn't write the PickerNetwork component, but I can point out 3 differences from the NetworkDisplay component:

The first letter in the coloured circle when an img is not present
Height of component is now set to 32px
Margin and paddings are slightly different
Here's photos comparing the two:
Initial:
confirm-page-container-header component-initial
confirm-page-container-header component-initial

Current:
Screenshot 2023-09-07 at 2 15 34 PM

In regards to the 3 file maximum, I know I went a little bit over. I believe this was unavoidable since there's also a couple snapshot file updates in order to ensure all tests continue to pass.

@MaxwellDG MaxwellDG requested a review from a team as a code owner September 12, 2023 02:20
@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.

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Patch coverage: 83.33% and no project coverage change.

Comparison is base (9f7ccfc) 68.25% compared to head (82b5a60) 68.25%.
Report is 30 commits behind head on develop.

❗ Current head 82b5a60 differs from pull request most recent head c7ad1bf. Consider uploading reports for the commit c7ad1bf to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #20825      +/-   ##
===========================================
- Coverage    68.25%   68.25%   -0.00%     
===========================================
  Files         1006     1006              
  Lines        40189    40194       +5     
  Branches     10743    10746       +3     
===========================================
+ Hits         27429    27431       +2     
- Misses       12760    12763       +3     
Files Changed Coverage Δ
...-header/confirm-page-container-header.component.js 89.47% <83.33%> (-3.38%) ⬇️

... and 2 files with indirect coverage changes

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

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Hey @MaxwellDG, apologies I left a review on this closed PR with the same changes here #20787 (review)

@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label Sep 13, 2023
@MaxwellDG
Copy link
Author

@georgewrmarshall I've updated it to have no changes to the PickerNetwork component. I'll keep that in mind for all future issues to not touch the components in the new component library.

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Excellent updates! I've left a few more suggestsions

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

LGTM! I added one small update to allow for image functionality. Thanks for your contribution @MaxwellDG

@MaxwellDG
Copy link
Author

@georgewrmarshall For the life of me I can't figure out why the "ci/circleci: test-e2e-chrome-mmi" test continues to fail. Do you have any hints as to why this would be failing? Is it the data-testIds?

@MaxwellDG MaxwellDG mentioned this pull request Oct 10, 2023
14 tasks
@georgewrmarshall
Copy link
Contributor

Hey @MaxwellDG, I'm not sure either I'll ask one of the MMI team if they can help support

@georgewrmarshall
Copy link
Contributor

Hey @MaxwellDG, could you update the snapshots on this PR yarn jest ui/components/app/confirm-page-container/confirm-page-container-header --updateSnapshot should do it

@MaxwellDG MaxwellDG force-pushed the update/picker-network branch from 2c7cc2e to 27904b0 Compare October 29, 2023 22:26
@MaxwellDG
Copy link
Author

@georgewrmarshall Could I get some feedback on what's missing here? I could be wrong, but from looking at the vast majority of PRs, it seems like some of the e2e tests are broken. Is there something I could be doing to improve this? I'd like to move on to updating many of the other issues that require component switching but I'd like to ensure this is done correctly first.

@georgewrmarshall
Copy link
Contributor

Hey @MaxwellDG, we are dealing with some flakey e2e tests at the moment but the team is working on a fix. Apologies I realize this is frustrating and I appreciate your patience. Your other PRs LGTM. Once develop is passing that's usually a good sign that you can update this PR and it should pass.

@MaxwellDG
Copy link
Author

Hey @MaxwellDG, we are dealing with some flakey e2e tests at the moment but the team is working on a fix. Apologies I realize this is frustrating and I appreciate your patience. Your other PRs LGTM. Once develop is passing that's usually a good sign that you can update this PR and it should pass.

Okay thanks for the update. I'll check in periodically then and we'll get it going when develop is ready.

@MaxwellDG MaxwellDG closed this Dec 6, 2023
@MaxwellDG MaxwellDG deleted the update/picker-network branch December 6, 2023 19:51
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants