Page MenuHomePhabricator

[web] Keyboard support for typeahead [6/13] - Get rid of entire text and rename matched strings
ClosedPublic

Authored by przemek on Dec 27 2022, 4:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 5:24 AM
Unknown Object (File)
Sat, Nov 9, 11:31 AM
Unknown Object (File)
Mon, Nov 4, 11:13 PM
Unknown Object (File)
Mon, Nov 4, 3:20 AM
Unknown Object (File)
Mon, Nov 4, 2:40 AM
Unknown Object (File)
Mon, Oct 28, 8:11 AM
Unknown Object (File)
Oct 18 2024, 5:34 AM
Unknown Object (File)
Oct 7 2024, 5:23 PM

Details

Summary

Some renaming of arguments and variables.
Removed entireText from TypeaheadMatchedStrings as we only needed its length in getTypeaheadTooltipActions function.
Length of entire text can be easily obtained by textBeforeAtSymbol.length + usernamePrefix.length + 1 where 1 stands for @ symbol.

Test Plan

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

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage