Page MenuHomePhabricator

[web] introduce reactions to inline sidebar
ClosedPublic

Authored by ginsu on Dec 5 2022, 5:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 7:55 PM
Unknown Object (File)
Apr 9 2024, 12:35 AM
Unknown Object (File)
Apr 9 2024, 12:35 AM
Unknown Object (File)
Apr 9 2024, 12:35 AM
Unknown Object (File)
Apr 9 2024, 12:35 AM
Unknown Object (File)
Apr 9 2024, 12:35 AM
Unknown Object (File)
Apr 9 2024, 12:35 AM
Unknown Object (File)
Apr 9 2024, 12:35 AM
Subscribers

Details

Summary

introduce reactions to inline sidebar. Right now, going with a temporary solution of just showing the number of likes right now, but in a subsequent diff will be extending this to show more information about the reaction message


Depends on D5812

Linear Task: ENG-2409

Test Plan

Please see the screenshot to see what "message likes" look like:

Screenshot 2022-12-05 at 9.03.09 PM.png (1×3 px, 835 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, tomek, rohan.
ginsu requested review of this revision.Dec 5 2022, 5:54 PM
ginsu edited the test plan for this revision. (Show Details)

add space between reaction and number

ginsu edited the summary of this revision. (Show Details)
web/chat/inline-sidebar.react.js
19 ↗(On Diff #19155)

At some point we should rename this to InlineEngagement to better reflect that it includes reactions

tomek requested changes to this revision.Dec 6 2022, 7:05 AM
tomek added inline comments.
web/chat/inline-sidebar.react.js
33–39 ↗(On Diff #19155)

The same issues like in D5813. Also we might consider extracting common logic to lib, but it doesn't seem to be mandatory now.

This revision now requires changes to proceed.Dec 6 2022, 7:05 AM
tomek added inline comments.
web/chat/inline-sidebar.react.js
17 ↗(On Diff #19300)

$ReadOnlyMap

39–47 ↗(On Diff #19300)

Just like in D5813 we will need to take care about sorting and spaces between reactions

49–51 ↗(On Diff #19300)

What's the reason behind having one div in another. Can we merge these? Or maybe, each reaction could be its own div, just like it was in the original version.

address one more piece of feedback

atul requested changes to this revision.Dec 15 2022, 9:43 AM

Let's pull out the common logic and put it in lib somewhere

web/chat/inline-sidebar.react.js
38–52 ↗(On Diff #19337)

Is this the same logic as in native? We should just pull it out and put it in lib.

This revision now requires changes to proceed.Dec 15 2022, 9:43 AM
This revision is now accepted and ready to land.Dec 18 2022, 9:29 PM
web/chat/inline-sidebar.react.js
19 ↗(On Diff #19155)

Made a task to track