HomePhabricator
Diffusion Comm c4c8db828ad9

[native] introduce UserProfileRelationshipButton

Tags
None
Referenced Files
F770478: Screenshot 2023-09-22 at 4.15.11 PM.png
Sep 29 2023, 12:10 PM
File Not Attached
F769117: Screenshot 2023-09-20 at 4.49.07 PM.png
Sep 29 2023, 12:10 PM
File Not Attached
F769113: Screen Recording 2023-09-21 at 2.11.46 PM.mov
Sep 29 2023, 12:10 PM
File Not Attached
F769112: Screen Recording 2023-09-21 at 2.10.10 PM.mov
Sep 29 2023, 12:10 PM
File Not Attached
F770483: Screenshot 2023-09-22 at 4.25.11 PM.png
Sep 29 2023, 12:10 PM
File Not Attached
F769082: Screenshot 2023-09-21 at 2.04.07 PM.png
Sep 29 2023, 12:10 PM
File Not Attached
F769081: Screenshot 2023-09-21 at 2.02.28 PM.png
Sep 29 2023, 12:10 PM
File Not Attached
F769080: Screenshot 2023-09-21 at 2.03.59 PM.png
Sep 29 2023, 12:10 PM
File Not Attached
Subscribers
None

Description

[native] introduce UserProfileRelationshipButton

Summary:
This diff introduces the UserProfileRelationshipButton component that will be rendered on a user profile. This button will be used to do relationship actions such as sending/withdrawing a friend request and accepting/rejecting a friend request between the viewer and the user of the profile

Figma designs:
Sending/withdrawing friend request:

Screenshot 2023-09-21 at 2.03.59 PM.png (1×1 px, 241 KB)

Accepting/rejecting friend request:

Screenshot 2023-09-21 at 2.02.28 PM.png (1×1 px, 183 KB)

Friends:

Screenshot 2023-09-21 at 2.04.07 PM.png (1×692 px, 109 KB)

block in either direction is active:

Screenshot 2023-09-22 at 4.25.11 PM.png (1×720 px, 124 KB)

Depends on D9252

Test Plan:
Please see the demo videos/screenshots below:

Sending/withdrawing friend request:

Accepting/rejecting friend request/friends:

anonymous user:

Screenshot 2023-09-20 at 4.49.07 PM.png (1×1 px, 750 KB)

block in either direction is active:

Screenshot 2023-09-22 at 4.15.11 PM.png (1×1 px, 732 KB)

Reviewers: atul, inka

Reviewed By: atul

Subscribers: kamil, ashoat, tomek

Differential Revision: https://phab.comm.dev/D9258

Details

Provenance
ginsuAuthored on Sep 3 2023, 3:28 PM
Reviewer
atul
Differential Revision
D9258: [native] introduce UserProfileRelationshipButton
Parents
rCOMM9761ffcc760f: [lib/native] introduce UserProfileMessageButton
Branches
Unknown
Tags
Unknown