Page MenuHomePhabricator

[web] introduce UserProfileModal component
ClosedPublic

Authored by ginsu on Oct 8 2023, 11:52 PM.
Tags
None
Referenced Files
F3521264: D9410.id32061.diff
Mon, Dec 23, 2:47 AM
F3521263: D9410.id32048.diff
Mon, Dec 23, 2:47 AM
F3521262: D9410.id31770.diff
Mon, Dec 23, 2:47 AM
F3519614: D9410.id.diff
Sun, Dec 22, 10:43 PM
Unknown Object (File)
Fri, Dec 20, 11:58 PM
Unknown Object (File)
Fri, Dec 20, 12:49 PM
Unknown Object (File)
Sat, Nov 30, 4:01 AM
Unknown Object (File)
Nov 14 2024, 7:26 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.