Page MenuHomePhabricator

[web] introduce useSortedENSResolvedUsers
ClosedPublic

Authored by ginsu on Jan 31 2024, 11:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 3, 3:33 PM
Unknown Object (File)
Sat, Sep 14, 2:33 AM
Unknown Object (File)
Sat, Sep 14, 2:33 AM
Unknown Object (File)
Sat, Sep 14, 2:33 AM
Unknown Object (File)
Sat, Sep 14, 2:32 AM
Unknown Object (File)
Sat, Sep 14, 2:32 AM
Unknown Object (File)
Aug 29 2024, 9:29 PM
Unknown Object (File)
Aug 13 2024, 6:15 AM
Subscribers

Details

Summary

Got some feedback in D10822 about sorting the users AFTER resolving ENS names. Noticed we needed to make this change in two places in AddUsersList + we will probably want to reuse this logic for the chat members list, so created this hook to factor out the shared logic

Test Plan

Please see the screenshots below

Before:

Screenshot 2024-01-31 at 2.30.29 PM.png (2×3 px, 798 KB)

Screenshot 2024-01-31 at 2.30.41 PM.png (2×3 px, 781 KB)

After:

Screenshot 2024-01-31 at 2.30.58 PM.png (2×3 px, 781 KB)

Screenshot 2024-01-31 at 2.30.48 PM.png (2×3 px, 777 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
web/settings/relationship/user-list-hooks.js
14 ↗(On Diff #36442)

nit Resloved -> Resolved

This revision is now accepted and ready to land.Jan 31 2024, 11:48 AM
This revision was landed with ongoing or failed builds.Jan 31 2024, 12:36 PM
This revision was automatically updated to reflect the committed changes.