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)
Sun, Nov 24, 1:33 AM
Unknown Object (File)
Sat, Nov 23, 11:58 PM
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)
Oct 28 2024, 8:11 AM

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