Wykres commitów

6302 Commity (dad755eee8d266f68a6facc7eb934181e46da70e)

Autor SHA1 Wiadomość Data
Srishti-j18 6054245548 Remove unused `is_active` & `active_menu_items` from `wagtail.admin.menu.MenuItem`
These methods are no longer utilized in the codebase and have been superseded by JavaScript-based handling of active menu items. Specifically, the sidebar-menu-item--active class, responsible for theming active menu items via CSS, is now exclusively managed by JavaScript.

Cleaned up the related test from wgatail.admin.tests.tests.py : wagtail.admin.tests.tests.TestMenuItem.test_menuitem_reverse_lazy_url_pass

Fixes #11433
2024-12-03 08:26:38 +10:00
LB 585b9b4b04 Add changelog for #12641 2024-12-03 07:53:40 +10:00
LB 3a19f450f6 Fixup changelog typo 2024-12-03 07:53:40 +10:00
LB 26442631c7 Add changelog for #11202 2024-12-03 07:15:09 +10:00
Sage Abdullah f8f99833f2 Refactor settings EditView to make better use of generic EditView (#12635) 2024-12-02 15:18:09 +00:00
Matt Westcott b81b899c0c credit Sage on search term report 2024-12-02 15:02:39 +00:00
Clifford Gama a142363a80 Add missing backticks on image tag 2024-12-02 12:10:10 +00:00
Clifford Gama a1de5bdbd7 Introduce tags and filters as they are in user-guide docs (#12647) 2024-12-02 12:07:48 +00:00
Sage Abdullah 839193ff3c Remove unused LinkController
See #11736
2024-11-29 18:17:00 +10:00
Sage Abdullah b7a4271930
Move release note for #12570 to 6.3.2 2024-11-28 10:06:16 +00:00
Bartosz Cieliński 5815a7e1ef Ensure Draftail features wrap in case there is a lot of added features 2024-11-28 08:11:12 +10:00
Strapchay b3ba89b2ec Fix commenting not working on pages with read_only FieldPanels
Fixes #11838
2024-11-28 07:12:54 +10:00
ankit02327 79c9ce266c Update community guidelines link in first contribution guide 2024-11-28 06:55:39 +10:00
LB c416cfb7d6 Fix minor typos
Update to US spelling
2024-11-27 15:33:59 +00:00
LB f5a08646c9 Add changelog for #12579 2024-11-27 20:34:42 +10:00
Matt Westcott 836b8138d3 Prevent generic model edit view from unquoting non-integer primary keys multiple times
Fixes #12599
2024-11-27 20:11:52 +10:00
Srishti-j18 ffe294bc7b Added unit tests, storybook & JSDoc items for DrilldownController
Fixes #12511
2024-11-27 19:29:10 +10:00
Matt Westcott 8026108fa4 Update Noah van der Meer's name in contributors 2024-11-26 15:39:26 +00:00
LB dddac974d2 Add changelog #12535 2024-11-26 08:23:33 +10:00
joelwilliam2005 dd4b40d467 Show the correct privacy status in the sidebar when creating a new page
Fixes #12277
2024-11-26 07:47:21 +10:00
Clifford Gama 7566fb84e0 Docs: Use sentence case for titles in pages/theory.md 2024-11-26 06:46:21 +10:00
Clifford Gama 8df6cae90c Docs: Break Scheduled Publishing into multiple subheadings 2024-11-26 06:38:26 +10:00
Sage Abdullah 6b84e93259 Link to HTTPMethod in Page.handle_options_request() docs 2024-11-26 06:32:45 +10:00
LB cc335cad5f
Reinstate modal-workflow self.ajaxifyForm & add unit tests
- Fixes #12618
- Regression from #12380
2024-11-22 16:14:32 +00:00
Matt Westcott 9cacfe0dc2 Release note for #12612 2024-11-22 16:13:35 +00:00
Matt Westcott f9e4e10fce Release note for #12608 in 6.4 2024-11-22 12:30:03 +00:00
Matt Westcott 98f0cd5d79 Release note for #12608 in 6.3.2 2024-11-22 12:29:38 +00:00
Jake Howard 6b44838841 Use correct connection when searching (#12508)
- Use the indexes preferred DB, not the indexing model
- Use write connections for writes, and reads for reads
2024-11-22 10:23:26 +00:00
Matt Westcott 2b05b6a295 Release note for #12589 in 6.3.2 2024-11-22 09:56:28 +00:00
LB 4bd95942e7 Docs: Fix up formatting on tutorial 'create' pages 2024-11-22 17:16:03 +10:00
Clifford Gama 7aeadde451 Update tutorial instructions to use icon for adding children pages
- Reflects changes added in #11012
2024-11-22 17:16:03 +10:00
Matt Westcott 09a9261f7d Add release note for #12341 2024-11-21 18:37:24 +00:00
Matt Westcott 252ca973d3 Release note for #12566 2024-11-21 18:00:54 +00:00
LB 57f7abda43 Add a changelog entry for #12569
Fixes #12563
2024-11-20 16:31:49 +10:00
Andy Babic 66f1e817eb
Allow page types to easily restrict what type of requests they respond to (#12473)
* Allow page types to specify the request methods they support and block unsupported requests in serve()
* Use 'before_serve_page' hook to serve OPTIONS responses
* Add checks to RoutablePageMixin.serve() where the parent implementation is bypassed
* Rename check_http_method to check_request_method and actually use the return value
* Support Python 3.9 through to current approaches for `http` method strings
* Include documentation, docstrings & changelog entry
2024-11-20 10:15:36 +10:00
LB 3697ee1f2a Eslint - fix location of storybook folder & remove eslint ignore 2024-11-20 07:52:43 +10:00
LB acd2c535f6 Remove canvas-to-blob polyfill
Historic recommendation for jQuery image upload before all browsers supported `canvas.toBlob`.

All modern browsers supported by Wagtail have had support for this for many years now.

- See https://caniuse.com/?search=toblob
- See https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob
2024-11-20 07:46:40 +10:00
Matt Westcott 3697501426 Fill in release date for 6.3.1 2024-11-19 15:56:45 +00:00
Sage Abdullah ae1dab03ab Lower docs search ranking for release notes (#12586)
Except for the 'upgrading' section, as it's still generally useful
2024-11-19 15:24:22 +00:00
Matt Westcott f833a2f520 Remove forced capitalization of site name on admin dashboard (#12601)
Fixes #12592
2024-11-19 15:14:04 +00:00
helloshiv f0d3edfad6
Fix wagtailcache and wagtailpagecache examples to not use quotes for the fragment_name 2024-11-19 14:18:17 +00:00
Sage Abdullah f741f9f333
Release note for #12576 in 6.3.1 2024-11-19 14:16:50 +00:00
Sage Abdullah b1251d8279
Release note for #12573, #12587, #12590, #12591 in 6.3.1 2024-11-19 14:13:29 +00:00
Sage Abdullah a5761bc2a9 Improve spacing of page permissions table in Group settings (#12585) 2024-11-18 16:45:54 +00:00
Matt Westcott d2b9bd224d Release note for #12571 in 6.3.1 2024-11-18 15:51:08 +00:00
Clifford Gama f4d3c80e2f Fix typo: remove reference to PublishingPanel as a method 2024-11-18 12:49:15 +00:00
Clifford Gama ed084ae3bd Fix misleading wording - clarify that get_site_root is created, not used 2024-11-18 12:48:39 +00:00
Clifford Gama 791f031e16 Fix minor typo - capitalize Page model 2024-11-18 12:40:12 +00:00
Thibaud Colas cd8c19d762 Rename tutorial blog index page to reduce the likelihood of slug issues (#12576) 2024-11-15 16:24:52 +00:00
Clifford Gama 9509d6409f Clarify get_context() usage in BlogTagIndexPage example (#12573) 2024-11-15 16:21:10 +00:00
Matt Westcott e7dd00e427 Ensure that creation of image/document choose permissions happens after access_admin permission exists
As per https://github.com/wagtail/wagtail/issues/12581#issuecomment-2478983521.
Fixes #12581
2024-11-15 16:18:20 +00:00
Sage Abdullah 5eca192bd2
Release note for #12564 2024-11-13 16:30:50 +00:00
Matt Westcott 5212061485
Normalize StreamField.get_default to prevent creation forms from breaking
Fixes #12561

When a ModelForm is constructed without passing an `initial` instance, the result of `StreamField.get_default()` will become the default value of the form field without the intermediate step of being set on a model instance and read back (which would have the side effect of calling `normalize()`). Form rendering only works with normalized values (e.g. StreamValue rather than list-of-tuples for a StreamBlock), so the return value from `get_default()` needs to be normalized.
2024-11-13 15:46:07 +00:00
Sage Abdullah 210f35f7ec
Release note for #12556 2024-11-13 14:20:10 +00:00
Matt Westcott aa31d329ab
Stop invalid Site hostname records from breaking preview
As made famous by https://youtu.be/v3KEaMTfKg0?t=319 :-)

By design, Wagtail tolerates the default Site record being left at its default value of 'localhost' up to a certain point. Ideally, that point should be when it becomes strictly necessary for Wagtail to care about hostnames (such as when setting up the second site of a multi-site installation) and it should be clear to the developer what has happened and how to fix it.

In practice, that point often comes when the developer deploys their site to production, sets `DEBUG=False`, and is then required by Django to set `ALLOWED_HOSTS` to their real domain name. At this point, front-end page requests work (because the initial site record is default=True, matching any domain including the live one) but previews are broken (because the dummy request object is still formed using localhost as per the site's hostname field, which is disallowed by ALLOWED_HOSTS).

This is unnecessary, and can be avoided by validating the hostname against ALLOWED_HOSTS and substituting one that _is_ allowed if necessary, as we already do for pages that don't have an associated site record.
2024-11-13 13:57:14 +00:00
Sage Abdullah 6315d3c1cc
Release note for #12551 2024-11-12 10:59:57 +00:00
Sage Abdullah 92714d87e7
Minor tweaks per code review 2024-11-12 10:58:04 +00:00
Sage Abdullah 533481b0f4
Add note about extending section not subject to deprecation policy 2024-11-08 20:09:39 +00:00
Sage Abdullah 991d9bcab5
Update release process documentation 2024-11-08 20:09:39 +00:00
Sage Abdullah f43cf941d5
Improve upgrade guide to reflect current versioning scheme and highlight important steps 2024-11-08 20:09:39 +00:00
Sage Abdullah 246f3c7eb5 Fix profile picture upload not working in account settings (#12548)
Fixes #12547
2024-11-07 13:03:20 +00:00
Matt Westcott 122b9683fa Add 6.3.1 release notes 2024-11-07 13:03:13 +00:00
Matt Westcott e7e57cd29e Release note for #12488 2024-11-05 22:36:43 +00:00
ayaan-qadri b0c90d4be2 Removed preventDefault from openPreviewInNewTab in PreviewController
Relates to #10356
2024-11-06 07:47:10 +10:00
LB 825a77d6c2 Remove all eslint-disable no-undef & use global comments (#12527)
Recommendation is to either declare globals in config or in a `/* global ` comment
See https://eslint.org/docs/latest/rules/no-undef#rule-details
2024-11-05 20:11:09 +00:00
LB cae3229716 Remove unnecessary DOM Range polyfill (#12496)
- Remove DOM Range polyfill provided by https://developer.mozilla.org/en-US/docs/Web/API/Range
- All Wagtail supported browsers, as of a few years ago, have built in support for `document.createRange`, see https://developer.mozilla.org/en-US/docs/Web/API/Range
2024-11-05 20:01:31 +00:00
Matt Westcott 3013673c55 Release notes for #12480 2024-11-05 19:48:24 +00:00
John-Scott Atlakson 9d31fd3fa5 Fix - Ensure `WagtailAdminFormPageForm.clean` returns `cleaned_data`
Return `cleaned_data` for more consistent subclassing.

Updated documentation with an example of adding custom page validation for form fields.

Add unit test to ensure that the documented usage of extending `WagtailAdminFormPageForm` works as expected.

Originally from #10375
2024-11-05 19:22:33 +00:00
minusf f600a356e6
Add missing apostrophe in settings documentation (#12542) 2024-11-05 16:09:55 +00:00
Sage Abdullah f21f6dd884
Release note for #12525 2024-11-05 12:56:59 +00:00
Sage Abdullah 794fa3bcaf
Improve documentation guidelines on writing docstrings and API reference 2024-11-05 12:52:57 +00:00
Sage Abdullah a81cc7345d
Remove e.g. in documentation guidelines 2024-11-05 12:45:26 +00:00
Sage Abdullah 17ce66ad45
Update outdated Pillow links 2024-11-05 10:44:41 +00:00
Sage Abdullah f54b03d595
Use intersphinx to link to treebeard docs 2024-11-05 10:44:41 +00:00
Sage Abdullah da3e0ade37
Use intersphinx to link to MyST-Parser docs 2024-11-05 10:44:41 +00:00
Sage Abdullah ddf8423f3c
Use stable link to Wand docs
There's only one link to Wand's docs, not worth adding an
intersphinx_mapping entry.
2024-11-05 10:44:40 +00:00
Sage Abdullah b7cf847d69
Replace outdated Wagtail editor manual link with link to the editor guide 2024-11-05 10:44:40 +00:00
Sage Abdullah 503d1a743a
Replace hardcoded Python docs links with intersphinx 2024-11-05 10:44:40 +00:00
Sage Abdullah 5615deb5b1
Add Django's custom Sphinx roles and use them to link to settings
This is necessary for rST docs, i.e. in docstrings and in eval-rst
blocks. Without this, Sphinx cannot seem to understand the role. See:
https://stackoverflow.com/questions/13387125

MyST-Parser seems to be smarter, it can figure out these custom
roles without having to register the types ourselves. This is evident in
the previous commits where I already use the :setting: role in markdown
docs.
2024-11-05 10:44:40 +00:00
Sage Abdullah 9a5be8f180
Replace more hardcoded Django links with intersphinx in rST docs
Some link labels are changed to just the code part, because using Sphinx
roles for code objects (e.g. methods, attributes) would always format the
text as inline code.

It's currently impossible to customize the formatting of a link's text in
rST. See https://stackoverflow.com/questions/4743845
2024-11-05 10:44:39 +00:00
Sage Abdullah 857b26e5a0
Replace hardcoded Django docs links to intersphinx links 2024-11-05 10:44:39 +00:00
Sage Abdullah 9d69863f3c
Use intersphinx to link to Sphinx docs 2024-11-05 10:44:39 +00:00
Sage Abdullah 795ca50dc8
Improve clarity between Markdown/MyST, rST, and Sphinx in docs guidelines
Add more emphasis on the divide between when to use Markdown and when to
use rST.

Also improve examples for versionadded and versionchanged directives.
2024-11-05 10:44:39 +00:00
Sage Abdullah 0dc1698857
Do not index autodoc examples 2024-11-05 10:44:39 +00:00
Sage Abdullah 443ccb23a8
Update docs for writing admonitions
It's MyST syntax, not rST, so it's OK to use it (sparingly).

Custom admonitions are possible with the `admonition` directive.
2024-11-05 10:44:38 +00:00
Sage Abdullah 81e6d79c5e
Improve guidelines for writing links in docs 2024-11-05 10:44:38 +00:00
Sage Abdullah dddf9bfd81
Highlight Markdown vs reStructuredText differences for inline styles 2024-11-05 10:24:51 +00:00
Sage Abdullah 121624d5b1
Add syntax highlighting to code block examples 2024-11-05 10:24:51 +00:00
Jake Howard 71c93cb39c Remove non-unsert support for Postgres indexing (#12509)
PostgreSQL 9.4 support was dropped with the release of Django 3.0.
2024-11-04 18:19:29 +00:00
rahulsamant37 5e4c3f12c3 Remove defunct oEmbed providers (#12537)
Fixes #12054
2024-11-04 18:04:33 +00:00
Matt Westcott 0cab6641cc Release note for #12539 2024-11-04 15:40:44 +00:00
LB 21206dc3e7 Clean up JS comments to be aligned to JSDoc where suitable 2024-11-04 21:14:04 +10:00
LB 6f34d3c299 Add changelog for #12503
Fixes #12498
2024-11-02 10:29:19 +10:00
Aayushman Singh 71a735476c Docs - images/documents title generation - update for CSP compliant examples
- Add helpful intro content, insure formatting of Python/JS is consistent
- Avoid inline scripts, instead ensure the example shows external script usage
2024-11-02 10:29:19 +10:00
Aayushman Singh 7f6e7d4062 Docs - Improve hooks & extending pages with CSP compliant examples
- Avoid `mark_safe` and use `format_html` where possible
- Avoid inline scripts, instead ensure the example shows external script usage
2024-11-02 10:29:19 +10:00
Aayushman Singh b0479592ff Docs - Update extending/admin_views to have CSP compliant examples
- Changed style tag, to an external style file
- Also fixed minor spelling mistake "calender" -> "calendar" in line 190
- Avoid inline styles, instead ensure the example shows external style usage
2024-11-02 10:29:19 +10:00
Aayushman Singh e28beb5b45 Docs - Writing guidelines - Add code example considerations
Start a small section to offer some guidance to ensure that code examples are secure, accessible and easier to use.
2024-11-02 10:29:19 +10:00
manu b2cd95bf3b Fix sidebar page explorer transitions - avoid overflow 2024-11-02 09:59:21 +10:00
LB 114998fa21 Fix changelog for #12495 add changelog for #12510 2024-11-02 09:04:55 +10:00
LB 940ac10a9c Remove unused uuid module 2024-11-02 09:02:09 +10:00
Matt Westcott 793539d208 Fill in release date for 6.3 final 2024-11-01 13:21:07 +00:00
Matt Westcott f110ddd934 Fill in release date for 6.2.3 2024-11-01 13:20:09 +00:00
Matt Westcott e8ca33b023 Fill in release date for 5.2.7 2024-11-01 13:20:08 +00:00
Matt Westcott a8e243d36b Release note for #12521 in 6.2.3 2024-11-01 13:14:05 +00:00
Matt Westcott e931a40451 Release note for #12427 in 6.2.3 2024-11-01 12:50:09 +00:00
Matt Westcott 9ef8c834d2 Release note for #12367 in 6.2.3 2024-11-01 12:33:45 +00:00
Matt Westcott 0313522d38 Release note for #12367 in 5.2.7 2024-11-01 12:33:35 +00:00
Bojan Mihelac cc1805dc86
Fix sub-menus within the main menu cannot be closed on mobile (#10747) 2024-11-01 12:10:53 +00:00
Ayaan 0913118da4
Replaced Twitter references in the docs with more appropriate alternatives (#12516). Fix #12483
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-11-01 11:03:54 +00:00
Thibaud Colas b1fc61a5a2 Add release notes for ##12521 2024-11-01 10:01:01 +00:00
Matt Westcott 593b95cad9
Document the ability to migrate from ImageChooserBlock to ImageBlock (#12518) 2024-11-01 09:58:42 +00:00
Thibaud Colas d7ccda33f6
Update sphinx-wagtail-theme and search implementation (#12521) 2024-11-01 09:35:43 +00:00
LB b903b572d9 Update changelog for 6.3 cherry-pick #12490 #12506 #12507
Offline formats cherry-picked to 6.3 release
2024-10-31 08:12:48 +10:00
LB 9b4999ed9d Add changelog for #12507
Fixes #12484
2024-10-31 07:52:49 +10:00
Sage Abdullah 49a1e56d10 Replace Torchbox with 'Wagtail core team and contributors' in docs config 2024-10-31 07:52:49 +10:00
Sage Abdullah b6abec16d0 Add minimal epub metadata
Ref: 97a6a678c4/docs/conf.py (L380-L386)
2024-10-31 07:52:49 +10:00
Sage Abdullah 3802f8bf46 Fix remaining XHTML errors in docs to remove ePub build errors
Had to remove the <details> element for the section linking example in
the "Reference links" section.

This is because Sphinx/MyST renders a <section> element for each heading
and closes it when the next heading starts. If we create a heading
inside a <details> element, the <section> element will not be closed
until the next heading starts, which generates invalid HTML.
2024-10-31 07:52:49 +10:00
Sage Abdullah 78120671da Ensure docs template layout override is XHTML-compatible for ePub 2024-10-31 07:52:49 +10:00
Sage Abdullah 7955b815ce Fix HTML errors in wagtail_icons_table.txt 2024-10-31 07:52:49 +10:00
Sage Abdullah a2c8e2b26f Suppress unknown files warning when building the ePub docs 2024-10-30 14:29:22 +00:00
Joel William 7b2b44b541 Documentation - Configure RTD to build all offline formats
- https://docs.readthedocs.io/en/stable/config-file/v2.html#formats

Fixes #12484
2024-10-30 18:26:31 +10:00
Jake Howard f08a947f8e Bypass ALLOWED_HOSTS checks when resolving Site for request (#12129) 2024-10-29 19:41:23 +00:00
LB 3a5ae9c695 Docs - Ensure core models module level docstring does not appear in docs
Avoid the docstring being shared in the model reference documentation, this content is for core development only.
Update name of core modules.
2024-10-29 15:47:39 +00:00
LB b6b9c003ff Doc - Fix minor spelling inconsistency 2024-10-29 15:47:39 +00:00
Srishti-j18 fd9b1ca22b Docs - Update spelling to US customize variants
Fixes #12476
2024-10-29 18:47:43 +10:00
Storm B. Heg d404d37ba5 Extend Pillow version range to allow v11 (#12475) 2024-10-28 18:23:31 +00:00
LB a562d4db6a Docs - Align spelling of 'subpages' to be consistent with rest of docs 2024-10-28 08:34:59 +10:00
Srishti-j18 652de3fcb3 Documentation - Improve code highlighting & formatting for Python docstrings in core models 2024-10-28 08:34:38 +10:00
Matt Westcott 37d9d7eb06 Increase DATA_UPLOAD_MAX_NUMBER_FIELDS in project template & docs
Also recommend increasing this in the "Integrating into Django" docs.

Fixes #12452

- Don't use commas for thousand separator
- Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
2024-10-28 08:27:29 +10:00
Andy Babic e451bbd96a Support application of select_related and prefetch_related lookups to subqueries made by SpecificIterable
- Add queryset methods to reference docs, and provide performance considerations for prefetch_related()
2024-10-28 08:06:03 +10:00
fazledyn fde2e6f26a Close open files when reading within utils/setup.py 2024-10-28 08:04:52 +10:00
Stefan Hammer e7b4daaf32 Fix StreamValue._prefetch_blocks() to skip manually inserted items
Fixes #12320
2024-10-28 07:31:25 +10:00
LB 5477a872c7 Changelog for #11122 & #12418 2024-10-27 20:20:02 +10:00
Srishti-j18 d2f476c050 Documentation - Update page titles to align with Style Guide
- Use sentence case for headings and titles. (as per the Google Developer Documentation Style Guide)
- Fixes #12466
2024-10-27 15:27:03 +10:00
Thibaud Colas b970f635e3 Update developer documentation screenshots for Wagtail 6.3 2024-10-26 01:50:46 +01:00
Thibaud Colas 987bd2a054 Update documentation colors based on latest color theming for more-contrast 2024-10-25 17:11:38 +01:00
LB (Ben Johnston) 61fe21af16
Documentation - Add recent third party tutorials (#12442)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-25 13:50:50 +01:00
activus-d 97a1f5aabd Documentation - Improve project template (wagtail start) & add to management commands reference
Fixes #11938

* Add `wagtail start` to the management commands reference
* Add detail on how to creating templates with the need to escape template syntax by using the verbatim tag
2024-10-25 21:15:30 +10:00
LB fa81e2dbbe Docs - update spelling to US 'customizations' 2024-10-25 21:14:52 +10:00
Alessandro Chitarrini b9e13077bb Documentation - Refine the adding reports page
- Move all generic (page/non-page) class references to the top of the documentation
- Use better heading level nesting cleanly isolate the full page report example
- Relates to #12428
2024-10-25 20:40:02 +10:00
LB d5b56e00f6 Add changelog entry for docs changes #12437
Fixes #12435
2024-10-25 20:30:12 +10:00
Srishti-j18 2d644dd8e2 Documentation - Move tags out from pages model recipes to a standalone advanced topic 2024-10-25 20:30:12 +10:00
Srishti-j18 f588fcf249 Documentation - Reposition model & panel references
- Move model reference to directly under the references section, not the reference/pages section
- Move panel reference to directly under the references section, not the reference/pages section
- Merge panel API with panels reference pages
- Fix confusing heading levels in the page model recipes page
- Fix title in model reference to align with docs style guide
- Adopt US spelling for customize (panels) reference key
2024-10-25 20:30:12 +10:00
Thibaud Colas 25de8011d5 Release notes for #12460 2024-10-24 12:14:09 +01:00
Alex Morega e4e94a5640
Replace X links with Mastodon (#12460)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-24 12:09:59 +01:00
LB c0b2977647 Add links to 6.3 release notes documentation items 2024-10-24 11:51:15 +01:00
LB d459bdb5dc Clean up whitespace items in documentation markdown 2024-10-24 11:51:15 +01:00
Thibaud Colas 46d2e44cd1 Release notes for #12393 2024-10-24 10:18:19 +01:00
Thibaud Colas b680536286 Add release note template for 5.2.7 2024-10-24 09:57:11 +01:00
Thibaud Colas 3895136fd0 Add release note template for 6.2.3 2024-10-24 09:53:53 +01:00
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