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

fix: asset picker bug #25601

Merged
merged 2 commits into from
Jul 3, 2024
Merged

fix: asset picker bug #25601

merged 2 commits into from
Jul 3, 2024

Conversation

salimtb
Copy link
Contributor

@salimtb salimtb commented Jun 30, 2024

Description

the goal of this PR is to fix some v12.1 bugs related to balance display and asset picker modal:

  • The symbols no longer show for each list item
  • Blocked token symbols (e.g., BNB on Ethereum Mainnet) are no longer greyed out in the UI despite still being inert
  • Token names are not truncated
  • Token symbol is USD instead of ETH on the asset picker modal

Open in GitHub Codespaces

Related issues

Fixes: #25575

Manual testing steps

  1. Go to the wallet view and check crypto and fiat value for native token
  2. Select Ethereum Mainnet
  3. Go to Send page
  4. Click on destination asset picker
  5. Observe that symbols are not present and names are not truncated
  6. Search for "CHZ"
  7. Observe that it is not styled as a disabled button

Screenshots/Recordings

Before

After

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.

@salimtb salimtb requested a review from a team as a code owner June 30, 2024 12:01
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.

@salimtb salimtb force-pushed the fix-asset-picker-bug branch 2 times, most recently from b9f4d97 to 0e6c3e5 Compare June 30, 2024 12:07
@salimtb salimtb changed the title Fix asset picker bug fix: asset picker bug Jun 30, 2024
@salimtb salimtb added team-assets needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. labels Jun 30, 2024
@Jellyman447
Copy link

Approved

@metamaskbot
Copy link
Collaborator

Builds ready [c7eb509]
Page Load Metrics (137 ± 142 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint69164982411
domContentLoaded107927178
load411424137296142
domInteractive107927178
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.7 KiB (0.02%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.67%. Comparing base (ce3c57c) to head (90d8900).
Report is 5 commits behind head on develop.

Files Patch % Lines
...set-picker-amount/asset-picker-modal/AssetList.tsx 66.67% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25601      +/-   ##
===========================================
- Coverage    69.67%   69.67%   -0.00%     
===========================================
  Files         1366     1366              
  Lines        48226    48228       +2     
  Branches     13303    13305       +2     
===========================================
+ Hits         33599    33600       +1     
- Misses       14627    14628       +1     

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

Copy link
Contributor

@BZahory BZahory left a comment

Choose a reason for hiding this comment

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

Suggested a few changes. Please split up into commits and avoid creeping out of scope in the future

@salimtb salimtb force-pushed the fix-asset-picker-bug branch 2 times, most recently from d70d04f to 5a480a3 Compare July 2, 2024 10:11
@metamaskbot
Copy link
Collaborator

Builds ready [888d8fa]
Page Load Metrics (222 ± 219 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint70138104189
domContentLoaded96530147
load411603222455219
domInteractive96529147
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.68 KiB (0.02%)
  • common: 0 Bytes (0.00%)

@salimtb salimtb force-pushed the fix-asset-picker-bug branch 4 times, most recently from a6f1fc5 to d4ef349 Compare July 3, 2024 12:03
@metamaskbot
Copy link
Collaborator

Builds ready [5a523b4]
Page Load Metrics (69 ± 14 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint722821024321
domContentLoaded215427105
load51188693014
domInteractive215427105
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 72 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@salimtb salimtb requested a review from BZahory July 3, 2024 14:18
@@ -22,6 +23,7 @@ export default function Asset({
symbol,
decimalTokenAmount,
tooltipText,
showPercentage,
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this prop since this component is exclusive to the AssetPickerModal

Copy link

sonarcloud bot commented Jul 3, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [90d8900]
Page Load Metrics (319 ± 278 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint663971217134
domContentLoaded10102322211
load431871319579278
domInteractive10102322211
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 20 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@salimtb salimtb merged commit 92ea1c9 into develop Jul 3, 2024
73 checks passed
@salimtb salimtb deleted the fix-asset-picker-bug branch July 3, 2024 20:11
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2024
@metamaskbot metamaskbot added the release-12.2.0 Issue or pull request that will be included in release 12.2.0 label Jul 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. release-12.2.0 Issue or pull request that will be included in release 12.2.0 team-assets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: send page modal styling broken
5 participants