RTC NPM Resource Changed bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar adarshdubey03
adarshdubey03
19 Mar 2026

Pull Request resolves #44138 .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

Improves the search behavior of the Fancy Select field by allowing matches to be found anywhere within option labels, not only near the beginning of the text
This is achieved by increasing the Fuse.js search distance parameter used by the component. The change preserves the existing fuzzy search behavior while making long labels searchable by words appearing later in the string.
No other functionality or configuration is modified

Testing Instructions

Go to Content and then Articles and then New Article
In the Category field, ensure there are categories with long names
Open the dropdown and type a word that appears toward the end of one of the category names
Repeat with words from the beginning, middle, and end of different labels
Verify that results are returned correctly in all cases

Actual result BEFORE applying this Pull Request

Search results may not appear when the search term matches text located later in the label

Expected result AFTER applying this Pull Request

Search matches are found regardless of the term’s position within the label

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar adarshdubey03 adarshdubey03 - open - 19 Mar 2026
avatar adarshdubey03 adarshdubey03 - change - 19 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2026
Category JavaScript Repository NPM Change
avatar exlemor
exlemor - comment - 19 Mar 2026

@adarshdubey03 Will / could there be performance issues on large sites with changing distance value? (just a question, completely unsure of consequences)

avatar adarshdubey03
adarshdubey03 - comment - 19 Mar 2026

@exlemor it only affects match scoring within each item, not how many items are processed, so performance should not be impacted even on large lists

avatar richard67 richard67 - change - 3 Apr 2026
Labels Added: NPM Resource Changed bug PR-5.4-dev
avatar adarshdubey03
adarshdubey03 - comment - 3 Apr 2026

I have adjusted fuse.js distance to 850 to align with the 255 character category title limit

avatar krishnagandhicode krishnagandhicode - test_item - 9 Apr 2026 - Tested successfully
avatar krishnagandhicode
krishnagandhicode - comment - 9 Apr 2026

I have tested this item ✅ successfully on bb62be3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47423.

avatar MacJoom MacJoom - test_item - 10 Apr 2026 - Tested successfully
avatar MacJoom
MacJoom - comment - 10 Apr 2026

I have tested this item ✅ successfully on bb62be3

Tested by directly changing the js in joomla-cms\media\system\js\fields


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47423.

avatar alikon alikon - change - 10 Apr 2026
Status Pending Ready to Commit
avatar alikon
alikon - comment - 10 Apr 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47423.

avatar muhme muhme - change - 16 Apr 2026
Labels Added: RTC
avatar muhme
muhme - comment - 17 Apr 2026

✅ Final Test before merge with JBT

  • Created multiple long, longer and 255-chars category names
  • Before PR seen category selection doesn't find words in the end
  • Applied PR with Patch Tester and npm run build:js
    • All words are found, even in the end of long, longer and 255-chars category names, even with spaces between letters
avatar muhme muhme - close - 17 Apr 2026
avatar muhme muhme - merge - 17 Apr 2026
avatar muhme muhme - change - 17 Apr 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-04-17 10:42:33
Closed_By muhme
avatar muhme
muhme - comment - 17 Apr 2026

Thank you very much @adarshdubey03 for your contribution. Thanks to @exlemor for your support. Thanks to @krishnagandhicode and @MacJoom for testing.

Add a Comment

Login with GitHub to post a comment