Page MenuHomePhabricator

[web] render user avatars in typeahead tooltip
ClosedPublic

Authored by ginsu on Mar 27 2023, 4:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 6:00 AM
Unknown Object (File)
Thu, Mar 28, 7:58 AM
Unknown Object (File)
Thu, Mar 28, 7:58 AM
Unknown Object (File)
Thu, Mar 28, 7:58 AM
Unknown Object (File)
Thu, Mar 28, 7:58 AM
Unknown Object (File)
Thu, Mar 28, 7:58 AM
Unknown Object (File)
Thu, Mar 28, 7:51 AM
Unknown Object (File)
Mar 5 2024, 11:56 PM
Subscribers

Details

Summary

render user avatars in typeahead tooltip

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

Depends on D7207

Test Plan

Please view the screenshots to see the changes I made:

Before:

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

After:

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Mar 27 2023, 4:24 PM
web/utils/typeahead-utils.js
149 ↗(On Diff #24247)

This looks like a case where we would want to determine ENS avatars "downstream" of where getAvatarForUser is called. We can't use a hook in getTypeaheadTooltipActions, but we can use a hook here

(Please address @ashoat's feedback before landing)

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

replace Avatar with UserAvatar