Page MenuHomePhabricator

[native] introduce Avatar component
ClosedPublic

Authored by ginsu on Mar 12 2023, 11:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 5:00 AM
Unknown Object (File)
Thu, Mar 28, 8:18 AM
Unknown Object (File)
Thu, Mar 28, 8:18 AM
Unknown Object (File)
Thu, Mar 28, 8:18 AM
Unknown Object (File)
Thu, Mar 28, 8:18 AM
Unknown Object (File)
Thu, Mar 28, 8:18 AM
Unknown Object (File)
Thu, Mar 28, 8:17 AM
Unknown Object (File)
Thu, Mar 28, 8:13 AM
Subscribers

Details

Summary

Introduced the Avatar component. For now, the avatar component only handles emoji avatars; however, in a subsequent diff we will extend this component to handle rendering image avatars.

This diff won't be landed until the avatars stack is all accepted


Depends on D7053

Linear Task: https://linear.app/comm/issue/ENG-3139/build-avatar-component

Test Plan

Please look at the screenshots to see the avatars rendered

Profile:

Screenshot 2023-03-13 at 1.43.52 AM.png (1×1 px, 401 KB)

Large:

Screenshot 2023-03-13 at 1.25.59 AM.png (1×952 px, 730 KB)

Small:

Screenshot 2023-03-13 at 1.26.07 AM.png (1×1 px, 733 KB)

Micro:

Screenshot 2023-03-13 at 1.24.29 AM.png (1×1 px, 740 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This is fine, but in order to unblock ENS-3302 we need to get to the point where we're actually rendering images here I think

This revision is now accepted and ready to land.Mar 13 2023, 9:34 AM

rebase after switching up diff stack order

use new avatar types introduced by @atul

This revision was automatically updated to reflect the committed changes.