Wykres commitów

18389 Commity (3f551f212cc4fd47945d1b7ff9c7de3564cdfea3)

Autor SHA1 Wiadomość Data
Cynthia Kiser 3f551f212c Insert default_alt_text when auto-converting from ImageChooserBlock to ImageBlock 2025-01-20 11:46:54 +00:00
Sage Abdullah fc4a892aad
Do not check for is_previewable in block preview template
We'll allow the view to render it anyway, but the block chooser won't show the preview
2025-01-20 10:03:59 +00:00
Sage Abdullah 4c8ea0e54c
Move default block preview template definition to Block.DEFAULT_PREVIEW_TEMPLATE 2025-01-20 10:03:59 +00:00
Sage Abdullah 3b8e15561d
Require block previews to override the global template if only preview value is provided 2025-01-20 10:03:59 +00:00
Sage Abdullah 7055155183
Move block preview template to wagtailcore
This allows us to use it in wagtail.blocks without depending on wagtail.admin
2025-01-20 10:03:59 +00:00
Sage Abdullah 839f95f50b
Add template_is_overridden utility function 2025-01-20 10:03:59 +00:00
Sage Abdullah c13caa952f
Add Block.is_previewable to avoid showing previews without proper configuration 2025-01-20 10:03:59 +00:00
Sage Abdullah adf52d85c7
Add Block.get_description() to be used in block preview 2025-01-20 10:03:58 +00:00
Sage Abdullah 3bad585b74
Add mechanism for previewing StreamField blocks 2025-01-20 10:03:58 +00:00
Sage Abdullah 7c0712cc38
Include Block.definition_prefix as blockDefId in blocks' Telepath metadata 2025-01-20 10:03:58 +00:00
Sage Abdullah 3ea241370d
Store block definitions in Block.definition_registry 2025-01-20 10:03:58 +00:00
sag​e 841b36ed18
Prevent main menu from re-rendering when clicking outside while the menu is closed (#12755)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-20 07:33:36 +00:00
Thibaud Colas 06ce7d2868 Release notes for #12723 2025-01-20 07:20:49 +00:00
Matt Westcott 0ccd99c867 Only replace alt text field if it hasn't been edited from the previous default 2025-01-20 07:20:49 +00:00
Matt Westcott 26f4d07ee1 Populate ImageBlock alt text from default_alt_text when an image is chosen
Fixes #12660
2025-01-20 07:20:49 +00:00
Matt Westcott 1db66a7ded Add default_alt_text to the state dictionary returned by ImageChooser view and used by AdminImageChooser widget 2025-01-20 07:20:49 +00:00
Matt Westcott a6b64dc42e Release notes for #12040 / #12787 2025-01-17 20:37:09 +00:00
Jake Howard bc9d5da38f Move deleting old image / document files to task 2025-01-17 19:01:22 +00:00
Jake Howard 0da3c731a5 Move updating search index to task 2025-01-17 19:01:17 +00:00
Jake Howard 5a0ecb9b30 Move setting image focal point to task 2025-01-17 18:08:50 +00:00
Jake Howard 78cd283b9e Move updating reference index to task 2025-01-17 18:08:39 +00:00
Jake Howard 79d129f8c2 Move frontend cache purging to task 2025-01-17 16:34:41 +00:00
Jake Howard 65d3b34698 Install `django-tasks`
The default configuration is to run tasks in-band, resulting in no change in functionality when simply adding tasks.
2025-01-17 15:48:56 +00:00
Thibaud Colas 7af2ca013e Release notes for #11257 2025-01-17 13:50:12 +00:00
Thibaud Colas 3e09c75814 Update documented Safari support version numbers 2025-01-17 13:50:12 +00:00
Thibaud Colas dcf523416c Switch TypeScript target to ES2023 2025-01-17 13:50:12 +00:00
Thibaud Colas 14d16ae823 Remove now-unneeded focus-visible backwards compat 2025-01-17 13:50:12 +00:00
Thibaud Colas be9b462947 Update Storybook Babel browser support configuration 2025-01-17 13:50:12 +00:00
Thibaud Colas 8d5fc606a8 Remove unneeded IE11 reference from browserslist 2025-01-17 13:50:12 +00:00
Thibaud Colas fc6aee2318 Update browserslist definition to remove Safari 15 2025-01-17 13:50:12 +00:00
Thibaud Colas 7ec01f813e Update caniuse-lite DB 2025-01-17 13:50:12 +00:00
Stéphane Blondon 3329e6dadf fix: add missing space between two words (#12781)
Otherwise, logs show such lines:
HINT: Ensure that MainMenu uses `panels` instead of `content_panels`or set up an `edit_handler` ...
2025-01-16 17:35:14 +00:00
Mike Gifford 4298665bfd Update guideline links in sustainability_considerations.md (#12762)
One of your links was busted, so I figured I'd suggest some updates.
2025-01-16 17:31:41 +00:00
Matt Westcott 7e1832a4eb Prevent error when searching and filtering by locale (#12772)
Ref: https://github.com/wagtail/wagtail/issues/6616#issuecomment-2590737050

The current locale filter logic performs a related field filter on `locale__language_code` which isn't supported when searching, as per #6616. Change this to look up the locale object in a separate query.
2025-01-16 16:38:25 +00:00
Matt Westcott b2958e2b4c Work around Sphinx failing to resolve HttpRequest in type annotations
Fixes #12777
2025-01-16 16:00:14 +00:00
Matt Westcott c561977e8d Move 6.3.3 changelog entry to the right place 2025-01-16 14:57:44 +00:00
Matt Westcott 9511d7f3ac Release note for #12778 2025-01-16 14:54:29 +00:00
Matt Westcott 581bb5ccd7 Use double quotes in code snippet
Co-authored-by: sag​e <laymonage@gmail.com>
2025-01-16 14:53:16 +00:00
Matt Westcott 54797e3826 Document Block.get_template in StreamField usage guide 2025-01-16 14:53:16 +00:00
Cynthia Kiser f3d1765353
Update example for customizing "p-as-heading" check (#12763)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-15 16:34:13 +00:00
Matt Westcott 8b3eb44340 Fix TestFormPageWithCustomFormBuilder assertion against Django 5.1.5 and other security releases
Django 5.1.5 (and other security releases released today) has added a `max_length` attribute to GenericIPAddressField, which breaks an assertion in the form builder tests that compares HTML directly. Change this to a BeautifulSoup-based test so that it works on older and newer releases.
2025-01-15 10:58:27 +00:00
Andy Babic 88a3a397ca Prevent redundant calls to Site.find_for_request() from Page.get_url_parts() (#12454) 2025-01-15 00:41:57 +00:00
Rishabh Sharma 782aa0e16b
Reduce confusing spacing below StreamField blocks help text. Fix #11888 (#11934)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 10:00:09 +00:00
Ayaan cb11ec3e01
Upgraded sass-loader to remove Sass warnings (#12728)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 08:44:47 +00:00
Tom Usher 75e07498f4 Add support for specifying an operator on Fuzzy queries (#12714) 2025-01-13 17:04:35 +00:00
Thibaud Colas d20c1b66bf release notes for #12751 2025-01-13 13:05:53 +00:00
Sage Abdullah da12f4a284 Use explicit label for defaulting to server language in account settings 2025-01-13 13:05:53 +00:00
Sage Abdullah 944fd02dc3 Replace l18n library with Intl-based LocaleController 2025-01-13 13:05:53 +00:00
Sage Abdullah 983a86b0b8 Fix missing heading and breadcrumbs in Account view 2025-01-13 13:05:53 +00:00
Thibaud Colas f0b04200a4 Add v6.3.3 release notes 2025-01-13 12:14:56 +00:00