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
Sage Abdullah
bed92e4145
Use breadcrumbs for wagtail.locales views
2024-03-12 14:56:54 +00:00
Sage Abdullah
9fc53dcd6d
Eliminate N+1 queries for root_page in sites IndexView
2024-03-12 14:56:54 +00:00
Sage Abdullah
fa5531c5f2
Add test for number of queries to load the sites index view
2024-03-12 14:56:54 +00:00
Sage Abdullah
e7170d5571
Use breadcrumbs for wagtail.sites views
2024-03-12 14:56:54 +00:00
Sage Abdullah
1b53fa7150
Only show status side panel in CreateView if model is translatable
...
Otherwise it would only show an empty panel with the model name, which isn't very useful.
2024-03-12 14:56:54 +00:00
Matt Westcott
75af2f22be
Release note for #11709
2024-03-11 18:28:17 +00:00
Sage Abdullah
2c8b6321e4
Remove unused documents list.html template
2024-03-11 18:26:58 +00:00
Sage Abdullah
ede3a58ba3
Use workaround to allow tag filtering and searching documents at the same time
2024-03-11 18:26:58 +00:00
Sage Abdullah
2b0b5d017b
Refactor documents collection filter to use django-filter
...
This also gives us tag filtering for free via BaseMediaFilterSet.
2024-03-11 18:26:58 +00:00
Sage Abdullah
89ed36c38c
Use breadcrumbs and new header button for documents listing view
2024-03-11 18:26:58 +00:00
Sage Abdullah
45484c5da7
Release note for #11698
2024-03-11 14:06:50 +00:00
Sage Abdullah
c9a05832c1
Evaluate tagged item pks in tag+search workaround instead of using a subquery
...
The query seems quite complex to be a subquery
2024-03-11 09:55:52 +00:00
Sage Abdullah
f1610a992e
Unset images IndexView.columns to prevent updated_at annotation
2024-03-11 09:55:42 +00:00
Sage Abdullah
f8201f00ca
Use workaround to allow filtering and searching images
2024-03-11 09:55:42 +00:00
Sage Abdullah
7714bb8f7a
Reimplement image listing filtering by tag using django-filter
2024-03-11 09:55:42 +00:00
Sage Abdullah
18b1b18d7a
Add FilterField("created_at") to AbstractImage.search_fields
...
This allows ordering by newest/oldest while searching
2024-03-11 09:55:42 +00:00
Sage Abdullah
baf26ed5fa
Extract BaseListingView.get_filterset_kwargs()
2024-03-11 09:55:42 +00:00