Wykres commitów

5099 Commity (9c60d26e1dbd9a5c49b887ed7831e1acbbdadad8)

Autor SHA1 Wiadomość Data
Sage Abdullah 939b14b33c Move snippets.md docs to its own directory 2023-05-24 11:06:00 +01:00
viragjain30 9790cccd9c
Prevent lowercase conversions of IndexView column headers 2023-05-23 15:28:41 +01:00
Christer Jensen bd38c91163
Fix incorrect link to UsageView in EditView for snippets
Currently all links to UsageView in EditView link to `None` instead.
2023-05-23 15:03:21 +01:00
Thibaud Colas b5aa8e24be Release notes for #10460 2023-05-23 08:22:53 +01:00
Thibaud Colas aca340f368 Release notes for #10437 2023-05-22 11:00:21 +01:00
sag᠎e f8a9ddff09
Move comment notifications toggle to the comments side panel (#10437)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-05-22 10:56:15 +01:00
Thibaud Colas f372551a83 Fix StreamBlock documentation indentation 2023-05-20 07:21:48 +10:00
Thibaud Colas 37ea0b16ef Release notes for #10282 2023-05-19 07:12:49 +01:00
Thibaud Colas 0e1de4ccfa Release notes for #10282 2023-05-19 07:12:22 +01:00
Sage Abdullah 188bbbb0c5 Pass the correct for_update value for get_form_class in SnippetViewSet's edit views (#10445)
Fixes #10438
2023-05-17 13:59:15 +01:00
Sage Abdullah cc30fd3a13 Fix crash when deleting a single snippet using the bulk actions interface (#10447)
Fixes #10441
2023-05-17 12:46:02 +01:00
Thibaud Colas efb75c0ae3
Ensure comment buttons always respect WAGTAILADMIN_COMMENTS_ENABLED. Fix #10406 2023-05-17 10:49:16 +01:00
Christer Jensen 2189652ae9
Update documentation for `log_action` parameter on `RevisionMixin.save_revision`
Previous documentation seemed to incorrectly imply that
the default value for `log_action` was `True` when it is
in fact `False`. This can confuse readers not looking at
the method signature.
2023-05-17 10:10:03 +01:00
Sage Abdullah 351bffa304
Release notes for #10421 2023-05-15 16:02:26 +01:00
Matt Westcott d8e8e240f4 Release note for #10430 in 5.0.1 2023-05-15 14:37:41 +01:00
Matt Westcott df91b382f3 Release note for #10430 in 4.2.4 2023-05-15 14:34:12 +01:00
Matt Westcott 900dce9362 Release note for #10430 in 4.1.6 2023-05-15 14:34:06 +01:00
Daniel Kirkham c895e9031b Fix treebeard link 2023-05-14 07:40:13 +10:00
LB Johnston f1560625aa Docs - fix minor typo on Panels reference 2023-05-09 17:43:06 +10:00
LB Johnston 696d4557a9 Add changelog for #10408 2023-05-09 07:30:08 +10:00
Thibaud Colas 3671285fa5 Update ReadTheDocs settings to v2 to resolve urllib3 issue in linkcheck extension 2023-05-08 22:11:18 +01:00
Esper Kuijs 95bb06bd3c Fix typo in 5.0 release doc 2023-05-08 22:10:51 +01:00
Thibaud Colas acaff169c0 Update admin views, Draftail, TableBlock documentation images 2023-05-05 07:17:34 +01:00
Thibaud Colas e207db534e Update getting started tutorial images 2023-05-05 07:17:34 +01:00
Krzysztof Jeziorny 0552af3c30 Update third_party_tutorials.md
The article "10 (recommended) Wagtail Best Practices" is gone and not to find on the origin website.
2023-05-03 10:34:03 +01:00
Matt Westcott f6421c0eeb Fill in release date for 5.0 final 2023-05-02 15:29:09 +01:00
Matt Westcott 07f80a6caa Release note for #10367 in 4.2.3 2023-05-02 15:06:28 +01:00
Matt Westcott 170e842a03 Release note for #10367 in 4.1.5 2023-05-02 15:06:28 +01:00
Sage Abdullah 40b828a767 Link to RFC 85 and mention modeladmin deprecation in future release 2023-05-02 13:39:39 +01:00
Matt Westcott f44b7b326b Credit YouGov for sponsorship of SVG support 2023-05-02 12:56:46 +01:00
Thibaud Colas b6d4e3109f Remove incorrect v4.1.5 release items 2023-05-02 12:03:09 +01:00
Thibaud Colas e407fb3612 Add release notes for #10371 2023-04-28 17:22:17 +01:00
Thibaud Colas 5cc663cf28 Move v5.0 snippets release notes to their own section 2023-04-28 16:20:39 +01:00
sag᠎e aa96dda15a
Fix dismissible SubMenuItem not showing the number badge when there's a new item (#10107)
Previously, we rely on the fact that the SubMenuItem itself is a dismissible. So, we decide how to show/hide the number badge based on the value for the SubMenuItem's dismissible ID on the server. However, this means that if the user has dismissed the SubMenuItem and we add new dismissible child items within it (e.g. update the ID for the 'What's new in Wagtail version' child item), the number badge will not show up. This commit changes the logic to show/hide the number badge based on whether there are any undismissed items within the SubMenuItem and whether the it has been opened or not.
2023-04-28 15:58:57 +01:00
Matt Westcott 511cf81e09 Add Wagtail 5 pypi classifier to docs
Fixes #10373 - classifier has been added in https://github.com/pypa/trove-classifiers/pull/138
2023-04-27 13:59:44 +01:00
4the4ryushin ecce6bc1c0 added support for parsing multiple queries (#10342) 2023-04-26 11:31:31 +01:00
Matt Westcott b946b3d66d Release note for read-only FieldPanels (#9129) 2023-04-25 17:08:19 +01:00
Andy Babic 3d7b540b10 Update docs 2023-04-25 16:06:40 +01:00
Sean Kelly d68baeb67f
Mark calls to md5 as not being used for secure purposes 2023-04-25 11:07:20 +07:00
Matt Westcott f6781a29d0 Revert "Mark calls to md5 as not being used for secure purposes (#10192)"
This reverts commit 4dea70250b.
2023-04-24 15:47:52 +01:00
Sean Kelly 4dea70250b Mark calls to md5 as not being used for secure purposes (#10192)
Fixes #10184
2023-04-24 15:08:56 +01:00
Ramon Wenger 2ca09bdc37 Add documentation for using a StructBlock inside of a StreamField
Fixes #10231
2023-04-24 14:52:45 +01:00
zerolab 23a8fe8e0e Fix `BaseChooser.get_instance` for non-existing pks (#10362)
Fixes #10348

e.g. when trying to move an existing page when `parent_page_types`
is added after the page is created under a different parent page type than the one allowed
2023-04-24 13:55:13 +01:00
LB Johnston 5e560a7e1d Updates for new contributors (#10071)
- Adds a new first contribution guide page
- Refines the contributing index to add more ways to get involved & cleans up that section
- Moves the committing TOC link to the bottom of the contributing index page as this is only needed for core team
- Fixes #10070
2023-04-24 13:23:43 +01:00
Storm B. Heg 267b042e71 Update Transifex link in docs
Subdomain was changed on April 3rd and redirects will stop on July 2023.
2023-04-23 20:11:39 +01:00
Onno T 4d9f4898de Document how to add non-ModelAdmin views to a ModelAdminGroup (#10022) 2023-04-21 18:26:03 +01:00
Jake Howard a2e1becc49 Move security.txt to wagtail.org (#9751) 2023-04-21 18:01:09 +01:00
Matt Westcott 5f870fbd13 Set up release notes for 5.1 2023-04-21 13:47:10 +01:00
Matt Westcott 4a47bc611b Remove old versionadded / versionchanged notes 2023-04-21 13:47:10 +01:00
Oli 459fbb2cc9 Switch to ruff for flake8 / isort code checking (#10324) 2023-04-21 11:58:27 +01:00
LB Johnston b6392eab05 Docs - Add recent third party tutorials 2023-04-20 18:12:47 +01:00
Matt Westcott 85c9b6689f Ensure that models can still be registered with ReferenceIndex.register_model after the initial set of signals has been connected 2023-04-20 11:21:43 +01:00
Daniel Kirkham 659251b8a7 Added Documentation 2023-04-20 11:21:03 +01:00
Sage Abdullah b9f8a6b6c0 Dispatch resize event to resize Handsontable on initialisation (#10367)
Fixes #10355
2023-04-20 09:48:58 +01:00
Sage Abdullah d650af3f39
Release notes for #10366 2023-04-20 14:17:08 +07:00
sag᠎e ed36b5b9b6
Improve customisability of the accessibility checker configuration. Fix #10137 (#10333)
* Extract userbar BaseItem.get_context_data()
* Extract Axe config into smaller attributes and methods for easier overrides
* Add TypeScript interface for WagtailAxeConfiguration
* Improve typings for userbar.ts
* Separate Axe `runOnly` and `rules` options
* Pass request object to all axe configuration methods
* Remove Axe runOnly option if it's falsy
* Add docs for customising the accessibility checker
* Use lists for Axe include and exclude selectors
* Parse JSON script when testing accessibility checker config
* Add tests for customising accessibility checker configuration

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-04-20 07:46:56 +01:00
zerolab cd131ddec8 Skip Locale query when WAGTAIL_I18N_ENABLED is False
- Fixes #10329
2023-04-20 07:07:40 +10:00
Matt Westcott 87eb961b0b Release note for #10330 2023-04-19 15:14:14 +01:00
Sage Abdullah c027e0bce4 Hide Snippets menu item if all snippet models have their own menu items 2023-04-19 15:13:42 +01:00
Sage Abdullah 7ba2098d1a Add docs and tests for grouped snippets registration 2023-04-19 15:13:42 +01:00
Sage Abdullah 5fb4d6316f Allow SnippetViewSet.model to be defined directly on the class 2023-04-19 15:13:42 +01:00
Sage Abdullah dde58c718d Add docs and tests for separate menu item registrations for Snippets 2023-04-19 15:13:42 +01:00
sag᠎e 70bb15a7e1
Prevent long preview mode names from making the select element overflow the side panel. Fix #10240 (#10354) 2023-04-19 14:30:21 +01:00
Thibaud Colas 69fc0d41d2 Release notes for #10056 2023-04-19 13:38:23 +01:00
Thibaud Colas 567b999548 Set up new color design tokens for light and dark themes 2023-04-19 13:38:23 +01:00
Matt Westcott 26a14da3d7 Release note for #10299 2023-04-19 13:25:58 +01:00
Sage Abdullah 66c0ef48e9 Add docs for setting panels/edit_handler on SnippetViewSet 2023-04-19 13:24:17 +01:00
Sage Abdullah 88b742b979 Clarify docs of Snippets features to better reflect current state 2023-04-19 13:24:17 +01:00
Matt Westcott 8ceede175f Deprecate the partial_match argument 2023-04-19 10:53:25 +01:00
Matt Westcott db691b5f1b Remove use of partial_match on search 2023-04-19 10:53:25 +01:00
Thibaud Colas 9b4378485c Release notes for #10344 2023-04-18 15:58:20 +01:00
Thibaud Colas 117eae2299 Release notes for #10347 2023-04-18 15:32:56 +01:00
Sage Abdullah 72f77e4359
Add tests and release notes for #10336 2023-04-18 20:25:33 +07:00
SwA 0447b259c7 fix: modify get_full_url to omit adding base_url in inaplicable cases (#10291)
Fixes #10285
2023-04-18 12:30:20 +01:00
Sage Abdullah 64ea6dd8b8 Fix missing newline in editing interface customisation docs
Regression in 2abd7916af
2023-04-18 19:14:02 +10:00
Daniel Kirkham 0d77311fb6 Update number of tests 2023-04-18 18:14:48 +10:00
Thibaud Colas 68cea0429a Release notes for #10320 2023-04-18 02:49:04 +01:00
Sage Abdullah 136a5486d8 Add decimal and regex icons 2023-04-18 02:49:04 +01:00
Sage Abdullah d696009a36 Revamp panel types documentation and other docs that reference it
This removes the parameters that come from the base Panel class (e.g.
heading, classname, etc.) from the specific panel types to avoid
repetition. Instead, these parameters are properly documented in the
separate "Panel customisation" section. They are also explicitly listed
in the Panel API reference.
2023-04-18 02:49:04 +01:00
Sage Abdullah eb49f3cdf0 Add docs for FieldPanel's icon parameter 2023-04-18 02:49:04 +01:00
Sage Abdullah b017157818 Fix extraneous period typo in page editing interface docs 2023-04-18 02:49:04 +01:00
Karl Hobley 7f297cd019
Update comment list positioning so that they slide in/out with the sidebar (#8345) 2023-04-18 00:58:14 +01:00
Sage Abdullah 167471b1f7 Allow customising the search_fields and search backend to use via SnippetViewSet (#10290) 2023-04-18 00:06:09 +01:00
Sage Abdullah 3965ceedfa Allow default ordering of Snippets IndexView to be specified via SnippetViewSet (#10276) 2023-04-17 23:58:20 +01:00
Aadi jindal ed58c692ca Allow Action controller to trigger a redirect
- Migrate site switcher to use Stimulus approach via w-action
- Closes #10035
2023-04-18 08:30:22 +10:00
LB Johnston 37192f847b Fix changelog for #10212 2023-04-18 08:07:54 +10:00
Suyash Srivastava 39fa706ff2 Update ActionController with a click method
- Partial change towards #10167
2023-04-18 08:04:01 +10:00
Suyash Srivastava e72e454ba5 Migrate autosize jQuery to stimulus controller w-autosize
- Closes #10170
2023-04-18 05:41:00 +10:00
Lovelyfin00 cc23aa6be7 Migrated initDismissibles to a Stimulus controller w-dismissible
- Closes #10166
2023-04-17 23:27:24 +10:00
Albina 935d29e2f5
Accessibility checker outlines feature (#10176)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-04-17 09:59:55 +01:00
Thibaud Colas f944d744b4 Release notes for #9755 2023-04-17 09:28:16 +01:00
Matt Westcott 09fb848288 Release notes for #10271 / #10275 / #10294 2023-04-14 15:38:24 +01:00
Sage Abdullah 9e914dbe87 Remove usage_url and get_usage methods from snippet models
The usage_url can be resolved from the SnippetViewSet,
and the get_usage can be replaced with ReferenceIndex.get_grouped_references_to
2023-04-14 15:35:10 +01:00
Sage Abdullah ff363dee87 Remove get_admin_url_namespace() and get_admin_base_path() from snippet models 2023-04-14 15:34:58 +01:00
Sage Abdullah 87cbf01894 Add docs and tests for overriding SnippetViewSet.get_queryset() 2023-04-14 12:34:11 +01:00
Thibaud Colas 8aa0bf9275 Release notes for #10303 2023-04-14 08:38:01 +01:00
Thibaud Colas 8ee0141361 Update wagtail_icons_table.txt 2023-04-14 08:38:01 +01:00
Thibaud Colas 93732690a3 Update icon visuals to FontAwesome 6, with deprecation warnings for removed icons 2023-04-14 08:38:01 +01:00
Sage Abdullah dc6c0b0949 Allow overriding SnippetViewSet template prefix 2023-04-13 17:53:58 +01:00
Sage Abdullah f2ab3ae774 Add docs and tests for Snippets template overrides 2023-04-13 17:53:58 +01:00
Sage Abdullah 1992c72791 Add missing docs for chooser_viewset_class 2023-04-13 17:53:58 +01:00
Hanoon 70a6230a65 Migrate submit translation bulk toggle to Stimulus Controller (w-bulk)
- Closes #10247
- adding BulkController files and removing {% block extra_js %} from submit_translation.html
- add unit tests for new controller
- partial work on CSP compliance #7053
2023-04-13 22:28:17 +10:00
Matt Westcott f88796b3dd Release note for #10208 2023-04-12 16:26:05 +01:00
Thibaud Colas 574cc05d19 Release notes for #10278 2023-04-12 11:51:00 +01:00
Thibaud Colas c2c37ab143 Update documentation referring to icon class names 2023-04-12 11:51:00 +01:00
Matt Westcott 18e57574cb Formalise support for Django 4.2 2023-04-03 17:14:29 +02:00
Matt Westcott e219968e60 Fill in release date for 4.1.4 2023-04-03 12:41:18 +02:00
Matt Westcott 879295913a Fill in release date for 4.2.2 2023-04-03 12:41:18 +02:00
Matt Westcott d4022310cb Release note for CVE-2023-28837 in 4.1.4 2023-04-03 12:41:18 +02:00
Matt Westcott c9d2fcd650 Release note for CVE-2023-28837 in 4.2.2 2023-04-03 12:41:18 +02:00
Matt Westcott eefc3381d3 Release note for CVE-2023-28836 in 4.1.4 2023-04-03 12:41:18 +02:00
Matt Westcott bc84bf9815 Release note for CVE-2023-28836 in 4.2.2 2023-04-03 12:41:18 +02:00
Matt Westcott a3498b260f Release note for #10256 2023-04-03 10:24:30 +02:00
Sage Abdullah bcbaafd116 Add docs and tests for snippets listing filters via list_filter 2023-04-03 10:24:30 +02:00
Matt Westcott def7e44a38 Release note for #10266 in 4.2.2 2023-04-01 01:23:31 +01:00
Matt Westcott d82ae50ca9 Release note for #10266 in 4.1.4 2023-04-01 01:23:31 +01:00
Matt Westcott 4498956f05 Release note for #10284 in 4.2.2 2023-04-01 00:58:17 +01:00
Matt Westcott 2cd4730e63 Release note for #10284 in 4.1.4 2023-04-01 00:58:10 +01:00
Thibaud Colas f82ff1e22c
Move help text above all form fields (#10302)
* Move all help text above fields
* Adjust vertical spacing of form fields and panels
* Move the page title’s help text below the field
* Release notes
2023-03-31 17:05:20 +01:00
Matt Westcott 84fdbf3783 Make /admin/jsi18n/ view accessible to unauthenticated users
Fixes #10293
2023-03-31 14:55:12 +01:00
LB Johnston 7a6d2bc689 5.0 release notes clean up
- Remove unnecessary `docs:` prefix on documentation item
- Fix w-slug attribute example (should end with -value)
- Remove heading levels for old/new syntax in progress button details
- Use a consistent approach to Stimulus adoption entries (focus on data attributes used, not Stimulus migration)
2023-03-31 07:07:20 +10:00
Matt Westcott e6282572c3 Release note for #10298 2023-03-30 16:12:15 +01:00
Matt Westcott 9e4226dd61 Release note for #10297 2023-03-30 14:54:41 +01:00
Matt Westcott fd88ec3eb7 Release note for #9842 2023-03-30 10:45:09 +01:00
Joshua Munn 2424df3d68 Remove WAGTAILIMAGES_ALLOW_SVG setting for WAGTAILIMAGES_EXTENSIONS
PR #9860 introduced the WAGTAILIMAGES_EXTENSIONS setting, which
conflicts with the use of
WAGTAILIMAGES_ALLOW_SVG. WAGTAILIMAGES_EXTENSIONS can be used to
opt-in for SVG use instead.
2023-03-30 10:19:43 +01:00
Joshua Munn 657afde30a Add more detail to SVG security notes, update settings reference 2023-03-30 10:19:43 +01:00
Joshua Munn 196ed4162d Add SVG docs 2023-03-30 10:19:43 +01:00
Thibaud Colas da7e68ea08 Release notes for #9666 2023-03-30 00:14:03 +01:00
Thibaud Colas b504403ebf Release notes for #10277 2023-03-29 13:20:23 +01:00
mansi0829 433d70d3bf Adopt w-status instead of status for classes
- Fixes #10244
2023-03-29 08:07:47 +10:00
Thibaud Colas 15643015c6 Remove eef0b2701d from v4.1.4 release notes 2023-03-28 17:17:33 +01:00
Babitha Kumari eef0b2701d
Avoid showing scrollbars in the block picker unless necessary. Fix #10253 (#10268) 2023-03-28 17:15:38 +01:00
Sage Abdullah d1a668a3b1 Explicitly specify `MenuItem.name` for Snippets, Reports, and Settings menu items (#10270) 2023-03-28 17:07:20 +01:00
Thibaud Colas 27459d61ce Release notes for #10262 / #6667 2023-03-28 16:13:35 +01:00
Thibaud Colas d856e702e1 Update documentation on icons management, with available icons 2023-03-28 16:13:35 +01:00
Lovelyfin00 a81242ca86 Migrate initAutoPopulate to Stimulus
- Removed initAutoPopultae function from editor.js
- Added the compare and urlify methos to SlugController
- Wrote tests for SyncController, added more test cases to slugController
- Closes #10088
2023-03-27 21:55:56 +10:00
Thibaud Colas ca83e5a34f
Re-label "StreamField blocks" option in block picker to "Blocks" 2023-03-24 15:46:51 +00:00
Thibaud Colas 9288f3940c
Fix server-side caching of the icons sprite 2023-03-24 15:31:58 +00:00
Sage Abdullah 8285936d99
Add missing changelog for #10223 and #10255 in 4.1.4 and 4.2.2 2023-03-24 15:31:43 +00:00
Matt Westcott 15821675e8 Release note for #10241 2023-03-23 14:17:44 +00:00
Sage Abdullah 094bb83848 Allow customising the number of snippets per page on the chooser view 2023-03-23 14:15:47 +00:00
Sage Abdullah f533ab219d Allow customising the number of snippets per page on the listing view 2023-03-23 14:15:42 +00:00
Matt Westcott 8d2b1c68cb Release note for #10235 2023-03-23 13:55:42 +00:00
Sage Abdullah b713a1753e Allow admin URL customisation for snippet chooser views via SnippetViewSet 2023-03-23 13:54:59 +00:00
Sage Abdullah e6d920d435 Add docs and tests for snippets admin URL customisation 2023-03-23 13:54:49 +00:00
Sage Abdullah 9f33ef3137 Add missing extra CSS and JS defined by filters in snippets listing view
- Fixes #10254
2023-03-23 09:06:33 +10:00
Matt Westcott 5f154a5a51 Release note for #10178 2023-03-22 15:30:42 +00:00
Daniel Kirkham 198388bf55 Add docs and tests for customising snippet icons 2023-03-22 15:15:30 +00:00
Matt Westcott 7a7bbfa6cf Release note for #10072 2023-03-21 14:31:05 +00:00
Andy Babic f680f188f3 Add useful properties to Locale
- Update get_display_name() to always return a string
- Add documentation and unit tests
2023-03-21 08:02:40 +10:00
LB Johnston 65f2eaa4d2 Documentation - Clean up minor formatting issues 2023-03-21 08:02:25 +10:00
zerolab d51ec00ce1 Fix TableBlock initialisation
- move Handsontable render after load & resize width after load
- stops firing a resize event
- adjusts targets to account for the changed markup
- fixes #9107
2023-03-21 07:02:00 +10:00
Stefan Hammer 0016ee7dfd
Fix timezone handling of `TemplateResponse`s for users with a custom timezone
The PR #9628 missed the cases, where a TemplateResponse is used, which
defers the rendering to a point outside the override_tz() context
manager. This change re-uses the existing handling for the user's
preferred language.

Fixes #10243
2023-03-20 11:43:10 +00:00
Thibaud Colas 8705124eaf Add release notes for #10239 2023-03-20 09:51:51 +00:00
4the4ryushin 66a086da29 Add support for double quotes query string searches
- Fixes #9951
2023-03-19 21:30:21 +10:00
4the4ryushin df9437b4de Adopt shared header in Snippets type index header
- Fixes #9227
2023-03-19 20:53:31 +10:00
Satvik Vashisht 4ee60b5d47 Adopt the pageurl template tag over `page.url` where possible
- Fixes #10125
- So that determining page URL is more performant - see https://docs.wagtail.org/en/stable/advanced_topics/performance.html#page-urls
2023-03-18 07:35:27 +10:00
Himanshu Garg 427f5623d9 Update leftover status-tag class usage to use status template tag
- Closes #10129
- Relates to #8656 & #9721
2023-03-18 07:10:24 +10:00
Thibaud Colas fdc36a6989 Revert FieldRowPanel documentation removal, clarifying differences. Fix #10061 2023-03-14 22:44:11 +00:00
Matt Westcott 71563ec720 Release note for #10099 2023-03-14 14:28:33 +00:00
Sage Abdullah 909e7fedbf Update docs to reflect snippet deletion hook changes 2023-03-14 14:27:22 +00:00
Matt Westcott 87650344e2 Fill in release date for 4.2.1 2023-03-13 10:14:07 +00:00
Matt Westcott bcf5b6459f Fill in release date for 4.1.3 2023-03-13 10:14:00 +00:00
Sage Abdullah cfcfd85525
Clarify ClusterableModel requirements for using relations with RevisionMixin-enabled models 2023-03-13 09:35:05 +00:00
Andy Chosak 6eca0004b3 Fix paginated results count on document search #10220
Paginated document search results currently always show the number of
documents per page instead of the total number of documents in the
search results.

For example, if a document search
(at http://localhost:8000/admin/documents/)
returns 100 results, and the results are paginated by 20, the results
view always says "There are 20 matches", when it should instead say
"There are 100 matches".

This commit fixes that bug and adds a unit test to cover it.
2023-03-12 20:28:50 +10:00
Daniel Kirkham af57a3eb7e Add ability to disable search indexing for a model #9821
- Add tests for search disable capability
- Update index disable to use empty search_fields property
- Relates to #7570
2023-03-12 20:16:19 +10:00
LB Johnston efe7202575 Add changelog for #10216
- Relates to #10206
2023-03-12 19:41:42 +10:00
AceHunterr ff7494bf79 Replace ButtonSelect widgets with radio buttons
- Instead of a complex and non-accessible JS solution for filter selects, replace with simple radio select fields
- Fixes #9838
2023-03-11 17:21:00 +10:00
George Sakkis 38e39271ee ChooserWidget: Trigger manually change event when input.value is set
- Ensure that the change events bubble as this is the default browser behaviour
- By default, changes to hidden values will not fire a `change` event, nor those that are a result of programatic changes to `value, so instead this needs to be added manually so that other code can listen to changes to chosen fields with DOM event listeners.
- https://stackoverflow.com/questions/6533087/jquery-detect-value-change-on-hidden-input-field/8965804#8965804
- Closes #10187
2023-03-11 15:57:33 +10:00
Daniel Kirkham 23552f0e70 Fix two spacing typos 2023-03-11 11:03:54 +10:00
Thibaud Colas d5e4ac5590
Update Algolia DocSearch integration with new application and correct versioning setup 2023-03-10 15:57:17 +00:00
Albina 5e23eedcd8
Axe accessibility checker: sorting violations based on their place in DOM (#10013)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-03-10 12:05:12 +00:00
Matt Westcott b7f81bc720 Release note for #10215 2023-03-10 12:03:14 +00:00
Deepam Priyadarshi de3a0b3495
Fixing duplicate addition of StreamField blocks with the new block picker. Fix #10057 (#10149)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-03-10 09:52:17 +00:00
Matt Westcott ab05be3bb2
Prevent matches from unrelated models from leaking into SQLite FTS searches
Fixes #10188
2023-03-09 10:13:54 +00:00
Thibaud Colas c01303927a Release notes for #10171 2023-03-08 15:21:38 +00:00
LB Johnston 6ec6895f4f Docs - 5.0 release notes - clean up formatting 2023-03-08 21:35:34 +10:00
4the4ryushin eb5bb5a9c8 Migrate `window.addMessage` to a Stimulus Controller `w-message`
- Introduce a new controller `MessagesController` to contain the dynamic updating of messages
- Ensure the document updated label does not repeat every time a document is updated
- Using the Stimulus controller with templates approach, icons can easily be pre-loaded for each message type
- Ensure that messages are consistently cleared when new ones are added (this was done ad-hoc across some usage and not others)
- Fixes #9493
2023-03-08 21:35:34 +10:00
Lovelyfin00 2519dc84e8 adding the introduction to stimulus webinar video link to docs 2023-03-08 06:35:59 +10:00
Sage Abdullah 24ba0b7fc1
Release notes for #9628 in 4.1.3 and 4.2.1 2023-03-07 19:01:40 +00:00
Sam a393ea8091
Fix dialog component's message to have rounded corners at the top side
Fixes #10177
2023-03-07 18:36:02 +00:00
Suyash Srivastava 382b7fbbee
Keep applied filters when downloading form submissions
Made use of the xlsx_export_url and the csv_export_url properties instead of hardcoding the urls in the template
2023-03-07 18:21:00 +00:00
sheepman4267 04cca97f09
Fix typo in "Extending Draftail" docs (#10185)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-03-07 10:11:45 +00:00
Thibaud Colas 468e8d8581 Docs - Prepare short section on Stimulus usage in UI guidelines
- Aimed at contributors, based on initial implementation learnings and original RFC content
- See https://github.com/wagtail/rfcs/blob/main/text/078-adopt-stimulus-js.md#c-documentation-for-contributors
- Closes #10093
2023-03-07 18:11:39 +10:00
Sage Abdullah b3b53c8b70
Release notes for #9628 2023-03-01 12:00:43 +00:00
Matt Westcott 114e25e7db Release note for custom StreamField validation support (#7250) 2023-03-01 12:24:05 +01:00
Matt Westcott a07fe20ceb Add documentation for customising StreamField validation 2023-03-01 12:07:13 +01:00
Matt Westcott a98779e734 Make TypedTableBlockValidationError constructor more permissive
Either of cell_errors or non_block_errors can now be omitted, and non_block_errors accepts a plain list of ValidationErrors as well as an ErrorList.
2023-03-01 11:48:29 +01:00
Matt Westcott e9e401b891 Make StreamBlockValidationError constructor more permissive
Either of block_errors or non_block_errors can be omitted; non_block_errors can be passed as a plain list rather than an ErrorList; and the values in block_errors can be ValidationError instances or singleton lists, not just singleton ErrorLists.
2023-03-01 11:48:29 +01:00
Matt Westcott d262291b6e Make StructBlockValidationError constructor more permissive
Refactor it to allow either of block_errors or non_block_errors to be omitted; allow non_block_errors to be passed as a plain list rather than an ErrorList; and allow the items of block_errors to be ValidationError instances or singleton lists rather than just singleton ErrorLists.
2023-03-01 11:48:29 +01:00
Matt Westcott 486a49797b Refactor ListBlockValidationError to use a dict for block_errors 2023-03-01 11:47:18 +01:00
Sage Abdullah 4956e9554c
Release notes for #9946 2023-03-01 09:23:40 +00:00
Sage Abdullah f3f45a9860
Fix page/snippet cannot proceed a GroupApprovalTask if it's locked by someone outside of the group
Regression in d85db866cc
2023-02-28 13:22:06 +00:00
4the4ryushin 9537547b46 Migrate initErrorDetection to a Stimulus Controller `w-count`
- Used for tabs error counts
- Fixes #10090
2023-02-27 23:11:19 +10:00
LB Johnston 845b731d13 Add release notes & upgrade considerations for #7277
- Relates to #8012
2023-02-26 12:59:18 +10:00
jatinkumar001 b87f71ca38 Update privacy collection switch button
- The status tag styles did not actually change when the permissions changed
- Instead of trying to treat the status tag as a button, use an actual button styling as this pattern is not used anywhere else in Wagtail
- Fixes #10128
2023-02-25 08:10:43 +10:00
4the4ryushin fd73fc2905 Use shared header template in ModelAdmin index
- Closes #8907
2023-02-24 17:38:33 +10:00
Christopher Wardle 5f6f640d0d
Documentation: Adding return statement to process_form_submission (#10143)
* Adding missing return statement to FormPage.process_form_submission in the "Custom form submission model" example to make it available to FormPage.render_landing_page, among other methods.
2023-02-24 07:52:14 +10:00
Matt Westcott ff70382ebb Remove obsolete client-side BlockValidationError classes and telepath adapters 2023-02-23 11:47:34 +00:00
Himanshu Garg 2ae061a703
Add curlylint and update djhtml, semgrep versions in pre-commit config
The djhtml and semgrep versions are now in sync with the ones in setup.py
2023-02-23 11:24:50 +00:00
Matt Westcott dc2afe89b9 Specify that h1, h5, h6 are disabled in rich text by default
Fixes #10124
2023-02-22 08:48:02 +00:00
Matt Westcott 55fcace173 Release note for #10130 in 4.1.3 2023-02-21 17:47:53 +00:00
Matt Westcott 0dd7dfedeb Release note for #10130 in 4.2.1 2023-02-21 17:47:06 +00:00
Matt Westcott 517b59c736 Release note for #10130 in 5.0 2023-02-21 17:42:40 +00:00
4the4ryushin 93077eaccd Migrate status tag usage to shared Template tag
* Style guide updated tests added
* Added story for status tag and put pageurl tag in use for page_status_tag
* Allow for url/non-url variant & attrs to be passed through to root element
* Closes #8656
2023-02-21 22:30:18 +10:00
LB Johnston d5eb255320 Add changelog for #9934 / #7756
- Closes #7160
- Add additional test coverage
2023-02-21 21:48:38 +10:00
Lovelyfin00 2a9d01b849 Migrate initSlugCleaning to Stimulus SlugController
- Closes #10086
2023-02-21 08:57:20 +10:00
LB Johnston 469f3ee1d2 Documentation - remove legacy docs references
- Permissions/commenting links no longer exist in the documentation and have moved to the user guide
- As these are quite old releases now, remove the references to avoid build errors in docs
2023-02-19 16:01:38 +10:00
Julian Bigler 8be4722458 Add release notes & contributors #9813 2023-02-19 14:39:06 +10:00
Kenny Wolf f50f04e129
Docs - Remove deprecated Settings Tab from documentation (#9813)
Since Wagtail 4.1 the Settings Tab and the corresponding scheduling of pages has been moved to the Status side panels. As mentioned in the release notes of Wagtail 4.1: [See here](https://docs.wagtail.org/en/stable/releases/4.1.html#new-ui-for-scheduled-publishing).

In the documentation section for customising the edit interface, this snippet is still available. When implemented, there is no effect and no error is shown.

Therefore this line is obsolete and only the two tabs 'Content' and 'Promote' should be available.

Co-authored-by: Julian Bigler <disperate@users.noreply.github.com>
2023-02-19 14:32:13 +10:00
Thibaud Colas 4bea98d981 Convert userbar implementation to TypeScript 2023-02-17 01:13:51 +00:00
Fabien Le Frapper 065df6064a
Remove unneeded float styles on 404 page (#8914)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-02-17 00:06:57 +00:00
Albina afff60e3b9
Add unit tests for MinimapItem (#10083)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-02-16 23:51:00 +00:00
Matt Westcott cbe5e0d22d Release note for #9940 2023-02-16 16:19:33 +00:00
Vallabh c73b03e03c Added requested changes 2023-02-16 16:17:03 +00:00
Vallabh 123d944674 Added docs about abtract model for InlinePanel (#9887) 2023-02-16 16:17:03 +00:00
Vallabh e0ea3ee448 Added link to description of InlinePanel 2023-02-16 16:17:03 +00:00
Vallabh 407860286b Removed obsolete section of InlinePanels 2023-02-16 16:17:03 +00:00
Vallabh 996d45e0f0 Added description for parameters taken by InlinePanel 2023-02-16 16:17:03 +00:00
Matt Westcott 9417e13445 Release note for #10009 2023-02-16 15:29:21 +00:00
Ayman Makroo ff4957799b Fix overflow of search results on mobile devices (docs)
- Fixes #9893
2023-02-16 19:48:02 +10:00
LB Johnston 0187a1494b Add release note item about additional button fix
- Fixed in #10062 / #9956
2023-02-16 08:19:44 +10:00
rishabhDev2700 49d0aab24d Replaced script tags with template tag for image/document bulk uploads
- Fixes #10033
- Partial work on #7053
2023-02-16 08:17:07 +10:00
Lovelyfin00 ab05f7dd3c Rename AutoFieldController to SubmitController
- Closes #10092
2023-02-16 07:23:03 +10:00
LB Johnston 3cf38f0365 Add changelog for #6086
- Fixes #6085
2023-02-16 00:00:34 +10:00
Lovelyfin00 566c3e2280 Fixed error in the url to be cloned in forked copy of Wagtail in documentation 2023-02-15 23:41:31 +10:00
Lovelyfin00 6f38e979a4 Improve docs for getting started and development (new contributors)
- Added a new section for common issues faced in getting started
- Added a section link for environment creation
- Refine confusing wording around fork/clone
2023-02-15 23:01:27 +10:00
Thibaud Colas fa1cbfbe98 Fix Storybook pattern library proxying in Node 18 2023-02-15 22:52:49 +10:00
Matt Westcott 297e08df2a Release note for #10007 2023-02-15 09:57:18 +00:00
LB Johnston 55483b5424 5.0 release notes - fix headings from #10062 2023-02-15 06:01:41 +10:00
GLEF1X 768d8f3d2c refactor code, fix some minor issues 2023-02-14 17:35:26 +00:00
Sage Abdullah e6afce23dc
Release notes for #10021 in 4.1.3 2023-02-14 16:51:43 +00:00
Sage Abdullah 8c2a382949
Release notes for #10021 in 5.0 2023-02-14 15:35:37 +00:00
Sage Abdullah 7addcbef8d
Release notes for #10021 in 4.2.1 2023-02-14 15:35:20 +00:00
Matt Westcott 3310e0874c Release note for #10051 on 5.0 2023-02-14 13:57:34 +00:00
Matt Westcott 7f20507f8c Release note for #10051 on 4.2.1 2023-02-14 13:57:13 +00:00
Lovelyfin00 c52074250b Refine Stimulus progress controller (button-longrunning)
- use milliseconds instead of seconds for duration
- allow `em` to be used without target attribute
- added connect method for labelTarget
- closes #8232
- closes #9910
2023-02-14 23:19:42 +10:00
Albina Starykova 6d007fc623 Add unit tests for collapseAll component 2023-02-14 20:39:27 +10:00
sag᠎e d46d724d31
Fix side panel resize direction on RTL languages. Fix #9916 (#10044)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

Fixes https://github.com/wagtail/wagtail/issues/9916
2023-02-14 10:38:57 +00:00
Matt Westcott 207493dc95 Fix broken formatting for MultiFieldPanel / FieldRowPanel permission kwarg docs 2023-02-14 20:34:35 +10:00
Thibaud Colas e3d0cc8099
Iterate on accessibility checker docs (#10064) 2023-02-13 14:27:25 +00:00
Albina 546a552ac2
Add more Axe rules to the accessibility checker (#10011)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-02-13 13:01:34 +00:00
Matt Westcott 52d32628eb Mark 4.1.3 as in development 2023-02-13 12:39:18 +00:00
Matt Westcott e52a557c05 Add release notes for #10050 in 4.2.1 2023-02-13 12:39:01 +00:00
Matt Westcott 48731afa58 Release note for #10050 in 4.1.3 2023-02-13 12:38:17 +00:00
Matt Westcott c21bb79d23 copy across 4.1.3 release notes 2023-02-13 12:38:10 +00:00
Albina 38ea027d04
Implement new simplified userbar designs (#9989)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-02-13 09:55:20 +00:00
LB (Ben Johnston) 8aa892bf0f
Add recent third party tutorials (Feb 2023) (#10059) 2023-02-10 23:02:02 -05:00
LB Johnston 93d3652a15 Documentation - fix whitespace issues 2023-02-11 08:29:13 +10:00
Jaap Roes f9872fae03 Make sure get_site_root_paths returns a list of SiteRootPath objects (#8819)
Fixes #8062
2023-02-10 15:55:00 +00:00