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
F3280036: D6402.id21386.diff
Sat, Nov 16, 9:00 AM
F3278050: D6402.id21519.diff
Sat, Nov 16, 8:10 AM
Unknown Object (File)
Thu, Nov 14, 9:26 AM
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
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