Wykres commitów

16201 Commity (6033a3841b42e82f80f6eb4eb38e41ef955d6828)

Autor SHA1 Wiadomość Data
Matt Westcott 6033a3841b Release note for CVE-2023-45809 in 4.1.9 2023-10-19 15:06:31 +01:00
Matt Westcott 8ec42858f9 Redirect away from user bulk actions when user has no permissions on users 2023-10-19 14:49:43 +01:00
Matt Westcott 280bd79e75 Release note for page listing view redesign 2023-10-19 14:38:06 +01:00
Matt Westcott 8a9c80fd50 Revert "Use dropdown toggle for button links in awaiting review dashboard panel"
This reverts commit 0c71f2e856.
2023-10-19 14:08:37 +01:00
Stefan Hammer 3de6ce61ff Improve filtering of audit logging based on the user's permissions (#11020)
Until now, a user could see the audit log for all custom models,
permissions haven't been checked yet.
Now, only log entries of those content types are displayed, where
the user has at least one permission.

The change also adds filtering to the action-dropdown.
This avoids showing unnecessary action types, e.g. actions which aren't
used at all.
All 3 uses of action-dropdowns (site history, page history, generic
history) only display those actions, which are used at least once.

This partially fixes #9181.
2023-10-19 13:46:55 +01:00
Neeraj P Yetheendran 8b697124e8 Consistently allow passwords to use leading & trailing whitespace
- Set strip=False to LoginForm,UserForm to ensure consistency with Django's practices
- Added test to ensure whitespace password not stripped in UserForm
- Test to ensure whitespace not stripped in PasswordChangeForm
- Set username to email if email-based custom user model used in WagtailTestUtils login method
- Co-authored-by: sag​e <laymonage@gmail.com>
- Fixes #10839
2023-10-19 23:32:41 +11:00
LB (Ben Johnston) 74aada038b
Add `BulkController` support for shift+click behaviour (#10861) 2023-10-19 13:25:41 +01:00
LB Johnston 68c41833e5 Move changelog entry #10961
Release notes had this in features
2023-10-19 21:56:40 +10:00
Ihedioha Chinedu Innocent 26a89cf37d Updated FieldPanel to TitleFieldPanel in docs
- Closes #11078
2023-10-19 22:36:15 +11:00
Smoothieewastaken fb4c4209f5 docs: fixed typos from docs\releases\4.0.md 2023-10-19 12:08:31 +01:00
Storm B. Heg 6aa5b0aae0
Add Meghana Reddy to contributors
Forgot to do this in aa2b94db0b
2023-10-19 13:02:57 +02:00
Storm B. Heg aa2b94db0b
Add changelog and release notes for #10961
Crediting @MeghanaNalla too for their previous work in #10759.
2023-10-19 12:58:32 +02:00
Neeraj P Yetheendran 7239e11e0c
Avoid purging Revisions in use by third-party packages (#10961)
* Resolves #10678 Avoid purging Revisions in use by third-party packages

---------
Co-authored-by: MeghanaNalla <123588774+MeghanaNalla@users.noreply.github.com>
Co-authored-by: sag​e <laymonage@gmail.com>
Co-authored-by: Storm B. Heg <storm@stormbase.digital>
2023-10-19 12:52:29 +02:00
LB Johnston 8002e75775 Documentation - Add initial Stimulus docs
- Move extending React to new extending client-side page within advanced topics
- Add general extending JavaScript / client-side overview
- Prepare initial Stimulus usage documentation
- Resolves #10197
- Apply suggestions from code review - Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-10-19 07:28:27 +01:00
LB Johnston 1da3e5fde7 Refactor Stimulus util & module export
- Accessing constructor was confusing and createController is not a core requirement
- Avoid modifying the base Stimulus application class
- Expose `window.StimulusModule` as the module output
- Expose `window.wagtail.app` as the Wagtail Stimulus application instance
- Rename root element variable to `root` in initStimulus (so we do not conflict with potential action option registration that uses `element` variable names)
- Pull in the wagtail.components to the same core.js file and add JSDoc for exposed global
- Relates to #10197
2023-10-19 07:28:27 +01:00
Sage Abdullah 5c92c8cb8d
Release notes for #11082 2023-10-19 02:23:32 -04:00
Thibaud Colas 78b8b7c6c6
Switch breadcrumbs so only the last element is bold 2023-10-19 02:13:10 -04:00
Thibaud Colas ad488a5a49
Use a smaller font size for page listing headers 2023-10-19 02:13:10 -04:00
Thibaud Colas d1bbe44c3c
Make page listing breadcrumbs smaller 2023-10-19 02:13:10 -04:00
sag​e 56b14e8f97
Use dropdown buttons on listings in dashboard panels (#11083)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-10-19 07:12:39 +01:00
Thibaud Colas 78a349bb24 Release notes for #10915 2023-10-19 06:39:35 +01:00
Sage Abdullah 85d74e42a4 Do not render minimap if there are no panel anchors 2023-10-19 06:39:35 +01:00
Sage Abdullah 7ad4263d82 Assert breadcrumbs not rendered on views that have them disabled
To be reverted once we reintroduce breadcrumbs to these views
2023-10-19 06:39:35 +01:00
Sage Abdullah 92c5be35e8 Disable breadcrumbs on views outside of custom ModelViewSets/SnippetViewSets 2023-10-19 06:39:35 +01:00
Thibaud Colas 67757ce29c Add release notes for #11080, #11081 in v5.1.3 2023-10-18 23:59:58 -04:00
Thibaud Colas 3376060ea6 Use the correct action log when creating a redirect 2023-10-18 23:43:54 -04:00
Chiemezuo 3df622f2ef Migrate publishing schedule dialog field resets to Stimulus
- Remove ...admin/schedule-publishing.js
- Builds on #11043 & #11066
- Closes #11029
2023-10-19 08:00:15 +11:00
LB Johnston 868398131b Fix issue with closing dialog in the userbar
- Remove `data-a11y-dialog-hide` and use Stimulus data action approach
- This ensures that our code is more agnostic to the third party library and can leverage our own DialogController behaviour
- Works around ally-dialog issue https://github.com/KittyGiraudel/a11y-dialog/issues/582
- Fixes #10924
2023-10-18 07:37:16 -04:00
Alex Tomkins 7131a85532 Use get_or_create for editor page subscriptions
Two processes loading the edit view of a page without a subscription could result in an integrity error.
See https://docs.djangoproject.com/en/4.2/ref/models/querysets/#get-or-create
Fixes #11016
2023-10-18 21:10:57 +11:00
Sage Abdullah 9bf7d88869 Add missing locale context value in page create and edit views
The value was removed in #10864 as we moved the locale code into the side panels,

but the view template still has references to the locale for the hidden input in create.html and for the ACTIVE_CONTENT_LOCALE
2023-10-18 20:41:47 +11:00
Chiemezuo 29d73a3b68 DialogController add support for notifyTargets
- Allowing the dispatching of events to internal targets for key modal events
- See ##11029
2023-10-18 18:52:04 +11:00
dependabot[bot] 75fb953754 Bump @babel/traverse from 7.17.3 to 7.23.2 in /client/tests/integration
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 08:50:47 +11:00
Matt Westcott da90f83f94 Show parent page on search results further down the tree 2023-10-17 20:14:12 +01:00
Matt Westcott f22bc0255e Consistently use blocktranslate 2023-10-17 19:50:13 +01:00
Matt Westcott 96917f72a7 i18n for pagination controls 2023-10-17 19:06:24 +01:00
Matt Westcott 4426196046 Add switch between searching current section and whole site 2023-10-17 19:06:24 +01:00
Matt Westcott 53c6bf0690 Add pagination information to page title column header 2023-10-17 19:06:24 +01:00
Matt Westcott d4eb1ec5a3 Move wrapper div for search bar into page_listing_header
This stops the padding from appearing on the edit/create views (where there is no search bar)
2023-10-17 18:41:27 +01:00
Matt Westcott a7943bf83a Support ordering on search results 2023-10-17 18:41:27 +01:00
Matt Westcott de59c75d10 Implement search on explorer view 2023-10-17 18:41:27 +01:00
Thibaud Colas f5af3d5d82 With spacing 2023-10-17 18:41:27 +01:00
Thibaud Colas 56a9cae791 Split slim header container styles and row styles 2023-10-17 18:41:27 +01:00
Matt Westcott 30c68652c7 Adding search bar to page listing header (not fully functional at this point) 2023-10-17 18:41:27 +01:00
Matt Westcott 58d6c137b4 Move 'add child page' to its own primary action 2023-10-17 17:28:08 +01:00
Matt Westcott b35f902daf Upgrade consideration note for button hook changes 2023-10-17 17:28:08 +01:00
Matt Westcott 531ea605b2 Update PageListingButton to accept a user argument instead of page_perms 2023-10-17 17:28:08 +01:00
Matt Westcott 8079cad7df Add a view_name argument to register_page_header_buttons 2023-10-17 17:28:08 +01:00
Matt Westcott 3d8e6824a8 Change register_page_header_buttons hook to pass a user argument instead of page_perms 2023-10-17 17:28:08 +01:00
Matt Westcott 1cb180c11a Change ButtonWithDropdownFromHook and its hooks (including register_page_listing_more_buttons) to accept a user argument instead of page_perms 2023-10-17 17:28:08 +01:00
Matt Westcott d77e71b148 Eliminate use of fake PagePermissionTester objects in test_buttons_hooks 2023-10-17 17:28:08 +01:00