Page MenuHomePhabricator

[web] introduce UserProfileActionButtons
ClosedPublic

Authored by ginsu on Oct 9 2023, 10:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 14, 5:00 PM
Unknown Object (File)
Sat, Sep 14, 5:00 PM
Unknown Object (File)
Sat, Sep 14, 5:00 PM
Unknown Object (File)
Sat, Sep 14, 4:59 PM
Unknown Object (File)
Fri, Sep 13, 2:07 AM
Unknown Object (File)
Sep 2 2024, 3:53 PM
Unknown Object (File)
Aug 17 2024, 4:30 PM
Unknown Object (File)
Aug 17 2024, 7:20 AM
Subscribers

Details

Summary

Based on the designs, the action buttons for the user profiles on web are going to be rendered pretty differently based on what the user relationship status is. In an effort to not oversaturate UserProfile, I am going to create this separate component that UserProfiles can call and render

For context:

Screenshot 2023-10-09 at 1.07.25 PM.png (952×1 px, 198 KB)

Screenshot 2023-10-09 at 1.07.36 PM.png (626×832 px, 115 KB)

Screenshot 2023-10-09 at 1.07.30 PM.png (524×922 px, 105 KB)

Part of https://linear.app/comm/issue/ENG-4967/introduceport-userprofilerelationshipbutton

Depends on D9412

Test Plan

flow and confirmed that there were no regressions with user profiles on web.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Oct 9 2023, 10:23 AM
web/modals/user-profile/user-profile-action-buttons.react.js
18–20

Doesn't hurt to memoize (we got a SVG inside)

This revision is now accepted and ready to land.Oct 9 2023, 2:07 PM

address @atul's comments + rebase before landing

This revision was automatically updated to reflect the committed changes.