metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

New token details page

Open bergeron opened this issue 1 year ago • 17 comments

Description

Initial implementation of the new token details page. Introduces a chart.js dependency for graphing asset prices.

Related issues

Figma: https://www.figma.com/file/TfVzSMJA8KwpWX8TTWQ2iO/MMASSETS-15%3A-Asset-list-and-details?node-id=1719%3A48736&mode=dev

Manual testing steps

TODO

Screenshots/Recordings

Before

After

https://github.com/MetaMask/metamask-extension/assets/3500406/7c865444-d56c-4075-976a-b87783a613c7

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.

bergeron avatar Jan 12 '24 04:01 bergeron

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.

github-actions[bot] avatar Jan 12 '24 04:01 github-actions[bot]

@metamaskbot update-policies

bergeron avatar Jan 12 '24 04:01 bergeron

No policy changes

metamaskbot avatar Jan 12 '24 05:01 metamaskbot

Builds ready [d2e4fb0]
Page Load Metrics (1172 ± 95 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint852721376129
domContentLoaded9179486230
load8101578117219895
domInteractive9179486230
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 14 Bytes (0.00%)
  • common: 1.1 KiB (0.02%)

metamaskbot avatar Jan 12 '24 05:01 metamaskbot

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@kurkle/[email protected] None 0 79.2 kB kurkle
npm/[email protected] None +1 5.01 MB chartjs-ci
npm/[email protected] Transitive: environment +8 5.48 MB dangreen

View full report↗︎

socket-security[bot] avatar Jan 12 '24 19:01 socket-security[bot]

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

socket-security[bot] avatar Jan 12 '24 19:01 socket-security[bot]

@metamaskbot update-policies

bergeron avatar Feb 05 '24 17:02 bergeron

Policies updated

metamaskbot avatar Feb 05 '24 17:02 metamaskbot

ron-swanson-parks-and-rec

darkwing avatar Feb 05 '24 19:02 darkwing

Digging it! Big ups

eriknson avatar Feb 05 '24 20:02 eriknson

@metamaskbot update-policies

bergeron avatar Feb 08 '24 08:02 bergeron

Policies updated

metamaskbot avatar Feb 08 '24 08:02 metamaskbot

@metamaskbot update-policies

bergeron avatar Feb 08 '24 19:02 bergeron

Policies updated

metamaskbot avatar Feb 08 '24 19:02 metamaskbot

@metamaskbot update-policies

bergeron avatar Feb 08 '24 19:02 bergeron

Policies updated

metamaskbot avatar Feb 08 '24 19:02 metamaskbot

First of all, I cannot tell you how awesome this is. Soooooo good!

A few suggestions:

Title

SCR-20240209-mrhv

I think we should add a title here. Maybe "All Tokens" next to the "<" or something to that effect?

Fullscreen Button Overlap

SCR-20240209-mtgg

There's a weird overlap in the buttons in full screen. Maybe add excess padding to the content when in fullscreen view?

darkwing avatar Feb 09 '24 20:02 darkwing

A few suggestions:

New fullscreen look after design feedback.

image

The header does fill with your balance, if you scroll far enough to hide the main balance section:

Screenshot 2024-02-15 at 3 23 39 PM

But I will see what design thinks about the emptiness when balance is not shown.

bergeron avatar Feb 15 '24 23:02 bergeron

@metamaskbot update-policies

bergeron avatar Mar 12 '24 00:03 bergeron

Policies updated

metamaskbot avatar Mar 12 '24 00:03 metamaskbot

Builds ready [4c55af7]
Page Load Metrics (1092 ± 395 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint723651316531
domContentLoaded1093352713
load6219901092823395
domInteractive1093352713
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 715 Bytes (0.02%)
  • ui: 276.09 KiB (3.89%)
  • common: 1.14 KiB (0.02%)

metamaskbot avatar Mar 13 '24 07:03 metamaskbot

@metamaskbot update-policies

bergeron avatar Mar 14 '24 04:03 bergeron

No policy changes

metamaskbot avatar Mar 14 '24 04:03 metamaskbot

Codecov Report

Attention: Patch coverage is 9.35673% with 310 lines in your changes are missing coverage. Please review.

Project coverage is 68.27%. Comparing base (9671603) to head (7f470eb).

Files Patch % Lines
ui/pages/asset/components/asset-chart.tsx 5.48% 69 Missing :warning:
ui/pages/asset/components/asset-v2.tsx 1.75% 56 Missing :warning:
ui/pages/asset/components/token-asset-v2.tsx 3.57% 27 Missing :warning:
ui/pages/asset/useHistoricalPrices.ts 4.17% 23 Missing :warning:
ui/pages/asset/components/asset-price.tsx 12.00% 22 Missing :warning:
ui/pages/asset/components/native-asset-v2.tsx 4.76% 20 Missing :warning:
...ges/asset/components/buttons/asset-swap-button.tsx 5.56% 17 Missing :warning:
ui/pages/asset/components/asset-header.tsx 6.25% 15 Missing :warning:
...ges/asset/components/buttons/asset-send-button.tsx 6.25% 15 Missing :warning:
ui/pages/asset/util.ts 26.32% 14 Missing :warning:
... and 7 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #22508      +/-   ##
===========================================
- Coverage    68.74%   68.27%   -0.46%     
===========================================
  Files         1128     1141      +13     
  Lines        43544    43873     +329     
  Branches     11643    11765     +122     
===========================================
+ Hits         29930    29954      +24     
- Misses       13614    13919     +305     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 14 '24 05:03 codecov[bot]