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)
Nov 24 2024, 4:02 AM
Unknown Object (File)
Nov 24 2024, 2:54 AM
Unknown Object (File)
Nov 24 2024, 12:21 AM
Unknown Object (File)
Nov 13 2024, 5:23 AM
Unknown Object (File)
Nov 9 2024, 1:56 PM
Unknown Object (File)
Nov 8 2024, 2:25 PM
Unknown Object (File)
Nov 8 2024, 8:13 AM
Unknown Object (File)
Nov 6 2024, 4:24 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