Page MenuHomePhabricator

[web] Introduce placeholder `EmojiAvatarSelectionModal`
ClosedPublic

Authored by atul on Jun 20 2023, 12:54 PM.
Tags
None
Referenced Files
F2109212: D8265.id28063.diff
Tue, Jun 25, 3:38 PM
F2105310: D8265.id28022.diff
Tue, Jun 25, 6:56 AM
Unknown Object (File)
Sat, Jun 15, 5:26 PM
Unknown Object (File)
Thu, Jun 13, 2:14 AM
Unknown Object (File)
Wed, Jun 12, 9:13 AM
Unknown Object (File)
Mon, Jun 3, 10:56 PM
Unknown Object (File)
Sun, Jun 2, 9:06 PM
Unknown Object (File)
Sun, Jun 2, 9:05 PM
Subscribers

Details

Summary

Introduce placeholder EmojiAvatarSelectionModal component. Modal opens when "Select emoji" MenuItem in EditUserAvatarMenu is clicked.

Layout/styling/functionality will be introduced incrementally in subsequent diffs.


Depends on D8264

Test Plan

Opens and looks about as expected:

03509c.png (256×1 px, 20 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Jun 20 2023, 1:14 PM

(This really should have been named something like EmojiUserAvatarSelectionModal since it's UserAvatar-specific. Common parts will be factored out when I get to ThreadAvatars, but for now it's pretty user avatar-specific)

Looks good, just left some style preferences inline

web/avatars/edit-user-avatar-menu.react.js
27 ↗(On Diff #27911)

Would personally prefer directly destructuring pushModal here

29–31 ↗(On Diff #27911)

Could use shorthand here

web/avatars/emoji-avatar-selection-modal.react.js
10 ↗(On Diff #27911)

Would personally prefer directly destructuring popModal here

This revision is now accepted and ready to land.Jun 21 2023, 10:39 AM

rebase before addressing @rohan's feedback