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
F2834976: D6402.diff
Sat, Sep 28, 12:26 PM
Unknown Object (File)
Fri, Sep 20, 1:09 AM
Unknown Object (File)
Thu, Sep 19, 8:47 AM
Unknown Object (File)
Thu, Sep 19, 8:47 AM
Unknown Object (File)
Thu, Sep 19, 8:47 AM
Unknown Object (File)
Thu, Sep 19, 8:47 AM
Unknown Object (File)
Thu, Sep 19, 8:42 AM
Unknown Object (File)
Wed, Sep 18, 9:26 PM
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

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

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

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

152–159
This revision is now accepted and ready to land.Jan 27 2023, 1:30 PM