Page MenuHomePhabricator

[web][native] Rename usernamePrefix to textPrefix in TypeaheadMatchedStrings type
ClosedPublic

Authored by patryk on Aug 22 2023, 1:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 27, 2:51 PM
Unknown Object (File)
Mon, Aug 26, 9:06 PM
Unknown Object (File)
Sat, Aug 24, 10:06 AM
Unknown Object (File)
Sat, Aug 24, 10:06 AM
Unknown Object (File)
Sat, Aug 24, 10:06 AM
Unknown Object (File)
Sat, Aug 24, 10:05 AM
Unknown Object (File)
Sat, Aug 24, 9:59 AM
Unknown Object (File)
Jul 17 2024, 4:24 PM
Subscribers

Details

Summary

This diff renames usernamePrefix to textPrefix in TypeaheadMatchedStrings type. Since we will show chats in mention typeahead tooltip, it is necessary to rename utilities to make code more generic.

Depends on D8853, D8849.

Test Plan

Check if TypeaheadTooltip works properly both on native and web.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

patryk held this revision as a draft.
patryk edited the test plan for this revision. (Show Details)
patryk added reviewers: tomek, inka.
This revision is now accepted and ready to land.Aug 24 2023, 7:13 AM
tomek requested changes to this revision.Sep 12 2023, 7:01 AM
tomek added inline comments.
lib/shared/mention-utils.js
18 ↗(On Diff #30180)

This name might be confusing - it isn't clear what is text in this context, especially because this is different than in the other prop. Maybe query, match, mathPrefix, or something else would be less confusing?

This revision now requires changes to proceed.Sep 12 2023, 7:01 AM
This revision is now accepted and ready to land.Sep 19 2023, 9:04 AM