Page MenuHomePhabricator

[web] Introduce add friends modal
ClosedPublic

Authored by tomek on Jun 21 2022, 6:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 11:55 PM
Unknown Object (File)
Mon, Dec 16, 11:55 PM
Unknown Object (File)
Mon, Dec 16, 11:55 PM
Unknown Object (File)
Sun, Dec 15, 4:48 PM
Unknown Object (File)
Sun, Dec 15, 4:48 PM
Unknown Object (File)
Sun, Dec 15, 4:48 PM
Unknown Object (File)
Thu, Dec 12, 7:47 AM
Unknown Object (File)
Mon, Dec 9, 5:19 PM

Details

Summary

This modal allows adding new friends. Only users that do not have a relationship with viewer or are blocked are displayed as potential friends.

friends_mdoal.png (1×1 px, 135 KB)

Depends on D4311

Test Plan

Render the modal and check if sending new friend requests work correctly.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/settings/relationship/add-friends-modal.react.js
17 ↗(On Diff #13627)

We don't want to show friends - because they are already added.

18–19 ↗(On Diff #13627)

Users that blocked the viewer should first unblock the viewer to receive a request

20 ↗(On Diff #13627)

If the request is already sent, there's no sense to send it again

21 ↗(On Diff #13627)

We can consider displaying users that sent a request, but it is already possible to accept the request from friend-list-modal

tomek requested review of this revision.Jun 21 2022, 6:15 AM

Personally, I think that users should appear "symmetrically" (one row per user) whether or not they've been "added." I think that the pill design makes sense in the context of the NewThread screen, but not sure about this modal.


I'm guessing that this is what we have on Figma/have decided on, but think we should definitely re-visit the designs for this screen when we get the chance.

This revision is now accepted and ready to land.Jun 21 2022, 2:39 PM

Agree with @atul – this makes sense for NewThread on web/mobile, a bit less sense for AddFriendsModal on native, and even less sense here (where we have plenty of screen real estate). With that said, I agree we should proceed here – it's easier to use the same design everywhere, and we need to move forward on reaching feature parity with native here

I created a task https://linear.app/comm/issue/ENG-1292/revisit-new-friends-modal-design-on-web where we can discuss what a better design might look like. The current solution is a result of non-existent designs for this feature and consistency with other places.

This revision was automatically updated to reflect the committed changes.