Page MenuHomePhabricator

[web] introduce UserProfileModal component
ClosedPublic

Authored by ginsu on Oct 8 2023, 11:52 PM.
Tags
None
Referenced Files
F3762252: D9410.diff
Fri, Jan 10, 9:12 PM
Unknown Object (File)
Thu, Jan 9, 3:52 AM
Unknown Object (File)
Sun, Jan 5, 4:44 AM
Unknown Object (File)
Wed, Dec 25, 12:52 PM
Unknown Object (File)
Mon, Dec 23, 10:41 AM
Unknown Object (File)
Mon, Dec 23, 10:41 AM
Unknown Object (File)
Mon, Dec 23, 2:47 AM
Unknown Object (File)
Mon, Dec 23, 2:47 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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/modals/user-profile/user-profile-modal.react.js
26

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

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.