Page MenuHomePhabricator

[native] implement screen after secondary device is connected
ClosedPublic

Authored by kamil on Thu, Dec 12, 11:10 AM.
Tags
None
Referenced Files
F3714195: D14149.id46384.diff
Wed, Jan 8, 8:04 AM
F3714186: D14149.id.diff
Wed, Jan 8, 8:04 AM
F3714184: D14149.diff
Wed, Jan 8, 8:04 AM
Unknown Object (File)
Sun, Jan 5, 2:03 AM
Unknown Object (File)
Sat, Jan 4, 7:41 PM
Unknown Object (File)
Sat, Dec 28, 12:37 AM
Unknown Object (File)
Sat, Dec 28, 12:35 AM
Unknown Object (File)
Fri, Dec 27, 6:50 PM
Subscribers
None

Details

Summary

ENG-9959.

The final screen when adding a secondary device succeeded. There is no option to go back because it could be strange for the user to back to the connecting screen.

In ENG-9968 there is an example of how this looks like

IMG_4848.PNG (1×828 px, 46 KB)

Depends on D14116

Test Plan

Navigate to screen

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
native/account/qr-auth/qr-auth-navigator.react.js
57

The alternative is to use headerShown: false, but then we'd need to add SafeAreaView with top edge because RegistrationContainer has only the bottom - not sure which is preferred.

If SafeAreaView is better, just wrap what is in SecondaryDeviceConnected in SafeAreaView or make RegistrationContainer configurable?

kamil published this revision for review.Thu, Dec 12, 11:57 AM
ashoat requested changes to this revision.Thu, Dec 12, 12:17 PM

Rahul has a graphic almost ready for this! We can either amend it here, or handle it later if it takes a bit before he can deliver the final version.

Requesting changes because the whitespace at the top of the screen looks strange. My first instinct is to find a way to avoid it, but I'm not sure if that will also look weird because the header appears in a different place for this screen vs. the prior one. Curious for @kamil's and @tomek's takes

native/account/qr-auth/qr-auth-navigator.react.js
57

I think it's visually strange that this screen has so much unused whitespace at the top

Is there a way to avoid that?

native/account/qr-auth/secondary-device-connected.react.js
49

Let's go with:

Your new device has been successfully registered!

This revision now requires changes to proceed.Thu, Dec 12, 12:17 PM
native/account/qr-auth/qr-auth-navigator.react.js
57

I think it might be helpful to see a video of a transition from a screen with a back button to this one. We can compare this design with a solution where the header is placed higher (by disabling a header completely, not just the left part of it).

kamil requested review of this revision.Mon, Dec 16, 2:45 AM
kamil added inline comments.
native/account/qr-auth/qr-auth-navigator.react.js
57

Solution 1, implemented here with headerLeft: null
Screen:

IMG_4788 (1) (1).PNG (1×828 px, 41 KB)

Flow:

Solution 2, what I described above with headerShown: false and making RegistrationContainer configurable to support top as a safe area:
Screen:

IMG_4823.PNG (1×828 px, 41 KB)

Flow:

Requesting review to get feedback before updating the code

Thanks for the videos, @kamil. I guess I'm leaning towards the existing code now... the whitespace seems less confusing in the video. Curious for @kamil and @tomek's takes, but if you guys agree we can keep it as-is.

Before landing, please make sure to adjust the copy I pointed out in an inline comment!

This revision is now accepted and ready to land.Mon, Dec 16, 6:03 AM

Thanks for the videos, @kamil. I guess I'm leaning towards the existing code now... the whitespace seems less confusing in the video. Curious for @kamil and @tomek's takes, but if you guys agree we can keep it as-is.

Agree, keeping it as is makes sense to me.