Page MenuHomePhabricator

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

Authored by patryk on Aug 22 2023, 1:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 2, 9:20 PM
Unknown Object (File)
Sat, Sep 2, 9:08 AM
Unknown Object (File)
Wed, Aug 30, 12:07 PM
Unknown Object (File)
Aug 22 2023, 1:31 PM
Unknown Object (File)
Aug 22 2023, 1:05 PM
Unknown Object (File)
Aug 22 2023, 10:15 AM
Subscribers

Details

Reviewers
tomek
inka
rohan
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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

patryk held this revision as a draft.
patryk edited the test plan for this revision. (Show Details)
patryk added reviewers: tomek, inka.
patryk published this revision for review.Aug 22 2023, 8:37 AM
This revision is now accepted and ready to land.Aug 24 2023, 7:13 AM
tomek requested changes to this revision.Tue, Sep 12, 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.Tue, Sep 12, 7:01 AM

Rename textPrefix to query

This revision is now accepted and ready to land.Tue, Sep 19, 9:04 AM