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)
Wed, Nov 13, 5:23 AM
Unknown Object (File)
Sat, Nov 9, 1:56 PM
Unknown Object (File)
Fri, Nov 8, 2:25 PM
Unknown Object (File)
Fri, Nov 8, 8:13 AM
Unknown Object (File)
Wed, Nov 6, 4:24 AM
Unknown Object (File)
Tue, Nov 5, 1:38 AM
Unknown Object (File)
Mon, Nov 4, 1:19 AM
Unknown Object (File)
Tue, Oct 29, 2:23 AM

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