Page MenuHomePhabricator

[web] Introduce placeholder `EmojiAvatarSelectionModal`
ClosedPublic

Authored by atul on Jun 20 2023, 12:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 24, 4:16 AM
Unknown Object (File)
Sun, Sep 22, 8:41 PM
Unknown Object (File)
Sun, Sep 22, 8:41 PM
Unknown Object (File)
Sat, Sep 21, 5:51 PM
Unknown Object (File)
Fri, Sep 20, 7:34 PM
Unknown Object (File)
Fri, Sep 20, 7:34 PM
Unknown Object (File)
Fri, Sep 20, 7:34 PM
Unknown Object (File)
Sun, Sep 15, 7:04 AM
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
Branch
arcpatch-D8265 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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