-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Conversation
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. |
There was a problem hiding this 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?
ui/components/multichain/account-list-menu/account-list-menu.js
Outdated
Show resolved
Hide resolved
ui/components/multichain/account-list-menu/account-list-menu.js
Outdated
Show resolved
Hide resolved
9e10574
to
38800ad
Compare
38800ad
to
89f31b0
Compare
Builds ready [89f31b0]
Page Load Metrics (950 ± 364 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention:
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
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
ui/components/multichain/account-list-menu/account-list-menu.js
Outdated
Show resolved
Hide resolved
Builds ready [16c317e]
Page Load Metrics (755 ± 353 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@@ -246,6 +246,9 @@ | |||
"addIPFSGateway": { | |||
"message": "Add your preferred IPFS gateway" | |||
}, | |||
"addImportAccount": { | |||
"message": "Add account or hardware wallet" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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. |
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
Pre-merge reviewer checklist