Page MenuHomePhabricator

[native] Make EditUserAvatar component conditionally navigate to registration screens
ClosedPublic

Authored by ashoat on May 31 2023, 1:18 PM.
Tags
None
Referenced Files
F3410038: D8047.id27366.diff
Wed, Dec 4, 7:14 PM
F3409870: D8047.id27325.diff
Wed, Dec 4, 7:02 PM
F3408599: D8047.diff
Wed, Dec 4, 12:01 PM
Unknown Object (File)
Tue, Nov 12, 1:28 PM
Unknown Object (File)
Sun, Nov 10, 1:59 PM
Unknown Object (File)
Sat, Nov 9, 9:27 AM
Unknown Object (File)
Fri, Nov 8, 3:32 AM
Unknown Object (File)
Thu, Nov 7, 2:42 PM
Subscribers

Details

Summary

For the registration flow, we have to render different screens for camera and emoji selection.

This diff makes it possible to use EditUserAvatar in both contexts, by conditionally deciding which screen to navigate to based on EditUserAvatarContext state.

Depends on D8046

Test Plan

This was tested in combination with the rest of the stack. I tested:

  1. ENS flow, both when user has an ENS avatar and when they don't
  2. Setting an emoji avatar
  3. Setting an image avatar via camera
  4. Setting an image avatar via media library
  5. Tested avatar update flow after being logged in to make sure I didn't regress anything

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable