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)
Fri, Dec 20, 12:54 AM
Unknown Object (File)
Nov 24 2024, 1:33 AM
Unknown Object (File)
Nov 23 2024, 11:58 PM
Unknown Object (File)
Nov 13 2024, 5:24 AM
Unknown Object (File)
Nov 9 2024, 11:31 AM
Unknown Object (File)
Nov 4 2024, 11:13 PM
Unknown Object (File)
Nov 4 2024, 3:20 AM
Unknown Object (File)
Nov 4 2024, 2:40 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