Page MenuHomePhabricator

[native] Introduce a password account restore screen
Needs ReviewPublic

Authored by tomek on Fri, Nov 29, 10:40 AM.

Details

Reviewers
kamil
angelika
Summary

On this screen a user can provide their credentials in order to restore their account.

restore-password.png (2×1 px, 101 KB)

Depends on D13907

Test Plan

Opened the screen and made sure it is displayed correctly.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This screen differs from the log out modal in two ways:

  1. It doesn't handle setActiveAlert. This function is called by the LogInPanel when an alert is shown. On the logged out modal side, this call results in setting a state that is then used when computing the keyboard height, that is used to determine a panel padding. On this screen we don't need to care about the keyboard height because we don't show a panel that has a position depending on the keyboard height.
  2. In the logged out modal, we're handling dismissing the LogInPanel by removing a password and adding it again. We do that because otherwise iOS would show a user an alert about saving the password. We can use this trick there because, in reality, we're staying on the same screen, so all the state can be kept. On this screen, we can't do that, and going back might result in the screen being unmounted. This means that showing this alert might be desirable.