-
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
Add switch to connected account alert #8532
Conversation
|
bd14414
to
ad5ba5c
Compare
Builds ready [ad5ba5c]
Page Load Metrics (658 ± 25 ms)
|
353e19d
to
5305132
Compare
I need to check on a couple of more things before this is ready to review:
Edit: Both of these have been addressed. This PR is now ready for review again. |
5305132
to
096654c
Compare
Builds ready [096654c]
Page Load Metrics (680 ± 17 ms)
|
Screenshots:Disregard the scrollbar in these two screenshots - that was removed in a separate PR (#8547)Multiple accounts: One account: |
Builds ready [151c2de]
Page Load Metrics (689 ± 26 ms)
|
151c2de
to
6b320b7
Compare
6b320b7
to
e5ef83a
Compare
Builds ready [e5ef83a]
Page Load Metrics (605 ± 10 ms)
|
e5ef83a
to
72d6500
Compare
Builds ready [72d6500]
Page Load Metrics (650 ± 15 ms)
|
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.
One small design feedback - looks like there is too much left/right padding on the input (making it inconsistently aligned with the title and buttons).
Otherwise, LGTM!
Should this have the "don't show this again" functionality? |
Nope! Though I'm considering updating this PR to include it before merging, now that #8550 is pretty close to being merged. |
72d6500
to
f581cb3
Compare
Builds ready [f581cb3]
Page Load Metrics (635 ± 14 ms)
|
f581cb3
to
2c019b9
Compare
Builds ready [624dfa8]
Page Load Metrics (617 ± 12 ms)
|
Builds ready [0a16313]
Page Load Metrics (742 ± 52 ms)
|
After discussing this with @rachelcope , the copy for both the single and multiple-account cases has been updated. The alert has also been updated to omit the dropdown if there is just a single account. |
Builds ready [bff2cac]
Page Load Metrics (724 ± 25 ms)
|
Add alert suggesting that the user switch to a connected account. This alert is displayed when the popup is opened over an active tab that is connected to some account, but not the current selected account. The user can choose to switch to a connected account, or dismiss the alert. This alert is only shown once per account switch. So if the user repeatedly opens the popup on a dapp without switching accounts, it'll only be shown the first time. A checkbox allowing the user to dismiss the alert permanently will be added in a subsequent PR.
The "Switch to connceted" alert is now set as "shown" after the "unconnected account" alert has been shown. This is to prevent the user from being shown two very similar alerts in a short span of time.
The alert has been updated to omit the dropdown when there is just a single connected account. The copy for both the single and multiple account states has also been updated.
bff2cac
to
ad5ee94
Compare
Builds ready [ad5ee94]
Page Load Metrics (580 ± 50 ms)
|
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!
Add alert suggesting that the user switch to a connected account. This alert is displayed when the popup is opened over an active tab that is connected to some account, but not the current selected account. The user can choose to switch to a connected account, or dismiss the alert.
This alert is only shown once per account switch. So if the user repeatedly opens the popup on a dapp without switching accounts, it'll only be shown the first time.
A checkbox allowing the user to dismiss the alert permanently will be added in a subsequent PR.