Wykres commitów

17399 Commity (a27e8f075d1cb5fa669556f239d5d3ebf74e735e)

Autor SHA1 Wiadomość Data
Andy Babic 52aeb4d178 Remove unused import 2024-04-18 12:33:12 +01:00
Andy Babic a9ba0428cf Rewrite create_renditions() to:
- Use a maximum of 3 workers
- Use the new generate_rendition_instance() method
- Define and execute future threads in a way that allows exceptions to be surfaced (avoid map)
2024-04-18 12:32:49 +01:00
Andy Babic 189b851d72 Add AbstractImage.generate_rendition_instance() 2024-04-18 12:32:49 +01:00
Andy Babic fe8e618232 Fix: Avoid mutation of list whilst iterating it 2024-04-18 12:32:49 +01:00
sag​e c1a23b4bd3
Tweak styles for w-header-button to better match the designs (#11863) 2024-04-18 12:29:01 +01:00
Matt Westcott c02162dc50 Release note for #11737 2024-04-18 10:54:19 +01:00
Nigel van Keulen 3ff4bc08c6
Populate parent page cache during page routing (#11737)
* Optimize page routing by caching parent on child
2024-04-18 10:48:29 +01:00
Sage Abdullah 0f7398f93c
Update release notes for #11749 and #11762 2024-04-18 07:43:55 +07:00
LB Johnston 67471defcf Add release notes for #11818 2024-04-18 07:48:33 +10:00
Rohit Sharma a86822c530 Add ability for Settings icons to be reflected on Setting edit views
Fixes #11790
Rebase and rework of original PR #8650
2024-04-18 07:48:33 +10:00
LB Johnston 37922cc03d Add changelog & upgrade considerations #11525 2024-04-18 07:03:08 +10:00
Saksham Misra 53d6ea4491 Add documentation to support password required settings change
PASSWORD_REQUIRED_TEMPLATE -> WAGTAIL_PASSWORD_REQUIRED_TEMPLATE
DOCUMENT_PASSWORD_REQUIRED_TEMPLATE -> WAGTAILDOCS_PASSWORD_REQUIRED_TEMPLATE
2024-04-18 07:03:08 +10:00
LB Johnston 488f338c1c Add unit tests to support password required template settings 2024-04-18 07:03:08 +10:00
Saksham Misra 741754b2d2 Update password required template settings to have a Wagtail prefix
Ensure that the non-prefixed settings for customised password required templates can be name-spaced like all other current settings.

Add backwards compatible deprecation support and warnings for the current names.

Fixes #11368

PASSWORD_REQUIRED_TEMPLATE -> WAGTAIL_PASSWORD_REQUIRED_TEMPLATE
DOCUMENT_PASSWORD_REQUIRED_TEMPLATE -> WAGTAILDOCS_PASSWORD_REQUIRED_TEMPLATE
2024-04-18 07:03:08 +10:00
Matt Westcott 1ec62a6c2d Release note for #11749 2024-04-17 16:23:54 +01:00
Alec Baron d71cf79520
Accept alias for WAGTAILIMAGES_RENDITION_STORAGE (#11749)
* Accept alias for WAGTAILIMAGES_RENDITION_STORAGE

* Update wagtail.images.models.get_rendition_storage to handle the case when the WAGTAILIMAGES_RENDITION_STORAGE setting is given a storage alias (defined in the STORAGES setting). Preserve old behavior when a dotted module path or a Storage instance are given.
* Refactor and improve all tests related to the WAGTAILIMAGE_RENDITION_STORAGE setting.
* Update related documentation.
2024-04-17 16:22:19 +01:00
Jake Howard 6b0c97218a Document use of secret key to obscure Wagtail version
Whilst ideally we wouldn't use the secret key, it's the best way to ensure the value doesn't expose the wagtail version, whilst still being deployment-specific.
2024-04-17 16:15:03 +01:00
LB Johnston e8f4d56583 Support forwards compatible configuration for private pages/collections
The new settings introduced in #11582 / #11536 only considered one use case of disabling the shared password option. However, we may want to allow for more complex configuration in the future in this area.

Ensure we can support potential future requirements such as #11640 with a more flexible structure for private pages & collections.

The following settings have been changed from boolean to dictionary values.

WAGTAIL_ALLOW_SHARED_PASSWORD_PAGE -> WAGTAIL_PRIVATE_PAGE_OPTIONS
WAGTAIL_ALLOW_SHARED_PASSWORD_COLLECTION -> WAGTAILDOCS_PRIVATE_COLLECTION_OPTIONS
2024-04-17 15:29:50 +01:00
Matt Westcott abd018b926 Release note for #11850 2024-04-17 14:21:54 +01:00
Matt Westcott 1cbe206362 Revert signature of StaticBlock.normalize 2024-04-17 14:18:50 +01:00
Matt Westcott b0cda80626 Simplify example of appending a rich text block to a streamfield 2024-04-17 14:18:02 +01:00
Matt Westcott 88cc442b8b Test for complex StreamField assignments that require recursive normalisation 2024-04-17 14:18:02 +01:00
Matt Westcott f19b63caf9 Add test for StreamField with complex defaults 2024-04-17 14:18:02 +01:00
Joshua Munn d22ee56d4c Call Block.normalize in block.get_default 2024-04-17 14:18:01 +01:00
Joshua Munn ba8a612bc6 Remove serialized format case from ListBlock.normalize 2024-04-17 14:18:01 +01:00
Matt Westcott ae3616266d Unify all handling of incoming StreamBlock values into StreamBlock.to_python 2024-04-17 14:18:01 +01:00
Matt Westcott e879c2b9ee Remove BlockNormalizationError as a distinct exception type 2024-04-17 14:18:01 +01:00
Joshua Munn 95e911c490 Add test for normalizing empty stream block value 2024-04-17 14:18:01 +01:00
Joshua Munn faa16ad410 Add another recursive structblock normalization test 2024-04-17 14:18:01 +01:00
Joshua Munn 41d2c4e3ea Simplify ListValue comparisons in tests 2024-04-17 14:18:01 +01:00
Joshua Munn cc422e4c7f Add more list block tests 2024-04-17 14:18:01 +01:00
Joshua Munn 5bee6c05d7 Handle serialization format in ListBlock.normalize 2024-04-17 14:18:01 +01:00
Joshua Munn ab8a9f5194 Move type sniffing logic to StreamBlock.normalize
from StreamField._to_python
2024-04-17 14:18:01 +01:00
Joshua Munn 43432d7bb3 Add `normalize' method to blocks 2024-04-17 14:18:01 +01:00
Neeraj P Yetheendran 4bf966537a Added ability to make keyboard shortcut Global
Add `w-kbd-scope-value` with support for `global` so that specific keyboard shortcuts (e.g. ctrl+s/cmd+s) can be used consistently even when focused on fields.

Fixes #11844
2024-04-17 21:00:58 +10:00
LB Johnston b8ce8f7739 Add changelog for #11168
Relates to #2936
2024-04-17 19:58:08 +10:00
LB Johnston e6504951c8 Add deprecated backwards compatible window.URLify with release notes
- Add legacy support for window.URLify with allowUnicode as a param
- Add release notes details for both window.URLify (deprecated) & window.XRegExp (removed)
2024-04-17 19:58:08 +10:00
LB Johnston be5b69078a Move urlify (Django port) & remove xregexp vendor library
- Move vendor/urlify.js into our own codebase as a port of the Djago util
- Remove the need for xregexp polyfill library
2024-04-17 19:58:08 +10:00
LB Johnston f0cf73f0d3 Standardize on `allowUnicode` for slugify util option
- This is the name used in the urlify util
2024-04-17 19:58:08 +10:00
LB Johnston d8e63954d8 Update tsconfig to allow json imports 2024-04-17 19:58:08 +10:00
Sage Abdullah 657c867d03
Release note for #11839 2024-04-17 14:49:42 +07:00
Matt Westcott bb3e58abd0
Split out a reusable runInlineScripts utility function and handle attributes correctly 2024-04-17 14:49:12 +07:00
Matt Westcott 57d407d0eb
Use template literals for names in selectors 2024-04-17 14:49:11 +07:00
Matt Westcott 9b74c83195
Eliminate jQuery from telepath widget classes 2024-04-17 14:49:11 +07:00
Sage Abdullah 6d1fe98f6a
Release note for #11774 2024-04-17 03:56:27 +07:00
Sage Abdullah cfc3c48246
Add header icon support in PageListingViewSet index view 2024-04-17 03:48:55 +07:00
Abdelrahman 53a3705bbb
Retain query parameters when switching between locales in the page chooser 2024-04-17 03:48:54 +07:00
Abdelrahman 61e803c740
Add choose parent view for creating pages via PageListingViewSet 2024-04-17 03:48:54 +07:00
Matt Westcott dd5e16b2e1 Release note for #11831 2024-04-16 16:37:47 +01:00
Drikus Roor bfce1cea64 docs: Make instructions about adding "wagtail.contrib.settings" to INSTALLED_APPS more explicit 2024-04-16 16:35:55 +01:00