Page MenuHomePhabricator

[native] introduce Avatar component
ClosedPublic

Authored by ginsu on Mar 12 2023, 11:06 PM.
Tags
None
Referenced Files
F3360591: D7055.id23660.diff
Sun, Nov 24, 1:32 PM
F3359884: D7055.diff
Sun, Nov 24, 11:33 AM
Unknown Object (File)
Fri, Nov 22, 4:24 PM
Unknown Object (File)
Sun, Nov 10, 7:32 AM
Unknown Object (File)
Sun, Nov 10, 6:54 AM
Unknown Object (File)
Tue, Nov 5, 10:16 PM
Unknown Object (File)
Tue, Nov 5, 10:16 PM
Unknown Object (File)
Tue, Nov 5, 10:15 PM
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.