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, Oct 15, 11:30 AM
Unknown Object (File)
Sun, Oct 6, 9:02 PM
Unknown Object (File)
Sun, Oct 6, 11:25 AM
Unknown Object (File)
Sep 27 2024, 6:58 PM
Unknown Object (File)
Sep 27 2024, 6:58 PM
Unknown Object (File)
Sep 27 2024, 6:57 PM
Unknown Object (File)
Sep 27 2024, 6:57 PM
Unknown Object (File)
Sep 27 2024, 6:51 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
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.
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

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