Page MenuHomePhabricator

[native] show which reactions the viewer has already selected in the inline engagement
ClosedPublic

Authored by ginsu on Jul 21 2023, 12:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 12:53 PM
Unknown Object (File)
Oct 28 2024, 5:36 AM
Unknown Object (File)
Oct 11 2024, 10:28 AM
Unknown Object (File)
Oct 5 2024, 5:08 PM
Unknown Object (File)
Oct 4 2024, 1:38 PM
Unknown Object (File)
Sep 28 2024, 8:57 AM
Unknown Object (File)
Sep 28 2024, 8:57 AM
Unknown Object (File)
Sep 28 2024, 8:57 AM
Subscribers

Details

Summary

To improve the user experience of the inline engagement, we should show/indicate to the user which reactions they have already selected. We indicate this to the user by adding a border to the reaction pill.

Depends on D8578

Test Plan

Confirmed the width/height of the reaction pills are all the same regardless if it has been selected by the viewer or not:

Screenshot 2023-07-21 at 3.27.48 PM.png (1×1 px, 1 MB)

Screenshot 2023-07-21 at 3.27.42 PM.png (1×1 px, 1 MB)

Please watch the demo video below

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/chat/inline-engagement.react.js
300–301 ↗(On Diff #28954)

We use 7 and 3 here because the border will add 1px so the total will match the original reaction pill height/width

This revision is now accepted and ready to land.Jul 24 2023, 1:58 AM
This revision was landed with ongoing or failed builds.Jul 31 2023, 1:19 PM
This revision was automatically updated to reflect the committed changes.