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)
Fri, May 3, 3:17 AM
Unknown Object (File)
Apr 9 2024, 2:42 AM
Unknown Object (File)
Apr 9 2024, 2:42 AM
Unknown Object (File)
Apr 9 2024, 2:42 AM
Unknown Object (File)
Apr 3 2024, 5:53 PM
Unknown Object (File)
Mar 11 2024, 9:37 PM
Unknown Object (File)
Mar 11 2024, 9:37 PM
Unknown Object (File)
Mar 5 2024, 1:58 AM

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