Major refactor of MessageTooltip that simplifies the component leaving only necessary properties and removing positioning logic out of the component
The new component:
Paths
| Differential D4912 Authored by • jacek on Aug 23 2022, 4:52 AM.
Details
Summary Test Plan Flow; Tested with the rest of diffs stack.
Diff Detail
Event Timeline• jacek held this revision as a draft. Herald added a subscriber: ashoat. · View Herald TranscriptAug 23 2022, 4:52 AM2022-08-23 04:52:16 (UTC-7) Harbormaster completed remote builds in B11530: Diff 15853.Aug 23 2022, 5:01 AM2022-08-23 05:01:33 (UTC-7) • jacek edited the summary of this revision. (Show Details)Aug 23 2022, 5:34 AM2022-08-23 05:34:55 (UTC-7) tomek added inline comments. This revision is now accepted and ready to land.Aug 25 2022, 11:02 AM2022-08-25 11:02:57 (UTC-7)
Harbormaster completed remote builds in B11678: Diff 16054.Aug 29 2022, 5:44 AM2022-08-29 05:44:09 (UTC-7) Harbormaster failed remote builds in B11686: Diff 16072!Aug 29 2022, 7:21 AM2022-08-29 07:21:02 (UTC-7) Harbormaster completed remote builds in B11686: Diff 16072.Aug 29 2022, 7:54 AM2022-08-29 07:54:46 (UTC-7) Harbormaster completed remote builds in B11786: Diff 16189.Sep 1 2022, 7:06 AM2022-09-01 07:06:03 (UTC-7) Harbormaster completed remote builds in B11801: Diff 16204.Sep 1 2022, 7:34 AM2022-09-01 07:34:52 (UTC-7) Closed by commit rCOMM36b1f6c71dcb: [web] Refactor `MessageTooltip` component (authored by • jacek). · Explain WhySep 5 2022, 3:13 AM2022-09-05 03:13:15 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 16288 web/chat/chat-constants.js
web/chat/composed-message.react.js
web/chat/message-tooltip.css
web/chat/message-tooltip.react.js
|
This approach seems to be overly complicated. Can't we just write a function that receives messageID, threadID and reaction? This function can be named after an action that is performed, so react or sendReaction.