Page MenuHomePhabricator

[native] clean up InlineEngagement component
ClosedPublic

Authored by ginsu on Jul 13 2023, 9:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 11:46 PM
Unknown Object (File)
Sun, Nov 24, 3:59 AM
Unknown Object (File)
Fri, Nov 1, 1:47 PM
Unknown Object (File)
Oct 28 2024, 7:43 AM
Unknown Object (File)
Oct 1 2024, 9:39 PM
Unknown Object (File)
Oct 1 2024, 9:10 PM
Unknown Object (File)
Sep 28 2024, 9:32 AM
Unknown Object (File)
Sep 28 2024, 9:32 AM
Subscribers

Details

Summary

Small cleanup diff to better organize and make the InlineEngagement component easier to read/go through. The two changes to note are

  1. Renamed threadInfo to sidebarInfo: I thought that this was a more accurate name since this was holding the sidebar thread info
  2. Reorganized/moved the styles unboundStyles so that the order of the styles went from usage in parent elements/containers to the children elements. Before this the styles were in some random order that didn't make any sense to me

Depends on D8317

Test Plan

Confirmed that InlineEngagment still looked and behaved the same.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil added inline comments.
native/chat/inline-engagement.react.js
34 ↗(On Diff #28676)

after this change feels a bit not natural that this is not a SidebarInfo type, but overall your reasoning is convincing

This revision is now accepted and ready to land.Jul 19 2023, 5:00 AM
native/chat/inline-engagement.react.js
34 ↗(On Diff #28676)

That is a fair point. I think an even better name for this would be sidebarThreadInfo. Will update this diff to reflect this