0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 13:10:14 +01:00
Commit Graph

17162 Commits

Author SHA1 Message Date
Sage Abdullah
c8686cc7e9
Apply suggestions from code review 2024-04-02 16:40:27 +07:00
LB Johnston
e71e947046
Add base styling for footer actions to support simple customisations
- Fixes #11629
- Relates to clean up done as part of #11629 which removed a lot of styling for footer actions which appeared to be unused.
- Re-add some base styling to support the ability for basic customisations where buttons are added within the `extra_footer_actions` block.
2024-04-02 12:29:24 +07:00
Abdelrahman
0599a56d81
Add support for related fields in generic IndexView.list_display 2024-03-28 12:55:01 +07:00
Sage Abdullah
d8085c6ee6
Clarify release notes for #11803 2024-03-28 12:24:34 +07:00
Sage Abdullah
e425244fd8 Sync 6.0.2 changelog & release notes
See 898f01f922
See 13153b5068
2024-03-27 19:15:51 +10:00
Sage Abdullah
3bdf5fedf9 Add _editor_js.html include to wagtailadmin/generic/form.html
and remove any other _editor_js.html includes from templates that extend
wagtailadmin/generic/form.html, either directly or via
wagtailadmin/generic/{create,edit}.html templates.

Fixes #11760
Fixes #11799
2024-03-27 18:47:57 +10:00
dependabot[bot]
a2ca5dd12b Bump express from 4.18.2 to 4.19.2
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 18:12:03 +10:00
Sage Abdullah
7a5a178022 Bump minimum version of djangorestframework to 3.15.1
We only support Django 4.2 and 5.0. DRF v3.14.0 was released on
22-09-2022, while Django 4.2 was released on 03-04-2023. This means
Django 4.2 and 5.0 support were officially introduced in DRF 3.15.0.

While our tests used to indicate our use of an older version of DRF
didn't cause any issues when installed with a newer version of Django,
we should bump this anyway. This prevents people from installing a
cached version of DRF that we "claim" to be compatible with Wagtail,
but in reality DRF itself doesn't officially support our minimum Django
version. In such cases, the installation can still proceed as DRF does
not impose an upper bound on Django.

This also fixes an issue where our tests would fail when installed with
DRF < 3.15.0 as the PermissionDenied error messages became more
specific.
2024-03-27 17:54:50 +10:00
David Buxton
ca796cb703
Fix dummy request SERVER_NAME when running tests
Django's test runner appends 'testserver' to your ALLOWED_HOSTS
setting. If your project has `ALLOWED_HOSTS=['*']` (which is totally
legit for Google App Engine standard) this means the setting value is
`ALLOWED_HOSTS=['*', 'testserver']` and Wagtail's dummy request helper
was setting the request SERVER_NAME to '*'.

But '*' is not a valid host name, causing a DisallowedHost exception.

This change sets the SERVER_NAME to 'example.com' in that case.
2024-03-26 21:22:21 +07:00
Matt Westcott
5bc9731616 Add test for redirects without trailing slash being redirected in one go 2024-03-25 17:43:14 +00:00
Jhonatan Lopes
846076ebe3
Use default_manager instead of objects in snippets ModelIndexView 2024-03-25 20:28:24 +07:00
LB Johnston
79bc23788b Docs - Add additional reference to wagtail_update_image_renditions command
- We have other references to this command added in 5.2 however we did not include this in the page that goes into detail of Image renditions
- See #8166
2024-03-23 22:56:03 +10:00
LB Johnston
b53f38545d Fix background on Wagtail inverse Readme logo
Relates to #11756
2024-03-23 19:59:57 +10:00
LB Johnston
83a60f685d Add changelog for #11756 + additions
- Closes #10404
2024-03-23 19:48:31 +10:00
LB Johnston
e9593e7b6b Update all other Wagtail logos to the latest version 2024-03-23 19:48:31 +10:00
osafalisayed
cd93a9c98d Updated dynamic sidebar Wagtail logo
- Relates to #10404
- See original PR #10659
2024-03-23 19:48:31 +10:00
dependabot[bot]
1e77e4b3c3 Bump webpack-dev-middleware from 6.1.1 to 6.1.2
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v6.1.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v6.1.1...v6.1.2)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-23 18:18:47 +10:00
LB Johnston
5fd8ebf171 SwapController - Ensure untrusted data sources are logged correctly
Avoids the rare case of `requestUrl` being used to log out an object
Fixes #11212
2024-03-23 18:17:53 +10:00
LB Johnston
11570f0072 Add changelog for #10867 (bulk toggle user group permissions)
Includes partial work & inspiration from #5836
2024-03-23 14:24:23 +10:00
LB Johnston
46f20d1706 Add support for multi-select checkboxes in User object permissions
- Replaces #5836
2024-03-23 14:21:19 +10:00
LB Johnston
8272698bd2 Add ability to pass widget style attrs to the shared single_checkbox template 2024-03-23 14:21:19 +10:00
LB Johnston
da212ce53e Add support for groups within BulkController toggles
- Allows one controlled w-bulk element to contain groups of toggles that work together
- Useful for tables where the DOM structure means that columns will need to be toggled / selected as one
- Basic support for 'multi' groups to avoid issues with space separated items
2024-03-23 14:21:19 +10:00
LB Johnston
31329da876 Add changelog for #11213 2024-03-22 17:41:06 +10:00
LB Johnston
0f44abeef2 Minimap - Ensure that we correctly handle not found matched elements
- Currently the code appears to try to fallback to an empty id, however this will never happen as we are building a non-empty string
- Instead if we have not found any closest panel, simply return the intersection map as is
Closes #11210
2024-03-22 17:35:19 +10:00
Sage Abdullah
901895c8d3
Use more specific PermissionDenied messages in API tests
DRF changed its behaviour in
56946fac8f

A custom message that is specified when raising a PermissionDenied
exception is now preserved by DRF, instead of using a generic "You do
not have permission to perform this action."
2024-03-21 02:55:54 +07:00
LB Johnston
9084c196fa Fix minor typo in CountController JSDoc 2024-03-17 21:52:33 +10:00
LB Johnston
42c78a2b17 Fix title of page for UI guidelines
- Guidelines is not a proper noun here and should not be capitalised
2024-03-17 21:43:56 +10:00
rohitsrma
dae51e1287 Update keyboard shortcuts dialog & menu item to use 'keyboard' icon
Fixes #11767
2024-03-17 19:18:10 +10:00
rohitsrma
51152ebefc Add keyboard icon to admin icon set 2024-03-17 19:18:10 +10:00
dependabot[bot]
6efb5c63a0 Bump follow-redirects from 1.15.4 to 1.15.6
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-17 19:17:32 +10:00
LB Johnston
24f5a4a14c Add changelog for #11717 2024-03-16 16:59:26 +10:00
Karthik Ayangar
bb5b253ef1 Add basic keyboard shortcuts dialog
Include the ability to trigger the dialog from the sidebar
Include base styling and unit tests
Fixes ##11711
Relates to larger work for keyboard shortcuts in #3949
2024-03-16 16:59:26 +10:00
Karthik Ayangar
fd26101263 Refine unit tests to correctly scope checks for 'Preview' & table
Instead of checking for the word Preview NOT showing, only check for the exact URL.
Instead of checking for all `tr` in the templates, only check for those within the correct scope.
2024-03-16 16:59:26 +10:00
Storm B. Heg
cd50955b49
Move Loïc Teixeira to core team alumni
He has announced he will step down as a core team member on March 11th,
2024.
2024-03-14 23:49:01 +01:00
Tibor Leupold
77d783b397 Add note about StreamField validation happening on the form 2024-03-14 07:56:15 +10:00
John-Scott Atlakson
068c3f2964 Added AbstractGroupApprovalTask to simplify customizing behavior 2024-03-14 07:38:07 +10:00
Chiemezuo
aebdf82387 Ensure that dropdown content will be scrollable if content is too high
Fixes #11108
2024-03-14 07:28:27 +10:00
LB Johnston
b0b304bb9a Add changelog for #10876 2024-03-14 06:37:54 +10:00
Sage Abdullah
dc93d28784 Render edit URL in page usage view as a header button 2024-03-14 06:24:06 +10:00
Sage Abdullah
c6bb19d823 Render breadcrumbs in page usage view 2024-03-14 06:24:06 +10:00
Sage Abdullah
a388e57c1c Extract get_breadcrumbs_items_for_page from page_breadcrumbs template tag 2024-03-14 06:24:06 +10:00
Sage Abdullah
c844c54671 Set usage_url_name explicitly on pages.UsageView 2024-03-14 06:24:06 +10:00
Sage Abdullah
2ee27d4dfa Make generic.UsageView.edit_url_name optional 2024-03-14 06:24:06 +10:00
Sage Abdullah
7a703a01c4 Remove unused page_perms parameter in page_breadcrumbs template tag 2024-03-14 06:24:06 +10:00
Sage Abdullah
b3eff69be3 Add icon support to page_breadcrumbs template tag
Not used anywhere at the moment, but technically possible as now they share the same template
2024-03-14 06:24:06 +10:00
Sage Abdullah
bc9538c9e1 Refactor page_breadcrumbs template tag to use generic breadcrumbs.html template
Move the logic from the page_breadcrumbs.html template to the
page_breadcrumbs template tag function. This allows us to completely
reuse the same generic breadcrumbs.html template.

As a result, the page_breadcrumbs.html template is now no longer needed
and can be removed.
2024-03-14 06:24:06 +10:00
Sage Abdullah
49a835c5eb Add tests for page_breadcrumbs tag
To ensure we don't break things while refactoring
2024-03-14 06:24:06 +10:00
Sage Abdullah
06e76ec449 Enforce generic breadcrumbs to also be expanded if there's only one item
To match the behaviour of page_breadcrumbs
2024-03-14 06:24:06 +10:00
Sage Abdullah
2163a5279a Reuse assertBreadcrumbsItemsRendered util in BreadcrumbsTagTest 2024-03-14 06:24:06 +10:00
Matt Westcott
f30c65138e Release note for #11720 2024-03-12 14:57:31 +00:00