Page MenuHomePhabricator

[web] introduce UserProfileActionButtons
ClosedPublic

Authored by ginsu on Oct 9 2023, 10:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 5, 7:05 PM
Unknown Object (File)
Thu, Jul 4, 4:31 AM
Unknown Object (File)
Wed, Jul 3, 2:41 PM
Unknown Object (File)
Wed, Jul 3, 2:32 AM
Unknown Object (File)
Tue, Jul 2, 5:40 PM
Unknown Object (File)
Sun, Jun 30, 5:04 PM
Unknown Object (File)
Mon, Jun 24, 2:56 AM
Unknown Object (File)
Mon, Jun 24, 2:56 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #31818)

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.