Page MenuHomePhabricator

[web] introduce UserProfileModal component
ClosedPublic

Authored by ginsu on Oct 8 2023, 11:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 4, 10:36 PM
Unknown Object (File)
Mon, Jul 1, 8:47 AM
Unknown Object (File)
Sun, Jun 30, 4:22 PM
Unknown Object (File)
Sat, Jun 29, 11:40 PM
Unknown Object (File)
Thu, Jun 27, 1:35 AM
Unknown Object (File)
Mon, Jun 24, 2:55 AM
Unknown Object (File)
Mon, Jun 24, 2:55 AM
Unknown Object (File)
Mon, Jun 24, 2:55 AM
Subscribers

Details

Summary

As a followup to introducing the user profile component, we should also introduce its containing component, which will be a mobile. Just like UserProfileBottomSheet this compnent will select the userInfo based on the userID and handle any containing component specific features (like onClose, etc)

https://linear.app/comm/issue/ENG-4964/introduce-user-profile-modal-component

Depends on D9409

Test Plan

Please see the demo video below

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

web/modals/user-profile/user-profile-modal.react.js
26 ↗(On Diff #31770)

I plan to make some tweaks to improve the Modal api. I will address this and those other improvements in subsequent diffs

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka.
ginsu requested review of this revision.Oct 9 2023, 12:09 AM
atul added inline comments.
web/modals/user-profile/user-profile-modal.react.js
24–29 ↗(On Diff #31770)

Can we wrap in useMemo

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

address @atul's comments + rebase before landing

This revision was automatically updated to reflect the committed changes.