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: Display total fiat balance on home screen #20941

Merged
merged 6 commits into from
Sep 27, 2023
Merged

UX: Display total fiat balance on home screen #20941

merged 6 commits into from
Sep 27, 2023

Conversation

darkwing
Copy link
Contributor

@darkwing darkwing commented Sep 18, 2023

Explanation

Calculates and displays the total fiat value of a given account's native currency and tokens.

Screenshots/Screencaps

SCR-20230918-nvzn SCR-20230918-nyzh

Manual Testing Steps

  1. Look at an account with native currency and token balances
  2. See correct balance displayed above token list
  3. Switch chains using the network picker
  4. Ensure balance on L2 is correct

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.

@darkwing darkwing requested a review from a team as a code owner September 18, 2023 20:49
@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.

@darkwing darkwing added team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead needs-ux-ds-review labels Sep 18, 2023
vthomas13
vthomas13 previously approved these changes Sep 19, 2023
@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (48184fe) 68.40% compared to head (968a113) 68.42%.
Report is 45 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #20941      +/-   ##
===========================================
+ Coverage    68.40%   68.42%   +0.02%     
===========================================
  Files         1006     1006              
  Lines        40218    40235      +17     
  Branches     10758    10761       +3     
===========================================
+ Hits         27508    27529      +21     
+ Misses       12710    12706       -4     
Files Coverage Δ
shared/modules/conversion.utils.ts 81.82% <100.00%> (+1.49%) ⬆️
ui/components/app/token-list/token-list.js 100.00% <100.00%> (+27.27%) ⬆️
ui/selectors/selectors.js 86.75% <100.00%> (ø)
ui/components/app/asset-list/asset-list.js 81.63% <94.44%> (+6.63%) ⬆️
...ts/multichain/balance-overview/balance-overview.js 60.71% <66.67%> (+2.09%) ⬆️

... and 1 file with indirect coverage changes

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

@metamaskbot
Copy link
Collaborator

Builds ready [bd2361b]
Page Load Metrics (1530 ± 51 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint119170135157
domContentLoaded13691883153010751
load13691883153010751
domInteractive13691883153010751
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -142 Bytes (-0.00%)
  • common: 115 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.

Excellent!!

  • Checked with native balance
  • Checked with detected tokens and overall balance is correct

But we need the loading state here, it should not be removed

ui/components/app/asset-list/asset-list.js Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [cbcdef4]
Page Load Metrics (1991 ± 95 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1281961712010
domContentLoaded15332329199019895
load15332330199119995
domInteractive15332329199019895
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -93 Bytes (-0.00%)
  • common: 115 Bytes (0.00%)

NidhiKJha
NidhiKJha previously approved these changes Sep 22, 2023
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.

Awesome!!

vthomas13
vthomas13 previously approved these changes Sep 22, 2023
@darkwing darkwing dismissed stale reviews from vthomas13 and NidhiKJha via 9108e64 September 22, 2023 19:06
@metamaskbot
Copy link
Collaborator

Builds ready [9108e64]
Page Load Metrics (1530 ± 71 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint118178141188
domContentLoaded13552062152814369
load13562089153014871
domInteractive13552062152814369
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -81 Bytes (-0.00%)
  • common: 115 Bytes (0.00%)

NidhiKJha
NidhiKJha previously approved these changes Sep 26, 2023
@metamaskbot
Copy link
Collaborator

Builds ready [968a113]
Page Load Metrics (1694 ± 78 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1182081552713
domContentLoaded14771927169416378
load14771927169416378
domInteractive14771927169416378
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -81 Bytes (-0.00%)
  • common: 115 Bytes (0.00%)

@darkwing darkwing merged commit 78e5863 into develop Sep 27, 2023
9 checks passed
@darkwing darkwing deleted the fiat-balance branch September 27, 2023 18:16
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2023
@metamaskbot metamaskbot added the release-11.3.0 Issue or pull request that will be included in release 11.3.0 label Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.3.0 Issue or pull request that will be included in release 11.3.0 team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants