Page MenuHomePhabricator

[web/native] Use useSearchUsers for the friends list
ClosedPublic

Authored by rohan on Nov 14 2023, 9:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 3:29 PM
Unknown Object (File)
Wed, Nov 13, 2:52 PM
Unknown Object (File)
Wed, Nov 13, 2:05 PM
Unknown Object (File)
Wed, Nov 13, 12:56 PM
Unknown Object (File)
Wed, Nov 13, 12:09 PM
Unknown Object (File)
Wed, Nov 13, 11:57 AM
Unknown Object (File)
Wed, Nov 13, 11:54 AM
Unknown Object (File)
Wed, Nov 13, 10:22 AM
Subscribers

Details

Summary

useSearchUsers is used to include user search results from the server (outside of the user's local userStore during the 'composing a new chat' flow on both web and native.

The code looks a little like the code in AddUsersList on web and RelationshipList on native when viewing your friends. Because of this, this diff is really useful in getting rid of a 'one off' search logic
and instead using a shared search helper. This will make it easier to do the next part of this stack (updating search helpers to lookup addresses from a typed out ENS name).

Addresses ENG-5490

Depends on D9883

Test Plan

Confirmed that searching for users outside of the user's local userStore still worked in these two search experiences. Made sure to compare the search experience to how it is on production right now as well to make sure no regressions were introduced.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rohan held this revision as a draft.
rohan published this revision for review.Nov 15 2023, 7:33 AM

Attempt rebase after Flow stack

This diff has been up for almost two weeks, and all three of the reviewers appear to be completely ignoring it.

This is unacceptable. Diffs should be reviewed within a single business day. Deferring a review for a couple days can happen sometimes, but two weeks is far too long.

If you are unable to review the diff you should resign from the review. Leaving it hanging like this is frankly being rude to your colleague. @atul, @inka, @ginsu – please review this diff ASAP, and please make sure that you do better in the future.

This diff has been up for almost two weeks, and all three of the reviewers appear to be completely ignoring it.

I did look at this diff a couple times, but deferred giving it a review because changes were requested on D9883 and I figured I'd review after the feedback there was addressed. Should've checked back on it more regularly... will review now.

sorry for not getting to this sooner!

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