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)
Sat, Nov 9, 7:50 AM
Unknown Object (File)
Sun, Oct 27, 12:43 AM
Unknown Object (File)
Sun, Oct 20, 8:42 PM
Unknown Object (File)
Oct 16 2024, 11:22 PM
Unknown Object (File)
Oct 15 2024, 12:30 AM
Unknown Object (File)
Oct 14 2024, 12:24 AM
Unknown Object (File)
Oct 14 2024, 12:24 AM
Unknown Object (File)
Oct 14 2024, 12:24 AM

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
Lint Not Applicable
Unit
Tests Not Applicable

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.