Page MenuHomePhabricator

[web] Keyboard support for typeahead [3/13] - Renamed animation state
ClosedPublic

Authored by przemek on Dec 27 2022, 4:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 2:42 AM
Unknown Object (File)
Tue, Apr 9, 2:42 AM
Unknown Object (File)
Wed, Apr 3, 5:53 PM
Unknown Object (File)
Mar 17 2024, 7:21 PM
Unknown Object (File)
Mar 13 2024, 8:53 PM
Unknown Object (File)
Mar 8 2024, 6:56 PM
Unknown Object (File)
Mar 7 2024, 3:53 AM
Unknown Object (File)
Mar 4 2024, 11:21 PM

Details

Summary

Renamed state that is used for animations only, so it's not confused with anything that might have to do with logic of displaying overlay.

Test Plan

Typeahead without keyboard support works.
Final tests performed in last diffs.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Accepting with questions

web/chat/typeahead-tooltip.react.js
46 ↗(On Diff #20154)

Is there a reason why we didn't add setIsVisibleForAnimation to the list of dependencies?

This revision is now accepted and ready to land.Dec 27 2022, 3:52 PM
web/chat/typeahead-tooltip.react.js
46 ↗(On Diff #20154)

You don't need to. In general you can trust the ESLint rule to make sure the dep list is right. In the case of setIsVisibleForAnimation, useState setters are constant through the lifetime of a component

web/chat/typeahead-tooltip.react.js
46 ↗(On Diff #20154)

Gotcha thanks for clairfying, I patched locally and wasn't getting an error so figured everything was copacetic

This revision now requires review to proceed.Dec 29 2022, 11:56 AM
This revision is now accepted and ready to land.Dec 30 2022, 7:10 AM