- Allow compareAs behaviour to be overridden via the event detail OR a param
- Enhance types to be more strict, refine JSDoc to be clearer about the default behaviour
- Add unit tests for default compare function and make logic a bit easier to read in regards to how the slugify/urilify methods are conditionally called
- Relates to #10532
- Wagtail 5.0 regression where subsequent changes to slugify field from a sync source were not comparing against the originally set urlify'd value
- Fixes #10532
- Regression caused by migration of 'slugFollowsTitle' approach not consistently comparing to the urlify version of the util on when the user focuses on the title field, broke in #10189
- When errors occur on chooser modal content, find the local progress buttons that are in loading state and update the value
- Stimulus will automatically resolve all DOM changes based on the dynamic value update
- Add unit tests for functionality
- Fixes #10498
- Regression from #9910 & #10062
Fix some gettext calls that should be gettext_lazy, because they're evaluated at the module level rather than per-request - getting this wrong means that these strings will always be in whatever language was set at the server level at startup, ignoring user preferences.
_delegated_text no longer exists in Django as of ee36e101e8
This is also how Django internally checks for lazily-translated strings (search for Promise in its codebase)
- The function created is pluralIdx (capital I), the underlying Django function is pluralidx
- Update our gettext JSDoc to align with our usage of pluralIdx (capital I)
The sites index is not paginated, and never has been. All this test is doing is confirming that we can pass some random unrecognised URL parameter to the page and it will have no effect. :-)
The sole purpose of this was to preserve the historical behaviour of accepting non-integer page numbers, which was mandated by the unit tests for no clear reason - it's likely that these tests were written to reflect the existing behaviour rather than the desired behaviour. Dropping this (and updating the tests) brings the behaviour in line with Django's standard.