Page MenuHomePhabricator

[web] Calling utility functions in Overlay component.
ClosedPublic

Authored by przemek on Nov 24 2022, 7:27 AM.
Tags
None
Referenced Files
F3361826: D5720.id18819.diff
Sun, Nov 24, 7:36 PM
F3361565: D5720.diff
Sun, Nov 24, 6:08 PM
Unknown Object (File)
Fri, Nov 22, 8:00 AM
Unknown Object (File)
Fri, Nov 22, 8:00 AM
Unknown Object (File)
Fri, Nov 22, 8:00 AM
Unknown Object (File)
Fri, Nov 22, 7:54 AM
Unknown Object (File)
Fri, Nov 22, 7:45 AM
Unknown Object (File)
Wed, Nov 6, 6:16 AM

Details

Summary

The component now takes all the data needed via props and calls utility functions wrapped in useMemo.
Moved type exports to utility file in previous diff.

Test Plan

Component not rendered yet, but tested visibility.
App builds.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested changes to this revision.Nov 25 2022, 3:19 AM
tomek added inline comments.
web/chat/mention-suggestion-tooltip.react.js
24 ↗(On Diff #18819)

This isn't too useful for the component. It's hard to deduce what's inside of it without checking all the usages. It's more maintainable to simply pass the strings instead.

This revision now requires changes to proceed.Nov 25 2022, 3:19 AM
przemek added inline comments.
web/chat/mention-suggestion-tooltip.react.js
24 ↗(On Diff #18819)

Changed it so that component receives 3 strings instead.

przemek marked an inline comment as done.

Fixed props.

tomek added inline comments.
web/chat/mention-suggestion-tooltip.react.js
24 ↗(On Diff #18819)

How about going to step further and using TypeaheadMatchedStrings from the next diff?

This revision is now accepted and ready to land.Nov 25 2022, 9:05 AM