Page MenuHomePhabricator

[web] Introduce placeholder `EmojiAvatarSelectionModal`
ClosedPublic

Authored by atul on Jun 20 2023, 12:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 4:43 AM
Unknown Object (File)
Thu, Nov 7, 2:26 PM
Unknown Object (File)
Sun, Nov 3, 12:32 PM
Unknown Object (File)
Sun, Nov 3, 12:32 PM
Unknown Object (File)
Sun, Nov 3, 12:32 PM
Unknown Object (File)
Sun, Nov 3, 12:32 PM
Unknown Object (File)
Sun, Nov 3, 12:32 PM
Unknown Object (File)
Sun, Nov 3, 12:32 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