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)
Mon, Nov 25, 11:18 AM
Unknown Object (File)
Thu, Nov 7, 5:46 AM
Unknown Object (File)
Thu, Nov 7, 5:45 AM
Unknown Object (File)
Tue, Nov 5, 7:23 AM
Unknown Object (File)
Tue, Nov 5, 7:22 AM
Unknown Object (File)
Mon, Nov 4, 5:00 AM
Unknown Object (File)
Oct 28 2024, 1:04 AM
Unknown Object (File)
Oct 28 2024, 1:04 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