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
F5931667: D8600.id29240.diff
Fri, Apr 18, 4:42 AM
Unknown Object (File)
Wed, Mar 26, 1:36 PM
Unknown Object (File)
Sun, Mar 23, 5:38 AM
Unknown Object (File)
Mar 17 2025, 6:17 PM
Unknown Object (File)
Mar 17 2025, 6:16 PM
Unknown Object (File)
Mar 17 2025, 6:16 PM
Unknown Object (File)
Mar 17 2025, 6:16 PM
Unknown Object (File)
Mar 17 2025, 6:16 PM
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.