Page MenuHomePhabricator

[native] Render SIWE restore panel
ClosedPublic

Authored by tomek on Thu, Dec 5, 9:01 AM.
Tags
None
Referenced Files
F3445192: D14085.id46222.diff
Wed, Dec 11, 3:11 AM
Unknown Object (File)
Tue, Dec 10, 2:43 PM
Unknown Object (File)
Mon, Dec 9, 8:27 AM
F3420154: siwe-loading.mov
Fri, Dec 6, 6:53 AM
F3414807: siwe-panel.mov
Thu, Dec 5, 9:03 AM
Subscribers
None

Details

Summary

Show a panel where users can restore their account using SIWE.

https://linear.app/comm/issue/ENG-8203/implement-navigation-flow-for-new-siwe-log-in

Depends on D14084

Test Plan

Click the restore with SIWE button and check if the panel is shown correctly.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek created this revision.

Use a constant

tomek added inline comments.
native/account/restore-prompt-screen.react.js
144 ↗(On Diff #46223)

We can also animate this value if we think the design direction is correct. I didn't want to introduce animations so that the rough idea could be discussed first, without too much investment.

tomek requested review of this revision.Thu, Dec 5, 9:26 AM

Can you explain why you implemented this backdrop approach, instead of the approach we're using in ConnectEthereum?

Can you explain why you implemented this backdrop approach, instead of the approach we're using in ConnectEthereum?

First of all, the Restore with Ethereum button doesn't have a loading state. Using the same approach that is used for the primary button while handling the loading state could be problematic, because of the white background. Also, while the backdrop is present, Restore with password button isn't interactive - which makes some sense, but on the other hand, we could give a user a way of stopping the SIWE panel from opening.

If we want to use a similar behavior to the ConnectEthereum, we would need to figure out how the loading state should look like. An alternative might be to use the same styling for the Ethereum button as we use for the password button.

Tested how the alternative approach looks like:

I think it looks OK and we can keep it.

Use the button's loading state

native/account/prompt-button.react.js
51 ↗(On Diff #46244)

After switching between button variants I realized that the SIWE button height is a little higher than the other variants.

This revision is now accepted and ready to land.Sat, Dec 7, 1:09 PM
This revision was automatically updated to reflect the committed changes.