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
F1695294: D6046.diff
Fri, May 3, 4:03 AM
F1695244: D6046.diff
Fri, May 3, 3:16 AM
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)
Mar 29 2024, 12:38 AM
Unknown Object (File)
Mar 13 2024, 8:53 PM
Unknown Object (File)
Mar 7 2024, 3:54 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
No Lint Coverage
Unit
No Test Coverage