Page MenuHomePhabricator

[web] introduce UserProfileModal component
ClosedPublic

Authored by ginsu on Oct 8 2023, 11:52 PM.
Tags
None
Referenced Files
F2902632: D9410.diff
Sat, Oct 5, 6:30 PM
Unknown Object (File)
Sat, Sep 14, 5:00 PM
Unknown Object (File)
Sat, Sep 14, 5:00 PM
Unknown Object (File)
Sat, Sep 14, 5:00 PM
Unknown Object (File)
Sat, Sep 14, 4:59 PM
Unknown Object (File)
Thu, Sep 12, 8:47 AM
Unknown Object (File)
Sun, Sep 8, 7:25 AM
Unknown Object (File)
Sun, Sep 8, 12:31 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.