Page MenuHomePhabricator

[web] switch like button to react button on message tooltip
ClosedPublic

Authored by ginsu on Jan 26 2023, 12:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 12:18 PM
Unknown Object (File)
Tue, Oct 29, 8:22 PM
Unknown Object (File)
Tue, Oct 29, 8:22 PM
Unknown Object (File)
Tue, Oct 29, 8:22 PM
Unknown Object (File)
Tue, Oct 29, 8:22 PM
Unknown Object (File)
Tue, Oct 29, 8:20 PM
Unknown Object (File)
Oct 7 2024, 12:01 PM
Unknown Object (File)
Sep 30 2024, 6:51 AM
Subscribers

Details

Summary

Introduced the emoji keyboard and make it render whenever renderEmojiKeyboard in the tooltip context is set to true. Also modified useMessageReactAction to return a react button instead of a like button. Will be working on improving the positioning of the emoji keyboard in a subsequent diff


Depends on D6401
Linear Task: ENG-2778

Test Plan

Please watch the video below to see a demo of how the new react button works

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Looks good, left a couple of notes inline

web/chat/message-tooltip.react.js
116–117 ↗(On Diff #21386)

Looks like this pattern is used a couple times in the codebase. Wonder if it would make sense to factor out? Outside the scope of this diff though.

119 ↗(On Diff #21386)

The naming here is kind of confusing because it doesn't get trigged "onClick" anymore?

Do you think there's a more descriptive name we can use here?

147–150 ↗(On Diff #21386)

Personally prefer this sort of thing to keep things symmetric, but up to you.

152–159 ↗(On Diff #21386)
This revision is now accepted and ready to land.Jan 27 2023, 1:30 PM