Wykres commitów

6002 Commity (3f6cd8c18f0bb43546b6aa2f24f71b08586f5780)

Autor SHA1 Wiadomość Data
Matt Westcott e9af16b48d Improve i18n of success message for bulk page actions (#12453)
Previously, translations for messages such as "1 page and 3 child pages have been published" were handled with separate branches for the "one parent page" vs "multiple parent pages" cases, to work around ngettext only being able to handle pluralisation for one item in the string. This fails for languages such as Polish where the pluralisation does not follow the straightforward one/many distinction.

Instead, we can translate "N pages" and "N child pages" separately before forming the final message. We generally avoid translating sentence fragments in isolation as this can make things difficult for translators if the sentence structure does not match the English version - but this is hopefully an improvement over the current situation, as well as simplifying the code and reducing repetition.
2024-10-23 15:54:11 +01:00
Matt Westcott 34cbec36b2 Start new release notes sections for 6.4 2024-10-23 16:45:46 +10:00
Matt Westcott bff75a2d08 Version bump to start work on 6.4 2024-10-23 16:45:46 +10:00
Matt Westcott bbb50459c9 Remove versionadded / versionchanged notes for 6.2
However, leave behind notes that mark settings/features that are deprecated but not yet removed, as this would be removing information that isn't in the main body of the text (and moving it out of a versionchanged note would make it harder to find when we come to remove it properly in 7.0).
2024-10-23 16:45:46 +10:00
Matt Westcott 4d31bd0a29 Add clarification on using versionadded / versionchanged directives 2024-10-22 22:13:36 +01:00
Matt Westcott c1ce58fb42 Add Uyghur language support to release notes 2024-10-22 17:13:26 +01:00
sumana sree d35eb68b78 Fix: Update `can_handle` method to check for AbstractGroupApprovalTask instances
- Fixes #12328
- Regression from #11653
2024-10-22 08:19:38 +10:00
Matt Westcott 76070a037c Remove unused headings from 6.3 upgrade considerations 2024-10-21 18:03:59 +01:00
Matt Westcott 113aaf90c9 Mark 6.3 as an LTS release 2024-10-21 18:02:48 +01:00
Matt Westcott c4a48fffbb Release note for #12434 2024-10-21 17:51:34 +01:00
Thibaud Colas caec6d3a82 Release notes for #12419 2024-10-21 17:30:33 +01:00
Sage Abdullah 0dd7d12aaf
Release note for #12393 2024-10-21 16:53:30 +01:00
Bojan Mihelac 83a390661f Fix child restriction admin form when ancestors page view restrictions exists (#12124)
Fixes #4277
2024-10-21 16:29:19 +01:00
Matt Westcott 93f8600c31
ImageBlock for StreamField (rebase of #11791) (#12416)
Co-authored-by: Chiemezuo <chiemezuoakujobi@gmail.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-21 16:11:34 +01:00
Rohit Singh 105338d0d6
Fix datetime fields overflowing its parent wrapper in listing filters 2024-10-21 09:45:19 +01:00
frankyiu 97fadba582 Fix long name issue in document chooser table cell (#12430, #12431)
Fixes #12357
2024-10-20 13:47:35 +01:00
Ankit Kumar 329db8e58a
Added missing link to the Code of Conduct in the community guidelines… (#12432)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-20 11:27:21 +01:00
Matt Westcott 72fb0e9880 Stop history view from breaking if a log entry's revision is missing (#12427)
e.g. after the purge_revisions management command has been run
2024-10-18 18:52:47 +01:00
Sævar Öfjörð Magnússon 207e9e50d9 StaticBlock renders empty in templates (#12425) 2024-10-18 18:27:33 +01:00
Sage Abdullah ee635534af
Release note for #12414 and #12130 2024-10-18 18:19:18 +01:00
Sage Abdullah 5909d3e822
Apply suggestions from code review 2024-10-18 18:19:18 +01:00
alexkiro b38141ad82
Allow customization of preview device sizes
Co-authored-by: Bartosz Cieliński <bart@fullfatthings.com>
2024-10-18 18:19:17 +01:00
Sage Abdullah 49f9ae3a96 Fix error in workflows listing with multiple snippets assigned on PostgreSQL (#12367)
Fixes #12364
2024-10-18 17:43:49 +01:00
Matt Westcott 0d0700207d Release note for #12384 2024-10-18 13:02:24 +01:00
Matt Westcott 92567f6203 Document HEIC image support 2024-10-17 23:12:27 +01:00
Thibaud Colas 4725b80a13 Release notes for #12400. Fixes #9030, #9869 2024-10-17 13:33:08 +01:00
Albina 488c3583b7
'Prefers-contrast' admin theming (#12348)
Co-authored-by: Victoria Ottah <82820329+Toriasdesign@users.noreply.github.com>
2024-10-17 09:13:22 +01:00
Robin Varghese 576eaf37b2
Add support for specifying different preview modes to the "View draft" URL for pages 2024-10-15 17:38:34 +01:00
Thibaud Colas 28fcd01a31 Update colors table with new theme tokens 2024-10-14 14:40:00 +01:00
Albina 9a7427a589
Incremental dashboard enhancements. Fix #12089 (#12233)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-14 14:39:39 +01:00
LB Johnston 309e47f0cc Add changelog for adding warning for unsaved edits in snippets
Closes #8453
2024-10-11 17:52:59 +10:00
Matt Westcott efa2a88642 Ensure that TypedTableBlock uses the correct API representations of child blocks
TypedTableBlock did not provide a `get_api_representation` method, so it fell back on returning the database JSON representation as returned by `get_prep_value`. This resulted in an API representation that was mostly usable, but failed to respect child blocks that override `get_api_representation` themselves.
2024-10-11 17:07:19 +10:00
Chiemezuo 5cc22f3f75 Add "description" field to AbstractImage
- Baseline support for upcoming alt text capabilities
2024-10-11 17:07:06 +10:00
Matt Westcott 27b972d30f Add support for Python 3.13 2024-10-11 16:10:07 +10:00
Gabriel Getzie 9933432ec7 change document file_size to PositiveBigIntegerField (#12397)
Fixes #12396
2024-10-10 19:54:58 +01:00
Matt Westcott a8b4a13920 Release note for #12382 2024-10-10 19:14:26 +01:00
LB Johnston 912c0881f9 Remove window.fileupload_opts global usage, use data attributes instead
jQuery data is used by the jQuery file upload widget and will automatically parse data attributes as objects/or JS primitive values - see https://api.jquery.com/data/

jquery File Upload will automatically parse the data attributes and treat as the default options for initialisation (already used for the url) - see https://github.com/blueimp/jQuery-File-Upload/wiki/API#data-attributes

- Closes #9771 - avoiding globals for UI specific configs
- Relates to #1288 - ongoing work for CSP compliance
2024-10-09 08:01:44 +10:00
LB Johnston 9cbe1a507a Deprecate `window.wagtailConfig.BULK_ACTION_ITEM_TYPE` usage in JS
- Avoid using a window global and inline scripts to declare the current bulk action's item time
- Deprecate the usage of `window.wagtailConfig.BULK_ACTION_ITEM_TYPE` with a release note and code comment so that it can be removed in a future release
- Update bulk actions footer template to accept a `item_type` arg, adding this to the DOM element for access within the JavaScript
- Allow a fallback on the model name for core models (e.g. page)
- Also ensure that `{{ block.super }}` is consistently added at the top of the `{% block extra_js %}` (as it is with most usage)
- Relates to #9771 and supports a future migration for bulk actions towards Stimulus
- Relates to ongoing work for CSP compliance #1288
2024-10-08 17:55:28 +10:00
Jake Howard 4727663fa6 Remove multi-line icon comments
Ensure multi-line comments are cleaned from custom icons in addition to just single line comments.
This doesn't affect Wagtail's, but could reduce the size of 3rd-party icons.
2024-10-02 15:52:09 +10:00
rahulsamant37 50ba3a9c44 Update email notification header to new logo
- Fixes #12369
- Relates to logo update #10404
2024-10-02 15:43:57 +10:00
Krzysztof Jeziorny 72292d4d01
Documentation: Configure API to use the DRF's TokenAuthentication (#12363)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-09-29 15:59:15 +01:00
Ishwari8104 f86161ba00
Ensure dropdown toggles show with border in high contrast mode
Update _dropdown.scss (#12365)
2024-09-29 16:37:38 +10:00
Matthew Scouten 1f7710c4d8 oEmbed - Update polldaddy to crowdsignal & remove polleverywhere
- Update polldaddy oEmbed to crowdsignal (changed in 2018) https://crowdsignal.com/2018/10/18/introducing-crowdsignal/
- Remove polleverywhere as it no longer supports oEmbed
2024-09-28 18:26:53 +10:00
Drikus Roor 6aa4647120 docs: Clarify file location, add missing imports 2024-09-28 17:45:32 +10:00
Sage Abdullah 3a9b975ba1 Fix UnsavedController.forceValue not immediately notifying the unsaved changes
Fixes #12355
2024-09-28 17:41:48 +10:00
Shubham e7de2f8955 Refactor UnsavedController to use event.preventDefault() to trigger browser confirmation dialog
Per https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event

"best practice is to trigger the dialog by invoking `preventDefault()`
on the event object, while also setting `returnValue` to support legacy
cases."

We don't need to support legacy cases, as our supported browsers all
support the `preventDefault()` approach.

See also:
https://caniuse.com/mdn-api_window_beforeunload_event_preventdefault_activation

Fixes #12132

From PR #12139
2024-09-28 17:41:48 +10:00
Coen van der Kamp abcb2da372 Add translatable model copy for translation done signal (#12362) 2024-09-27 16:01:52 +01:00
LB Johnston a5c31f91c2
Mark js_translation_strings template tag for deprecation
- `js_translation_strings` is no longer used by Wagtail admin code
- It was historically used for generating the JS config strings within templates, we now do this in Python and expose as JSON via the `wagtail_config` template tag
- Add a warning for deprecation so that we can remove this unused template tag in the next major version of Wagtail
- See #9771 for context
2024-09-26 01:12:31 -04:00
Sage Abdullah 53f55a8786
Release note for #11166 2024-09-25 14:52:50 -04:00
LB Johnston 429732f09e
Start deprecation for the `locales` as a template tag
- This was only used by our JS config globals and can now be removed in a future release
2024-09-25 14:45:45 -04:00