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

UX: Multichain: Added TokenList Component #17859

Merged
merged 56 commits into from
Mar 23, 2023
Merged

Conversation

NidhiKJha
Copy link
Member

@NidhiKJha NidhiKJha commented Feb 22, 2023

This PR is to add the TokenList component.
Fixes #336

My approach for this PR is:

  1. Create a separate folder for the Multichain tasks.
  2. I have further divided the TokenList component into three sub-components:
  • Create the TokenList in the Multichain folder
  • Create the banner for import
  • Create the import button group
  1. These components are then assembled in the AssetListItem component.

Figma design

Screenshots

Screenshot 2023-03-08 at 11 54 32 PM

Manual Testing

In Extension

  • Checkout the Assets Tab UI.

For Storybook

`

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@NidhiKJha NidhiKJha added the DO-NOT-MERGE Pull requests that should not be merged label Feb 22, 2023
@metamaskbot
Copy link
Collaborator

Builds ready [f355194]
Page Load Metrics (1555 ± 39 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint93144114147
domContentLoaded1347165115157234
load1347170715558239
domInteractive1347165115157134
Bundle size diffs
  • background: 0 bytes
  • ui: 0 bytes
  • common: 0 bytes

@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.

@NidhiKJha NidhiKJha force-pushed the redesign-storybook branch 2 times, most recently from 8b5366e to 2d37906 Compare February 27, 2023 20:08
@NidhiKJha NidhiKJha changed the title (WIP 👷‍♀️ ) Added TokenList Component Added TokenList Component Feb 27, 2023
@NidhiKJha NidhiKJha marked this pull request as ready for review February 27, 2023 20:09
@NidhiKJha NidhiKJha requested a review from a team as a code owner February 27, 2023 20:09
@NidhiKJha NidhiKJha requested review from Gtonizuka, darkwing and georgewrmarshall and removed request for Gtonizuka February 27, 2023 20:09
@NidhiKJha NidhiKJha added team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead team-extension-client and removed DO-NOT-MERGE Pull requests that should not be merged labels Feb 27, 2023
@NidhiKJha NidhiKJha marked this pull request as draft February 27, 2023 20:36
@NidhiKJha NidhiKJha added the DO-NOT-MERGE Pull requests that should not be merged label Feb 27, 2023
@darkwing
Copy link
Contributor

A few thoughts:

  1. This looks great!
  2. Should we move the "Import" and "Refresh" pieces to a separate component, so that this is solely the token listing?
  3. Since the plan is to replace what's existing, can we get real data structures in this story so we can simply replace the old when it's time?

@darkwing
Copy link
Contributor

giphy (15)

@metamaskbot
Copy link
Collaborator

Builds ready [8e25b86]
Page Load Metrics (1505 ± 42 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint93134110115
domContentLoaded1257158614627335
load1257166215058742
domInteractive1256158614627335
Bundle size diffs
  • background: 0 bytes
  • ui: 3913 bytes
  • common: 0 bytes

@NidhiKJha NidhiKJha changed the title Added TokenList Component UX: Multichain: Added TokenList Component Mar 2, 2023
@NidhiKJha NidhiKJha marked this pull request as ready for review March 2, 2023 13:30
@NidhiKJha NidhiKJha requested a review from kumavis as a code owner March 2, 2023 13:30
@NidhiKJha NidhiKJha added IA/NAV and removed DO-NOT-MERGE Pull requests that should not be merged labels Mar 2, 2023
@NidhiKJha NidhiKJha requested a review from darkwing March 2, 2023 13:31
@metamaskbot
Copy link
Collaborator

Builds ready [ca3245c]
Page Load Metrics (1711 ± 65 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint963301374722
domContentLoaded14372051166014871
load15232052171113665
domInteractive14372051166014871
Bundle size diffs
  • background: 0 bytes
  • ui: 8424 bytes
  • common: 0 bytes

@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2023

Codecov Report

Merging #17859 (79102f1) into develop (cedef12) will increase coverage by 0.03%.
The diff coverage is 76.92%.

@@             Coverage Diff             @@
##           develop   #17859      +/-   ##
===========================================
+ Coverage    64.43%   64.46%   +0.03%     
===========================================
  Files          912      915       +3     
  Lines        35413    35484      +71     
  Branches      9053     9080      +27     
===========================================
+ Hits         22816    22874      +58     
- Misses       12597    12610      +13     
Impacted Files Coverage Δ
ui/components/app/asset-list/asset-list.js 65.22% <45.00%> (-12.20%) ⬇️
ui/components/app/token-cell/token-cell.js 77.27% <66.67%> (-6.06%) ⬇️
...ain/detected-token-banner/detected-token-banner.js 92.86% <92.86%> (ø)
...hain-token-list-item/multichain-token-list-item.js 93.33% <93.33%> (ø)
...-import-token-link/multichain-import-token-link.js 94.12% <94.12%> (ø)

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [a0d09bd]
Page Load Metrics (1687 ± 56 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint103164127178
domContentLoaded15102029165911354
load15372029168711656
domInteractive15102029165911354
Bundle size diffs
  • background: 0 bytes
  • ui: 12152 bytes
  • common: 0 bytes

**/
@import 'account-list-item/index';
@import 'account-list-menu/index';
@import 'multichain-token-list-item/multichain-token-list-item';
Copy link
Member Author

Choose a reason for hiding this comment

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

@darkwing I have removed index.scss and replaced it with multichain-components.scss to keep in sync with how we have named the default global scss files in component-library, app and ui folder.

@metamaskbot
Copy link
Collaborator

Builds ready [79102f1]
Page Load Metrics (1647 ± 70 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint97165115168
domContentLoaded14581950162012058
load14582111164714770
domInteractive14581950162012058
Bundle size diffs
  • background: 0 bytes
  • ui: 14287 bytes
  • common: 0 bytes

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'm not sure if this is part of the scope but the network badge still shows an ethereum logo when it is on the Arbitrum One network?? We should do some work to fix up our network images so they are consistent across the app.

networks.mov

@kevinghim kevinghim removed the IA/NAV label Mar 22, 2023
@kevinghim
Copy link
Contributor

@NidhiKJha NidhiKJha merged commit fcfb8a8 into develop Mar 23, 2023
@NidhiKJha NidhiKJha deleted the redesign-storybook branch March 23, 2023 10:08
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants