Page MenuHomePhabricator

[web] Introduce `ThreadEmojiAvatarSelectionModal`
ClosedPublic

Authored by atul on Aug 17 2023, 1:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 9:09 AM
Unknown Object (File)
Mon, Oct 28, 2:14 PM
Unknown Object (File)
Mon, Oct 28, 1:45 PM
Unknown Object (File)
Mon, Oct 28, 1:45 PM
Unknown Object (File)
Mon, Oct 28, 1:45 PM
Unknown Object (File)
Mon, Oct 28, 1:45 PM
Unknown Object (File)
Mon, Oct 28, 1:45 PM
Unknown Object (File)
Mon, Oct 28, 1:43 PM
Subscribers

Details

Summary

Enables setting of emoji avatars on web. As of this diff all varieties of thread avatar can be set from web. We just need to make a few layout tweaks in ThreadSettingsModalGeneralTab in order to get this ready to ship.


Depends on D8855

Test Plan

Works as expected:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Aug 17 2023, 1:30 PM
atul edited the summary of this revision. (Show Details)
atul edited the test plan for this revision. (Show Details)

Not looking too closely

web/avatars/thread-emoji-avatar-selection-modal.react.js
38–40 ↗(On Diff #30046)

Do you really need async / await here? Can you just forward the promise? If not, can you update the Flow type for the props of EmojiAvatarSelectionModal so that it's flexible (eg. Promise<mixed>), and then forward the promise?

This revision is now accepted and ready to land.Aug 18 2023, 3:47 PM

Please address or respond to my comment before landing!

address feedback

web/avatars/thread-emoji-avatar-selection-modal.react.js
38–40 ↗(On Diff #30046)

Ah yeah we totally don't need async/await. Updated to address feedback.

This revision was landed with ongoing or failed builds.Aug 22 2023, 10:51 AM
This revision was automatically updated to reflect the committed changes.

Please address or respond to my comment before landing!

Yeah that was always the intention, that's why I didn't land w/ these:

bdd650.png (482×2 px, 160 KB)