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
Choose accounts refactor #13039
Choose accounts refactor #13039
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. |
Builds ready [ccfa4a8]Page Load Metrics (1015 ± 42 ms)
highlights:storybook
|
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.
UI looks good. There are a few rogue values here that don't adhere to the 8px grid convention but I think this is the UI that I myself tried to refactor and had a very hard time as the different components effect the layout of different pages. So for the sake of keeping things consistent. I'm happy to approve.
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.
Very well done, just a few nits!
flex: 0; | ||
margin-top: 36px; | ||
width: 100%; | ||
padding-left: 15px; |
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.
Let's use padding-inline-start
and padding-inline-end
for better RTL support.
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 can use margin-inline-start
and margin-inline-end
elsewhere in this file.
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.
Pushed up some changes, please let me know if that works.
One thing that's not apart of this PR but might be a good change is if we use sentence case for "Connect with MetaMask" in |
Builds ready [f52d5a7]Page Load Metrics (977 ± 16 ms)
highlights:storybook
|
Builds ready [f52d5a7]Page Load Metrics (1071 ± 35 ms)
highlights:storybook
|
f52d5a7
to
91e7c4b
Compare
Builds ready [91e7c4b]Page Load Metrics (1134 ± 30 ms)
highlights:storybook
|
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.
Looks like isn't receiving the correct data after the refactor.
Testing on E2E Test Dapp
Tested on uniwap as well
…n choose account story
…title, removed redundant account list story
This reverts commit ccfa4a8.
…ctType to targetSubjectMetadata
91e7c4b
to
ab59b4a
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.
lgtm!
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!
Builds ready [2d38d99]Page Load Metrics (1167 ± 51 ms)
highlights:storybook
|
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!
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
Wow, really excellent work @hmalik88 ! |
Builds ready [262edb2]Page Load Metrics (1232 ± 62 ms)
highlights:storybook
|
Related to: Snaps Installation UI issue
Background Updates: Fixes to
subjectMetadata
were made to include theorigin
. An "unknown" subject type was added and integrated into theuseOriginMetadata
hook. Background updates are being made in this PR instead of a separate one, because in interest of time, the changes are relevant to this UI and because there aren't a significant number of changes.UI Explanation: Flask designs (Figma) updated the
ChooseAccount
screen to have a bolded title and black subtitle. The account list was refactored into its own component (AccountList
) in an effort to tidy upChooseAccount
. A wrapper div was added around the account list to prevent storybook from collapsing the div.ChooseAccount
was also converted to a functional component. Following pics are of the collapsed account list in storybook before the wrapper, a before of it functioning and after of when the styles/text were updated:Note:
ChooseAccount
will be updated in the future to change the choose accounts text to conditionally end with either "site" or "snap" when snaps supportseth_requestAccounts
.Manual testing steps:
ChooseAccount
yarn start
, load the extension into chrome, navigate to a dapp (i.e. Aave) and connect to MetaMask.