HomePhabricator
Diffusion Comm 7676f85478bb

[web] introduce avatar component

Description

[web] introduce avatar component

Summary:
Introduced Avatar for web. Right now the component only handles emoji and image avatars but in a follow up diff when I can better test ENS avatars I will extend the component to support ens as well

I didn't include the avatars feature flag for the web avatars rendering work because as of now the feature flag service tomek built is only available on native, and I figured since we are close to having avatars released and this avatar component considers both emoji and images, building an extra feature flag service for the web avatars would have not been a good use of time. However, if we disagree with my sentiment, I can add the feature flag to web as well. With all this said though, I won't land the rendering work in subsequent diffs until avatars is good to go

Test Plan:
Please see the screenshots to see the avatars rendered on the web client:

Emoji Avatars:

micro, small, and large:

Screenshot 2023-03-27 at 9.49.46 AM.png (2×4 px, 1 MB)

profile:

Screenshot 2023-03-27 at 9.49.51 AM.png (2×4 px, 933 KB)

Image Avatars:

micro, small, and large:

Screenshot 2023-03-27 at 9.50.26 AM.png (2×4 px, 1 MB)

profile:

Screenshot 2023-03-27 at 9.50.29 AM.png (2×4 px, 968 KB)

Reviewers: ashoat, atul

Reviewed By: atul

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D7192

Details

Provenance
ginsuAuthored on Apr 4 2023, 11:13 AM
Reviewer
atul
Differential Revision
D7192: [web] introduce avatar component
Parents
rCOMM5d11ac060ca3: Remove Mhea from staff list
Branches
Unknown
Tags
Unknown