Skip to content

Conversation

@nhaagen
Copy link
Contributor

@nhaagen nhaagen commented Aug 5, 2025

@nhaagen nhaagen added bugfix kitchen sink php Pull requests that update Php code labels Aug 5, 2025
@nhaagen nhaagen force-pushed the 11/UI/TagInput/45566 branch 2 times, most recently from 7337d15 to 9dec0f1 Compare August 7, 2025 08:35
@nhaagen nhaagen added the javascript Pull requests that update Javascript code label Aug 7, 2025
@nhaagen nhaagen force-pushed the 11/UI/TagInput/45566 branch 2 times, most recently from 2913a84 to 56f099a Compare August 7, 2025 09:49
@kergomard
Copy link
Contributor

Hi @klees and @nhaagen

Just to put it on the radar: This will collide rather painfully with #9516 .

Thank you very much and best,
@kergomard

@nhaagen
Copy link
Contributor Author

nhaagen commented Aug 14, 2025

The relevant changes are mainly outside the js, it will collide, yes, but not that hard :)

@thibsy thibsy self-assigned this Aug 28, 2025
Copy link
Contributor

@thibsy thibsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @nhaagen,

Thanks a lot for your contribution to the UI components!

As @kergomard pointed out, this PR conflicts with his PR to introduce auto-completion to the Field\Tag component. He agreed to incorporate your PR into his, since the changes on his end are less trivial and use a different structure. Could you implement the requested changes and pass the PR on to @kergomard once you finished? He will then incorporate and close this PR.

About the concrete changes, please answer the following questions:

  • Relevant changes: You have migrated the JavaScript to an ES6 module, thx! To make sure we don't miss any relevant changes, could you point out which changes address the Mantis issue in question? As far as we can see, it should be three rawurlencode() and one encodeURIComponent() function calls.

Please implement the following changes:

  • Unit tests: please implement a server-side unit test which covers the bug you are fixing. @kergomard will implement the client-side unit tests inside his new JS structure.

Kind regards,
@thibsy

@kergomard
Copy link
Contributor

kergomard commented Sep 4, 2025

Hi @thibsy and @nhaagen

Just to be clear: As far as I understand this, I would just throw away al changes in the Javascript, and only keep the three small changes adding rawurlencode() and rawurldecode() in php. This would mean that the points above would be moot, or am I missing something?

If there is something else to do that I overlooked when I quickly looked at this, I would add it in the implementation I provided for the js, as there the change is far bigger and I would actually simply suggest that I close this PR once I've done so.

Best,
@kergomard

@thibsy
Copy link
Contributor

thibsy commented Sep 4, 2025

Hi @kergomard,

There was indeed a misunderstanding. We can continue as you suggested - I updated my review accordingly.

Kind regards,
@thibsy

@nhaagen nhaagen force-pushed the 11/UI/TagInput/45566 branch from 56f099a to 7c9c39f Compare September 9, 2025 07:32
@nhaagen
Copy link
Contributor Author

nhaagen commented Sep 9, 2025

  • Relevant changes: You have migrated the JavaScript to an ES6 module, thx! To make sure we don't miss any relevant changes, could you point out which changes address the Mantis issue in question? As far as we can see, it should be three rawurlencode() and one encodeURIComponent() function calls.

For the JS, This encodeURI becomes encodeURIComponent here in transformTag.
The other transforms are in the rendering [1] and transformations [1, 2]

Copy link
Contributor

@thibsy thibsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx @nhaagen for providing the PHPUnit test. I approve these changes and let @kergomard incorporate them into his PR.

@thibsy
Copy link
Contributor

thibsy commented Oct 13, 2025

Thx @nhaagen, I close this, since it was integrated with #9516 just now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix javascript Pull requests that update Javascript code kitchen sink php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants