Page MenuHomePhabricator

[web] introduce UserProfileActionButtons
ClosedPublic

Authored by ginsu on Oct 9 2023, 10:05 AM.
Tags
None
Referenced Files
F3521273: D9431.id32066.diff
Mon, Dec 23, 2:47 AM
F3521272: D9431.id32051.diff
Mon, Dec 23, 2:47 AM
F3521271: D9431.id31818.diff
Mon, Dec 23, 2:47 AM
F3519615: D9431.id.diff
Sun, Dec 22, 10:43 PM
Unknown Object (File)
Mon, Dec 9, 6:34 PM
Unknown Object (File)
Nov 20 2024, 3:12 AM
Unknown Object (File)
Nov 16 2024, 11:41 PM
Unknown Object (File)
Nov 16 2024, 2:33 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.