Page MenuHomePhabricator

[web] render user avatars in thread memebers modal
ClosedPublic

Authored by ginsu on Mar 27 2023, 4:04 PM.
Tags
None
Referenced Files
F3522832: D7207.id24625.diff
Mon, Dec 23, 7:38 AM
F3522737: D7207.id24609.diff
Mon, Dec 23, 7:33 AM
F3521459: D7207.diff
Mon, Dec 23, 3:36 AM
Unknown Object (File)
Sat, Dec 7, 8:20 PM
Unknown Object (File)
Sat, Dec 7, 8:20 PM
Unknown Object (File)
Sat, Dec 7, 8:20 PM
Unknown Object (File)
Nov 8 2024, 9:53 AM
Unknown Object (File)
Nov 8 2024, 9:53 AM
Subscribers

Details

Summary

render user avatars in thread memebers modal. This includes the members modal and the add members modal

This diff won't be landed until avatars is given the green light to be released

Depends on D7206

Test Plan

Please view the screenshots below to see the changes I made:

Before:

Members Modal:

Screenshot 2023-03-27 at 7.03.37 PM.png (2×3 px, 799 KB)

Add members modal:

Screenshot 2023-03-27 at 7.03.39 PM.png (2×3 px, 741 KB)

After:

Members modal:

Screenshot 2023-03-27 at 7.03.50 PM.png (2×3 px, 818 KB)

Add members modal:

Screenshot 2023-03-27 at 7.03.52 PM.png (2×3 px, 763 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Mar 27 2023, 4:20 PM
web/modals/components/add-members-item.react.js
41–44

Don't think this useMemo is currently necessary... does getAvatarForUser ever create a new object?

web/modals/threads/members/member.react.js
146–149

Don't think this useMemo is currently necessary... does getAvatarForUser ever create a new object?

(Please address @ashoat's feedback before landing)

This revision is now accepted and ready to land.Mar 28 2023, 1:21 PM

replace Avatar with UserAvatar