HomePhabricator
Diffusion Comm c603bb315131

[web] introduce UserProfileMenu

Tags
None
Referenced Files
F810095: Screenshot 2023-10-12 at 4.27.54 AM.png
Oct 16 2023, 10:58 PM
File Not Attached
F810096: Screenshot 2023-10-12 at 4.28.23 AM.png
Oct 16 2023, 10:58 PM
File Not Attached
F810097: Screenshot 2023-10-12 at 4.29.16 AM.png
Oct 16 2023, 10:58 PM
File Not Attached
F810094: Screenshot 2023-10-12 at 4.27.28 AM.png
Oct 16 2023, 10:58 PM
File Not Attached
F810093: Screenshot 2023-10-12 at 4.26.26 AM.png
Oct 16 2023, 10:58 PM
File Not Attached
F810091: Screenshot 2023-10-12 at 4.26.04 AM.png
Oct 16 2023, 10:58 PM
File Not Attached
F810090: Screenshot 2023-10-12 at 4.25.33 AM.png
Oct 16 2023, 10:58 PM
File Not Attached
F810089: Screenshot 2023-10-12 at 4.24.25 AM.png
Oct 16 2023, 10:58 PM
File Not Attached
Subscribers
None

Description

[web] introduce UserProfileMenu

Summary:
This diff introduces the UserProfileMenu component. This component handles showing the correct relationship action options based on what the current relationship status of the viewer and the profile is.

Here are the figma designs:

When user is a friend:

Screenshot 2023-10-12 at 4.24.25 AM.png (1×1 px, 284 KB)

When viewer is blocked (couldn't find native designs but the concept is the same here):

Screenshot 2023-10-12 at 4.25.33 AM.png (1×1 px, 215 KB)

When user is blocked by viewer:

Screenshot 2023-10-12 at 4.26.04 AM.png (1×1 px, 292 KB)

When there is no relationship status between user/viewer, or there is a pending friend request in either direction:

Screenshot 2023-10-12 at 4.26.26 AM.png (1×1 px, 275 KB)

Part of https://linear.app/comm/issue/ENG-5225/introduce-userprofilemenu

Depends on D9456

Test Plan:
Please see the screenshots below. Also confirmed that the actions worked as expected

When user is a friend:

Screenshot 2023-10-12 at 4.27.28 AM.png (1×3 px, 956 KB)

When viewer is blocked:

Screenshot 2023-10-12 at 4.29.16 AM.png (1×3 px, 950 KB)

When user is blocked by viewer:

Screenshot 2023-10-12 at 4.28.23 AM.png (1×3 px, 950 KB)

When there is no relationship status between user/viewer, or there is a pending friend request in either direction:

Screenshot 2023-10-12 at 4.27.54 AM.png (1×3 px, 949 KB)

Reviewers: atul, inka

Reviewed By: atul

Subscribers: ashoat, tomek, wyilio

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

Details

Provenance
ginsuAuthored on Oct 11 2023, 5:02 PM
Reviewer
atul
Differential Revision
D9457: [web] introduce UserProfileMenu
Parents
rCOMM532584f5e9dd: [web] introduce user-profile as a menu variant
Branches
Unknown
Tags
Unknown