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
F3390694: D8896.id30180.diff
Sat, Nov 30, 12:52 AM
Unknown Object (File)
Sat, Nov 9, 8:24 PM
Unknown Object (File)
Sat, Nov 9, 4:59 PM
Unknown Object (File)
Sat, Nov 9, 4:58 PM
Unknown Object (File)
Sat, Nov 9, 1:39 PM
Unknown Object (File)
Sat, Nov 9, 10:40 AM
Unknown Object (File)
Fri, Nov 8, 4:20 AM
Unknown Object (File)
Thu, Nov 7, 4:56 AM
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