-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
wallet-ext: disconnect dapp popup #4714
wallet-ext: disconnect dapp popup #4714
Conversation
💳 Wallet Extension has been built, you can download the packaged extension here: https://github.com/MystenLabs/sui/actions/runs/3085205245#artifacts |
@@ -76,6 +76,7 @@ | |||
}, | |||
"dependencies": { | |||
"@mysten/sui.js": "workspace:*", | |||
"@popperjs/core": "^2.11.6", |
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.
Popper has a successor called Floating UI, which I'd use if you can instead: https://floating-ui.com/
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.
Oh cool looks fancy! I am not familiar and I have limited time today, do you think changing it in another PR would be ok? (I will create an issue to track it)
wallet/src/background/Permissions.ts
Outdated
@@ -224,6 +224,16 @@ class Permissions { | |||
); | |||
} | |||
|
|||
public async clear(origin: 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.
Clear kind of implies removing all, maybe call this delete?
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.
Done
5bdfb7a
to
7c2dc9c
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.
@pchrysochoidis don't have opinion's on the floater ui Jordan speaks of. It did remind me of the need to add a gentle animation to the popup that appears on tap in header.
Could we add a gentle (300ms) "fade-in + grow" animation for the the Disconnect ui on-click?
Yeah I remember our discussion but I think we decided that we can go without the animation first and add them as a next step. I will add an issue to track this. Is this ok with you @mystie711? (Merge this without animations now and improve it with another PR) |
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.
Code LGTM. If you have time to add the animation, feel free to do so, but also feel free to punt to the next release if it'll take too long.
I will postpone it to the next release, to make sure we have the feature in this release and continue with the improvements. |
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.
Agreed to tackle animation in a separate task with @pchrysochoidis .
7c2dc9c
to
f59265b
Compare
f59265b
to
d41c6ef
Compare
Screen.Recording.2022-09-19.at.09.11.19.mov
closes #4696