Page MenuHomePhabricator

[lib/native] update heightMeasurerKey function to consider inline engagement for robotext messages
ClosedPublic

Authored by ginsu on Jul 25 2023, 12:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 6:56 PM
Unknown Object (File)
Sat, Nov 23, 4:23 PM
Unknown Object (File)
Sat, Nov 23, 4:23 PM
Unknown Object (File)
Sat, Nov 2, 3:32 PM
Unknown Object (File)
Oct 28 2024, 5:36 AM
Unknown Object (File)
Oct 14 2024, 11:39 PM
Unknown Object (File)
Oct 7 2024, 12:39 AM
Unknown Object (File)
Oct 7 2024, 12:39 AM
Subscribers

Details

Summary

This next diff updates the heightMeasurerKey function so that we remeasure a message whenever there is a change with the inline engagement for that message. In this diff we want to also consider changes to sidebar text and the reactions since these can all potentially affect the height of the inline engagement node

Depends on D8610

Test Plan

I tested modifying the height of the inline engagement for robotext messages, and when I did this, I no longer got the incorrect height measurement logs from the console

Before:

After:

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, kamil, ashoat, tomek.

added @ashoat and @tomek as reviewers since they have the most context on height measurement

tomek added inline comments.
lib/shared/inline-engagement-utils.js
17–18 ↗(On Diff #29032)

We probably don't have good guarantees about iteration order, but it should be fine as we're caring here only about changes in the object.

This revision is now accepted and ready to land.Jul 26 2023, 3:14 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.