-
Notifications
You must be signed in to change notification settings - Fork 191
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
feat: new wallet flow first-class mipdish wallets #8610
base: develop
Are you sure you want to change the base?
Conversation
0d45a8b
to
4ccfe9f
Compare
0f6d46f
to
c562ee4
Compare
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.
Moved around
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.
Moved around, and added handling of first-class routes
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.
Moved around
@@ -127,8 +127,6 @@ export const SavedWalletsSection = ({ | |||
history.push(NativeWalletRoutes.Connect) | |||
}, [history]) | |||
|
|||
if (!nativeVaultsQuery.data?.length) return null |
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.
| ComponentWithAs<'svg', IconProps> | ||
// RFC-2397 | ||
| `data:image/${string}` |
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.
We don't really leverage the latter anywhere hence the null ternaries, but noticed we were setting the wallet to MM icon (as in, actual MM icon) in MetaMask connect, vs. the actual mipd wallet (MM or another), which was obviously wrong.
Setting the correct icon for sanity's sake required updating this type.
<Route path='/metamask/snap/install'> | ||
<SnapInstall /> | ||
</Route> | ||
<Route path='/metamask/snap/update'> |
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.
Actually, there is another change in addition to the first-class handling: /metamask/failure
handling is now unhandled, as we don't push to it anymore in <FirstClassBody />
/ <MipdBody />
.
The rationale is there is no need for an explicit pairing failure step, errors are handled within the body itself
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.
Moved around
Description
Adds support for the following "first-class" wallets:
Also, added a few cleanup/styling issues spotted by @NeOMakinG in #8594
Issue (if applicable)
Risk
Medium. As this is eventually going to replace the current wallet flow, test this as if it was hitting prod. Phantom, Coinbase and Keplr could be broken with the flag on.
Testing
Engineering
REACT_APP_FEATURE_NEW_WALLET_FLOW
flag onREACT_APP_FEATURE_NEW_WALLET_FLOW
flag offOperations
Screenshots (if applicable)
https://jam.dev/c/9e16855b-c50a-42f3-82ba-466c0543e2e7
https://jam.dev/c/3abe0f97-2373-4088-9e8b-ca6de794bb02