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, 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
Unknown Object (File)
Oct 15 2024, 6:01 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 ↗(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.