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)
Sat, Dec 7, 12:17 AM
Unknown Object (File)
Fri, Dec 6, 12:24 PM
Unknown Object (File)
Mon, Dec 2, 3:37 PM
Unknown Object (File)
Nov 16 2024, 9:53 PM
Unknown Object (File)
Nov 16 2024, 9:00 AM
Unknown Object (File)
Nov 16 2024, 8:10 AM
Unknown Object (File)
Nov 14 2024, 9:26 AM
Unknown Object (File)
Nov 1 2024, 12:18 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
Lint Not Applicable
Unit
Tests Not Applicable

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