Wykres commitów

12149 Commity (3cd7e967c157d5daf36b9dc5f37ad212b620879c)

Autor SHA1 Wiadomość Data
Matt Westcott 2668f5e394 Fetch new translations from Transifex 2021-11-04 11:21:26 +00:00
Tibor Leupold 890ae5b202 Apply semver naming for minor release url
The current naming is conflicting with how the version number parts are
called accoring to semantic versioning. Wagtail does not strictly follow
semantic versioning, but it still seems reasonable to adopt the same
terminology as the rest of the world.

See related discussion in #7336 (in particular [this comment by @gasman](https://github.com/wagtail/wagtail/issues/7336#issuecomment-954223018))
2021-11-04 10:19:14 +00:00
Matt Westcott b23318475c Fetch new translations from Transifex 2021-10-28 14:38:39 +01:00
Matt Westcott 09d63da47b Version bump to 2.15rc2 2021-10-28 14:11:03 +01:00
Matt Westcott 4095446fe9 Start testing against Django stable/4.0.x 2021-10-28 14:10:29 +01:00
LB Johnston 2ff4a62a1b fix issue where nested inline panel fix broke inline panel ordering/delete 2021-10-28 13:27:06 +01:00
Matt Westcott 3546609a7d Formally deprecate old db search backends (#7651)
As per #7633
2021-10-28 10:53:41 +01:00
Scott Cranfill 76419482fd TypedTableBlock: Use SVG for add button icons; use rem units for styling (#7647)
* TypedTableBlock: Use SVG for add button icons; use rem units for styling

* Fix add row button positioning in Safari
2021-10-28 10:26:24 +01:00
Matt Westcott e55ca05520 Make column-count hidden field include deleted columns in its count
Fixes #7654. Without this fix, the server-side logic ends up only considering column IDs up to the final number of columns in the table, so (for example) if you start with three columns, delete two and add one, it will only consider IDs up to 2 even though the last inserted column has been assigned an ID of 4.
2021-10-28 10:22:49 +01:00
Matt Westcott 1680cd25b2 Test server-side logic for a deleted then inserted column 2021-10-28 10:22:42 +01:00
Matt Westcott 86fbf3f0ce Label edit actions as 'Edited' instead of 'Draft saved' for non Page models
Fixes #7622
2021-10-26 07:54:50 +10:00
Matt Westcott b464b25e98 wagtail.search.backends.db should use RemovedInWagtail217Warning 2021-10-22 18:04:12 +01:00
Coen van der Kamp 35d1552070 Fix TableBlock -> TypedTableBlock in code samples 2021-10-18 12:42:33 +01:00
Coen van der Kamp 018063ffd5 Fix reference 2021-10-18 12:38:38 +01:00
Coen van der Kamp 6a5229ba9b Fix Python code blocks, indent lines with multiple of 4 spaces 2021-10-18 12:37:46 +01:00
LB Johnston cd06795c70 Revert "Upgrade modernizr" back to v2.6.2
This partially reverts commit 50f55507d8.
Fixes #7625
2021-10-18 12:29:58 +01:00
Thibaud Colas 71a38cba0a Add dedicated release notes section for Windows high contrast mode support (#7618) 2021-10-15 17:52:03 +01:00
Matt Westcott be01517b84 Version bump to 2.15rc1 2021-10-15 17:47:20 +01:00
Matt Westcott e827ec0246 Generate new source strings for translation 2021-10-15 17:43:55 +01:00
Matt Westcott 538780dd50 Fetch new translations from Transifex 2021-10-15 17:39:26 +01:00
Jacob Topp-Mugglestone 2f8de89a5c Feature/bulk actions move chooser fixes (#7617)
* [feat] Documents, images and users bulk actions now work with custom models as well

* [fix] Bulk move disables invalid parent pages in the page chooser modal

* [refactor] Make the code DRY

Co-authored-by: Shohan <shohanduttaroy99@gmail.com>
2021-10-15 16:51:18 +01:00
Jacob Topp-Mugglestone 412c26201a Add changelog and release notes for bulk actions (#7615)
* Add changelog and release notes for bulk actions
2021-10-15 16:51:18 +01:00
Shohan 0d8ad857bf Customize select all in listing feature (#7606)
* [feat] Add feature to customize behavior of select all objects in listing

* [feat] Select all in listing now works with search terms

* [refactor] Make the code DRY
2021-10-15 16:51:18 +01:00
Shohan 4624d2d540 Fix typos and remove unwanted code from bulk actions (#7613)
* [refactor] Fix typos and documentation

* [refactor] Remove unused attribute object_key

* [refactor] Remove filters from page explorer

* [refactor] Remove unused code of page filters
2021-10-15 16:51:18 +01:00
jacobtoppm 51f71709c6 Remove check preventing a user from bulk assigning themself a role 2021-10-15 16:51:18 +01:00
Shohan 8033078d6c [lint] Fix lint errors (#7608) 2021-10-15 16:51:18 +01:00
Dan Braghis 57b0d2c2d7 Improve image listing checkbox alignment
Co-Authored-By: Thibaud Colas <thibaudcolas@gmail.com>
2021-10-15 16:51:18 +01:00
Dan Braghis 247bfe883f Further tidy up following code review
Co-Authored-By: Thibaud Colas <thibaudcolas@gmail.com>
2021-10-15 16:51:18 +01:00
Dan Braghis b74c942c2f Change "toggle activity" to "set active status" 2021-10-15 16:51:18 +01:00
Dan Braghis d19e1b4380 Tidy up based on code review 2021-10-15 16:51:18 +01:00
Dan Braghis 2688bb062c Extract bulk actions styles to own component
_listing.scss still has a couple of references to bulk actions, but they quite nested so best left in there
2021-10-15 16:51:18 +01:00
Dan Braghis ddb44bb92b fup 2021-10-15 16:51:18 +01:00
Dan Braghis 52f7a3a383 Use aria_labelledby on bulk action checkboxes 2021-10-15 16:51:18 +01:00
Dan Braghis 5f3a39285f Hide bulk actions on page chooser 2021-10-15 16:51:18 +01:00
Shohan e0df3f30d7 Update editorial images and add content for bulk actions 2021-10-15 16:51:18 +01:00
Shohan 24f987db49 Add bulk actions documentation
Co-Authored-By: Thibaud Colas <thibaudcolas@gmail.com>
2021-10-15 16:51:18 +01:00
Shohan abd6c18125 Bulk actions - Refactor action registration (#7426)
* [feat] Bulk action class now accepts a list of models

* [feat] Add list of models to each bulk action

* [refactor] Remove individual listing dispatcher views

* [refactor] Introduce new hook for registering action classes

* [refactor] Add single dispatcher view for all bulk actions, and modify tag used to fetch bulk actions for ui

* [refactor] Transfer bulk action files to a directory

* [feat] Add utility functions to retrieve bulk actions easily

* [refactor] Register actions in wagtail_hooks.py files

* [refactor] Fix linting errors

* [fix] Fix tests due to change in url of bulk actions

* [refactor] Change action registration for users listing

* [fix] Fix code for which tests were failing

* [feat] Raise exception if bulk action class is not derived from BulkAction

* [feat] Make single model in cls.models as default model

* [refactor] Change name of function to get bulk actions for a model

* [feat] Add classmethod to get default model in case of single element models list

* [feat] Add bulk action registry to keep track of bulk actions instead of looping over all of them each time

* [fix] Fix linting issue

* [feat] Initialise bulk action registry once and reuse that instance wherever required

* [refactor] get_bulk_actions_for_model now returns an iterator
2021-10-15 16:51:18 +01:00
Shohan 52ce949ea0 Bulk actions - refactor execute_action (#7418)
* [refactor] Restructure the return value of 'get_actionable_objects'

* [refactor] Change code in move bulk action due to changes in base bulk action class

* [fix] Change tests due to changes in move bulk action

* [refactor] Apply changes to user bulk actions

* [fix] Fix tests due to changes in users bulk actions

* [feat] Remove object_key variable from BulkAction class

* [refactor] Change custom context keys used in all listings to generic ones

* [refactor] Refactor all bulk actions files to use items instead of objects for consistency
2021-10-15 16:51:18 +01:00
Shohan 6deafb7dd8 [fix] Fix bulk action checkboxes not hiding after deselecting all 2021-10-15 16:51:18 +01:00
Shohan 5f261910ae [fix] Fix bulk actions checkbox not working after search results 2021-10-15 16:51:18 +01:00
Shohan 9c5d0a2a26 Bulk actions - action bar UI fixes (#7403)
* [fix] Fix transform transition of action bar

* [refactor] Increase spacing in action bar, consistent with the designs

* [fix] Make button width fixed, with proper notes to accessibility

* [refactor] Decrease padding and border radius, remove borders from buttons, align action bar with titles

* [refactor] Remove border from more button and decrease font weight of button label
2021-10-15 16:51:18 +01:00
Shohan f4e6579f99 Bulk actions - Minor fixes (#7440)
* [refactor] Use django's bulk updates and deletes instead of updating objects one by one
* [refactor] Declare form fields as class variables rather than in __init__ method
* [refactor] Refactor the pages bulk actions to work if called from a management command
* [refactor] Specify implicitly the variables required in execute_action
* [refactor] Return early if no tags are supplied
* [refactor] Add **kwargs to all overriden execute_action method for additional keyword arguments
* [refactor] Remove unnecessary use of class variables
* [feat] execute_action now returns the count of updated objects, to be used in success message
2021-10-15 16:51:18 +01:00
Shohan 95d5097615 Bulk actions - appropriate string for listing (#7428)
* [feat] Add separate strings for different listings

* [refactor] Change string in users listing

* [refactor] Change keys to uppercase for consistency
2021-10-15 16:51:18 +01:00
Shohan e1bf910449 [refactor] Rename label for toggling activity, remove apply_on_applicable checkbox 2021-10-15 16:51:18 +01:00
Shohan 01ede63a55 [refactor] Separate success strings in toggle activity action 2021-10-15 16:51:18 +01:00
Shohan f0a3b48bab [refactor] Explicitly mention required kwargs in execute_action 2021-10-15 16:51:18 +01:00
Shohan 366776ebeb [fix] Fix test due to change in html structure 2021-10-15 16:51:18 +01:00
Shohan 1c985944b9 [feat] No user can mark themselves as inactive 2021-10-15 16:51:18 +01:00
Shohan e1460f8afc [refactor] Refactor bulk actions to use django orm's bulk update and delete methods 2021-10-15 16:51:18 +01:00
Shohan 9051fce7b3 [refactor] Remove unnecessary use of class variables 2021-10-15 16:51:18 +01:00