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, Apr 3, 4:14 PM
Unknown Object (File)
Wed, Apr 3, 4:14 PM
Unknown Object (File)
Wed, Apr 3, 4:12 PM
Unknown Object (File)
Fri, Mar 29, 12:38 AM
Unknown Object (File)
Mar 13 2024, 8:53 PM
Unknown Object (File)
Mar 7 2024, 3:54 AM
Unknown Object (File)
Mar 7 2024, 3:54 AM
Unknown Object (File)
Mar 4 2024, 11:21 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
Lint Not Applicable
Unit
Tests Not Applicable