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: Multichain: Add Account or Hardware Wallet button #21081

Merged
merged 9 commits into from
Oct 2, 2023

Conversation

darkwing
Copy link
Contributor

Description

Replaces the "Add / Import / Hardware" links with a single button that takes the user to another quick modal to add, import, or connect a hardware wallet.

Manual testing steps

_1. Open the account menu
_2. Click the "Add account or hardware wallet" button
_3. Click each option, ensure the correct modal displays
_4. Click "back" on each screen, ensure it goes back logically in the nested cycle

Screenshots/Recordings

Screen.Recording.2023-09-27.at.12.24.02.PM.mov

Related issues

_Fixes https://github.com/MetaMask/MetaMask-planning/issues/1374

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I’ve indicated what issue this PR is linked to: Fixes #???
  • I’ve included tests if applicable.
  • I’ve documented any added code.
  • I’ve applied the right labels on the PR (see labeling guidelines).
  • 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.

@darkwing darkwing requested a review from a team as a code owner September 27, 2023 17:36
@darkwing darkwing added team-extension-ux DEPRECATED: please use "team-wallet-ux" label instead needs-ux-ds-review labels Sep 27, 2023
@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.

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.

Looking really good. Left some comments. Question: I think we should create a separate component for the New modal with add, import and hardware wallet buttons as we are gonna need this modal in connetions flow as well https://www.figma.com/file/LDlI7yjKBNIY60MtQv9QS0/Amon-Hen%2FV1?type=design&node-id=4878-849206&mode=dev. wdyt?

@darkwing darkwing force-pushed the multichain-account-menu-button branch 3 times, most recently from 9e10574 to 38800ad Compare September 28, 2023 19:24
@darkwing darkwing force-pushed the multichain-account-menu-button branch from 38800ad to 89f31b0 Compare September 28, 2023 19:33
@metamaskbot
Copy link
Collaborator

Builds ready [89f31b0]
Page Load Metrics (950 ± 364 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint831901162612
domContentLoaded712281093216
load821845950758364
domInteractive712281093216
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 467 Bytes (0.01%)
  • common: 104 Bytes (0.00%)

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

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

Comparison is base (05241ee) 68.49% compared to head (89f31b0) 68.50%.
Report is 9 commits behind head on develop.

❗ Current head 89f31b0 differs from pull request most recent head 9d3f911. Consider uploading reports for the commit 9d3f911 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #21081      +/-   ##
===========================================
+ Coverage    68.49%   68.50%   +0.01%     
===========================================
  Files         1010     1010              
  Lines        40398    40406       +8     
  Branches     10788    10792       +4     
===========================================
+ Hits         27669    27677       +8     
  Misses       12729    12729              
Files Coverage Δ
.../multichain/account-list-menu/account-list-menu.js 80.22% <75.68%> (+1.91%) ⬆️

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

@darkwing darkwing requested a review from NidhiKJha September 29, 2023 01:46
NidhiKJha
NidhiKJha previously approved these changes Sep 29, 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.

LGTM!

@metamaskbot
Copy link
Collaborator

Builds ready [16c317e]
Page Load Metrics (755 ± 353 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint8313299157
domContentLoaded6911388147
load801768755734353
domInteractive6911388147
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 437 Bytes (0.01%)
  • common: 104 Bytes (0.00%)

@@ -246,6 +246,9 @@
"addIPFSGateway": {
"message": "Add your preferred IPFS gateway"
},
"addImportAccount": {
"message": "Add account or hardware wallet"
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like a very long string to have inside of a button just want to make sure that it's been signed off by content cc @coreyjanssen

Copy link
Contributor

Choose a reason for hiding this comment

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

I did sign off on the text but am now doubting it! It seemed like the best option to encompass what lies behind the CTA but perhaps Add account or wallet would suffice? Wdyt?

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

@darkwing darkwing merged commit 4468168 into develop Oct 2, 2023
9 checks passed
@darkwing darkwing deleted the multichain-account-menu-button branch October 2, 2023 15:42
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2023
@metamaskbot metamaskbot added the release-11.3.0 Issue or pull request that will be included in release 11.3.0 label Oct 2, 2023
@coreyjanssen
Copy link
Contributor

What exactly is a custodial account? If this is something we're using in lieu of Account Snaps/Snap account, I don't know that it's the best option. Additionally, it doesn't follow our standards for sentence case and should probably have a relevant icon as with the rest of the menu.

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.

7 participants