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

chore: Update asset-list to Typescript, remove PropTypes #26952

Merged
merged 32 commits into from
Sep 16, 2024

Conversation

gambinish
Copy link
Contributor

@gambinish gambinish commented Sep 5, 2024

Description

I'm working on Token sorting, and since I was in the area, I took the opportunity to update the components I was touching to Typescript. This PR handles those changes, and I'll work on the actual sorting logic in a separate branch that I will merge with this one.

Open in GitHub Codespaces

Related issues

First step of: https://consensyssoftware.atlassian.net/browse/MMASSETS-356

Manual testing steps

Nothing should be different visually or functionally. I left a comment on a suspicious snapshot test where I can't explain the diff, other than the original snapshot not being accurate based on the mocks 👈 no longer relevant.

Screenshots/Recordings

Pre-merge author checklist

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 Sep 5, 2024

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.

@gambinish gambinish changed the title Feat/mmassets 356 sort import tokens extension chore: Update asset-list to Typescript, remove PropTypes Sep 5, 2024
Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 86.95652% with 3 lines in your changes missing coverage. Please review.

Project coverage is 69.96%. Comparing base (9459903) to head (aa566e4).

Files with missing lines Patch % Lines
ui/components/app/assets/asset-list/asset-list.tsx 83.33% 1 Missing ⚠️
ui/components/app/assets/token-list/token-list.tsx 50.00% 1 Missing ⚠️
...nts/multichain/token-list-item/token-list-item.tsx 92.31% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #26952   +/-   ##
========================================
  Coverage    69.95%   69.96%           
========================================
  Files         1441     1441           
  Lines        50099    50102    +3     
  Branches     14007    14012    +5     
========================================
+ Hits         35046    35049    +3     
  Misses       15053    15053           

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

@metamaskbot
Copy link
Collaborator

Builds ready [5c5b22e]
Page Load Metrics (1802 ± 92 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint28023181656474227
domContentLoaded15602302177217986
load15692317180219192
domInteractive12184403517
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -1.27 KiB (-0.02%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [6fd9aa1]
Page Load Metrics (1974 ± 93 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint24025021899431207
domContentLoaded16772421195519593
load17192429197419493
domInteractive148438168
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -1.3 KiB (-0.02%)
  • common: 0 Bytes (0.00%)

sahar-fehri
sahar-fehri previously approved these changes Sep 16, 2024
@sahar-fehri
Copy link
Contributor

LGTM! Thnx! 🚀

@@ -150,6 +169,7 @@ const AssetList = ({ onClickAsset, showTokensLinks }) => {
{detectedTokens.length > 0 &&
!isTokenDetectionInactiveOnNonMainnetSupportedNetwork && (
<DetectedTokensBanner
className=""
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we make className not required if passing it an empty string is the solution?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will need to converted detected-token-banner.js to Typescript as well in order to do this properly. Do you think it's worth it to also handle this refactor in this PR?

NidhiKJha
NidhiKJha previously approved these changes Sep 16, 2024
salimtb
salimtb previously approved these changes Sep 16, 2024
Copy link

@metamaskbot
Copy link
Collaborator

Builds ready [822caf4]
Page Load Metrics (1476 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint13421731148011857
domContentLoaded13351681146210852
load13431731147611354
domInteractive136132157
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -1.3 KiB (-0.02%)
  • common: 0 Bytes (0.00%)

Copy link
Member

@NidhiKJha NidhiKJha left a comment

Choose a reason for hiding this comment

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

LGTM

@metamaskbot
Copy link
Collaborator

Builds ready [aa566e4]
Page Load Metrics (1776 ± 78 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23621791646486234
domContentLoaded15292111174715172
load15372128177616278
domInteractive167737178
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -1.3 KiB (-0.02%)
  • common: 0 Bytes (0.00%)

@gambinish gambinish merged commit 8550afc into develop Sep 16, 2024
78 checks passed
@gambinish gambinish deleted the feat/mmassets-356_sort-import-tokens-extension branch September 16, 2024 15:07
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 16, 2024
@metamaskbot metamaskbot added release-12.5.0 Issue or pull request that will be included in release 12.5.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.0 labels Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.5.0 Issue or pull request that will be included in release 12.5.0 team-assets
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants