Page MenuHomePhabricator

[web] introduce UserProfileActionButtons
ClosedPublic

Authored by ginsu on Oct 9 2023, 10:05 AM.
Tags
None
Referenced Files
F3267099: D9431.id32066.diff
Sat, Nov 16, 2:33 AM
Unknown Object (File)
Thu, Nov 14, 7:26 AM
Unknown Object (File)
Thu, Nov 14, 7:26 AM
Unknown Object (File)
Thu, Nov 14, 7:26 AM
Unknown Object (File)
Thu, Nov 14, 7:25 AM
Unknown Object (File)
Thu, Nov 14, 7:08 AM
Unknown Object (File)
Oct 15 2024, 6:01 AM
Unknown Object (File)
Oct 15 2024, 6:01 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 ↗(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.