Page MenuHomePhabricator

[native] toggle reaction action in onPressReact function
ClosedPublic

Authored by ginsu on Dec 12 2022, 8:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 5:14 AM
Unknown Object (File)
Fri, Nov 8, 10:00 AM
Unknown Object (File)
Fri, Nov 8, 10:00 AM
Unknown Object (File)
Thu, Nov 7, 4:03 PM
Unknown Object (File)
Thu, Nov 7, 4:03 PM
Unknown Object (File)
Thu, Nov 7, 4:03 PM
Unknown Object (File)
Thu, Nov 7, 4:03 PM
Unknown Object (File)
Thu, Nov 7, 4:03 PM
Subscribers

Details

Summary

toggle reaction action in onPressReact function. Hard setting reactionInput right now but will changing this when we expand from just sending likes to more reactions.

Also, right now the tooltip option does not change from '👍', but will be addressing this in a subsequent diff


Linear Task: ENG-2243
Depends on D5854

Test Plan

Please watch the demo video to see how the toggle works:

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

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 12 2022, 8:55 PM

I think that we have to introduce some animations so that the UI doesn't jump when a reaction is added / removed, but that will be complicated so it should be a separate task which we can prioritize later.

native/chat/reaction-message-utils.js
45 ↗(On Diff #19301)

Should we use reactionInput here?

In D5854#175269, @tomek wrote:

I think that we have to introduce some animations so that the UI doesn't jump when a reaction is added / removed, but that will be complicated so it should be a separate task which we can prioritize later.

Totally agree, some of the animations are a bit clunky and need to be fine-tuned, but I think it will be better to address that in a separate task for the future

This revision is now accepted and ready to land.Dec 15 2022, 9:24 AM

You should never reference a task without linking it. @ginsu, please create and link the task you're describing before landing this diff

In D5854#175378, @ginsu wrote:
In D5854#175269, @tomek wrote:

I think that we have to introduce some animations so that the UI doesn't jump when a reaction is added / removed, but that will be complicated so it should be a separate task which we can prioritize later.

Totally agree, some of the animations are a bit clunky and need to be fine-tuned, but I think it will be better to address that in a separate task for the future

Follow up task