Page MenuHomePhabricator

[web] Refactor and renaming of typeahead utils.
AbandonedPublic

Authored by przemek on Dec 15 2022, 4:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 5:49 AM
Unknown Object (File)
Thu, Nov 7, 5:49 AM
Unknown Object (File)
Wed, Nov 6, 6:23 AM
Unknown Object (File)
Mon, Nov 4, 8:22 AM
Unknown Object (File)
Oct 28 2024, 8:29 AM
Unknown Object (File)
Oct 20 2024, 9:03 PM
Unknown Object (File)
Oct 1 2024, 1:34 AM
Unknown Object (File)
Sep 28 2024, 1:02 PM

Details

Summary

Renamed some arguments.
Moved one function to lib, so it can be reused in native counterpart.
Removed entireText from regex matches, as it was only used in one place and
could be derived from text before @, and username prefix.

Test Plan

Tested whole typeahead feature. Works!

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil added a reviewer: tomek.
web/utils/typeahead-utils.js
15–17 ↗(On Diff #19376)

Is there a reason why the regex would be different on native?

77 ↗(On Diff #19376)

Should't types start with a capital letter?

przemek marked 2 inline comments as done.

Rebasing

web/utils/typeahead-utils.js
15–17 ↗(On Diff #19376)
77 ↗(On Diff #19376)

Fixed in previous diff.

tomek requested changes to this revision.Dec 19 2022, 2:56 AM

It's really hard to review a diff where so many things happen at the same time. This diff contains renaming, moving, some changes in logic... could you split this diff into multiple ones, so that each diff does one thing and can be easily verified?

This revision now requires changes to proceed.Dec 19 2022, 2:56 AM