Skip to content

feat: Base Wallet Details Screen #16344

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

Merged
merged 16 commits into from
Jun 20, 2025
Merged

feat: Base Wallet Details Screen #16344

merged 16 commits into from
Jun 20, 2025

Conversation

owencraston
Copy link
Contributor

@owencraston owencraston commented Jun 12, 2025

Description

This PR implements the basic wallet details screen. This feature is hidden behind a remote feature flag. This screen shows all the accounts that are tied to a wallet along with some other information...

  • wallet name
  • Total wallet balance (aggregate balances of all accounts in the wallet). This is not the aggregate balance of all your accounts, just the accounts that belong to the wallet
  • List of accounts that belong to that wallet with...
    • the account name
    • account icon (Blockies or Jazzicon)
    • individual account balance

Designs:

Screenshot 2025-06-17 at 9 43 37 PM

Out of scope:

  • Social recovery
  • SRP
  • Adding an account
    These changes will be made in subsequent PRs.

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/MUL-211

Manual testing steps

  1. This feature is hidden behind a remote feature flag so to enable it you will either need to use a proxy (message me for details) or have this function return true as well as this one.
  2. Create a wallet
  3. Open the account list.
  4. Since the multi-chain accounts state 1 feature flag is enabled, you should see your accounts grouped by wallet
  5. click on the blue details icon beside the wallet name
  6. it should take you to the wallet details screen
  7. this screen should contain your wallet name, total wallet balance, and a list of your accounts in that wallet with their individual balances.
  8. Click on an account should take you to that accounts details screen
  9. clicking back from that screen should take you back to wallet details
  10. Clicking back on the wallet details screen should take you back to the accounts list.

Screenshots/Recordings

Before

N/A

After

Untitled.mov

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

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.

@owencraston owencraston force-pushed the feat/mul-211 branch 2 times, most recently from 6910d83 to 8ce35f5 Compare June 13, 2025 16:18
@owencraston owencraston changed the base branch from main to MUL-199-update-account-list-to-support-grouping June 13, 2025 16:18
@owencraston owencraston force-pushed the feat/mul-211 branch 2 times, most recently from 1f47f66 to 629b58a Compare June 17, 2025 18:45
@owencraston owencraston changed the title Feat/mul 211 feat: Base Wallet Details Screen Jun 17, 2025
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 86.00000% with 14 lines in your changes missing coverage. Please review.

Please upload report for BASE (MUL-199-update-account-list-to-support-grouping@a423183). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...Accounts/WalletDetails/BaseWalletDetails/index.tsx 80.00% 1 Missing and 5 partials ⚠️
app/components/Nav/App/App.tsx 50.00% 2 Missing ⚠️
.../EvmAccountSelectorList/EvmAccountSelectorList.tsx 86.66% 1 Missing and 1 partial ⚠️
...MultichainAccounts/WalletDetails/WalletDetails.tsx 33.33% 2 Missing ⚠️
...Accounts/WalletDetails/BaseWalletDetails/styles.ts 80.00% 0 Missing and 1 partial ⚠️
...nAccounts/WalletDetails/hooks/useWalletBalances.ts 95.23% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                                Coverage Diff                                 @@
##             MUL-199-update-account-list-to-support-grouping   #16344   +/-   ##
==================================================================================
  Coverage                                                   ?   71.24%           
==================================================================================
  Files                                                      ?     2620           
  Lines                                                      ?    55896           
  Branches                                                   ?     8614           
==================================================================================
  Hits                                                       ?    39825           
  Misses                                                     ?    13558           
  Partials                                                   ?     2513           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@owencraston owencraston marked this pull request as ready for review June 17, 2025 21:04
@owencraston owencraston requested review from a team as code owners June 17, 2025 21:04
@owencraston owencraston added the Run Smoke E2E Requires smoke E2E testing label Jun 17, 2025
Copy link
Contributor

github-actions bot commented Jun 17, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: b425a93
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f8485e13-2394-4f28-8960-bd10ccce2446

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Base automatically changed from MUL-199-update-account-list-to-support-grouping to main June 17, 2025 21:16
@owencraston owencraston requested a review from a team as a code owner June 17, 2025 21:16
@owencraston owencraston requested a review from a team June 17, 2025 21:16
@owencraston owencraston force-pushed the feat/mul-211 branch 4 times, most recently from 2b3be09 to af55b17 Compare June 18, 2025 12:00
@owencraston owencraston added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Jun 18, 2025
Copy link
Contributor

github-actions bot commented Jun 18, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: af55b17
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/a26f7e99-ab4e-46e7-ae0c-3a8a023fbd95

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

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

code looks good in general! will follow up with some manual testing

@owencraston owencraston added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Jun 18, 2025
Copy link
Contributor

github-actions bot commented Jun 18, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: e9a8d85
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/eb649f2f-5f48-4221-9a43-c40d15dec265

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

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

Code looks good, will do some manual testing

@owencraston owencraston enabled auto-merge June 19, 2025 20:16
Copy link
Contributor

@MarioAslau MarioAslau left a comment

Choose a reason for hiding this comment

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

Looks good!

@gantunesr
Copy link
Member

I was not able to fully test the wallet details feature because of a few bugs that are not related to this PR, the first related to when you activate the feature flag for multichain accounts. I see that the list is empty and because of this bug I can't verify that the balances are properly calculated,

Screenshot 2025-06-19 at 9 07 47 PM
RPReplay_Final1750381517.MP4

The second bug is some UI/UX issues when looking into the account details, here's a video showing some of these issues,

RPReplay_Final1750375388.MP4

Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

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

The changes on this PR looks good but we have to fix the bugs related to the other features

@owencraston owencraston added this pull request to the merge queue Jun 20, 2025
Merged via the queue into main with commit e47d97f Jun 20, 2025
49 of 56 checks passed
@owencraston owencraston deleted the feat/mul-211 branch June 20, 2025 01:32
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2025
@metamaskbot metamaskbot added the release-7.51.0 Issue or pull request that will be included in release 7.51.0 label Jun 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.51.0 Issue or pull request that will be included in release 7.51.0 Run Smoke E2E Requires smoke E2E testing team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants