0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

14438 Commits

Author SHA1 Message Date
Sage Abdullah
e88c8c902a
Delete associated WorkflowContentType objects in Workflow.deactivate 2023-01-19 14:06:05 +00:00
Sage Abdullah
b94c79fa73
Move WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH handling to generic publish_revision action 2023-01-19 14:06:05 +00:00
Sage Abdullah
3b1c71f48e
Add non-page specific message to WorkflowLock 2023-01-19 14:06:05 +00:00
Sage Abdullah
41304ec4f9
Move Page.get_lock() to LockableMixin.get_lock() 2023-01-19 14:06:05 +00:00
Sage Abdullah
9b1ac70e59
Extract workflow-related properties and methods in Page into WorkflowMixin 2023-01-19 14:06:05 +00:00
Sage Abdullah
faa4a26084
Add WorkflowStateQuerySet with for_instance() method 2023-01-19 14:06:05 +00:00
Sage Abdullah
384b81820e
Add WorkflowContentType model 2023-01-19 14:06:04 +00:00
Sage Abdullah
9738b76c65
Change translatable strings in Workflow models to be non-page specific 2023-01-19 14:06:04 +00:00
Sage Abdullah
e1c6ae2d2b
Rename Task.page_locked_for_user to Task.locked_for_user 2023-01-19 14:06:04 +00:00
Sage Abdullah
4d53e40cc6
Rename page parameter to obj in Workflow and Task methods 2023-01-19 14:06:04 +00:00
Sage Abdullah
673f980faa
Allow WorkflowState.revisions() to return non-page revisions 2023-01-19 14:06:04 +00:00
Sage Abdullah
ec5bf4e671
Remove null=True from WorkflowState's content_type and base_content_type fields 2023-01-19 14:06:04 +00:00
Sage Abdullah
90a3813418
Add migration to populate WorkflowState's content_type and base_content_type fields 2023-01-19 14:06:03 +00:00
Sage Abdullah
3cf2c0dc19
Rename page to content_object in WorkflowState 2023-01-19 14:06:03 +00:00
Sage Abdullah
6595a38b29
Use GenericForeignKey for WorkflowState.page 2023-01-19 14:06:03 +00:00
Sage Abdullah
d8f9d9869a
Rename page_revision to revision in TaskState 2023-01-19 14:06:03 +00:00
Thibaud Colas
c7da2988d5 Pull out Stimulus refactoring release notes into their own section 2023-01-19 12:51:26 +00:00
LB Johnston
899730d32a Update all icon usage to use clasname 2023-01-19 12:23:32 +00:00
LB Johnston
d2f47e7083 Icon template tag - add deprecation for class_name
- If using `class_name` we will now trigger a warning that this will be removed in Wagtail 5.0
- Update release notes accordingly
2023-01-19 12:23:16 +00:00
Thibaud Colas
e33cdbf8db
Set up CSS LTR-RTL direction variable and fix incorrect transforms (#9914). Fix #9800
- Fix Draftail block toolbar trigger overlay in RTL mode
- Fix switch component rendering in RTL mode
- Fix panel header positioning in RTL mode
- Remove unused 404 styles
- Fix comments positioning in RTL mode
- Fix sidebar sub-menus transition direction
- Fix form side panels in RTL mode
- Fix minimap positioning in RTL mode
- Fix Draftail tooltips positioning in RTL mode
- Fix page explorer transition direction in RTL mode
- Set up CSS LTR-RTL direction variable
2023-01-19 12:06:43 +00:00
Thibaud Colas
afc6004441 Release notes for #9868 2023-01-19 11:19:25 +00:00
Thibaud Colas
1b7f92351f Improve page editor side panel closing animation 2023-01-19 11:19:25 +00:00
Thibaud Colas
a50e6b1f40 Reduce MultiFieldPanel heading sizes in account settings form 2023-01-19 11:19:25 +00:00
Jake Howard
c8c1870c97 Prevent memory exhaustion when purging a large number of revisions
Optimise determining whether a revision is the latest

This no longer attempts to load the entire revision into memory to compare. Instead, we just check if any revisions created after this one exist (that aren't this one).
2023-01-19 21:06:58 +10:00
4the4ryushin
529d2feb49 Add docs example for how to configure API renderer_classes
- Update docs/advanced_topics/api/v2/configuration.md
- Fixes #6066
- Fix up spelling of customise (UK English not US)
2023-01-19 20:43:45 +10:00
bbeniamin
96b94d01d9 Fix parsing of queries with multiple filters that contain quotes 2023-01-19 20:41:48 +10:00
4the4ryushin
cc0f2d7c4c Migrate avatar template to an include tag
Includes style guide & storybook implementation
Fixes #8655
2023-01-19 20:32:05 +10:00
Dan Braghis
e93f322e94 Fix handling of temporary upload files 2023-01-18 19:33:32 +00:00
Dan Braghis
2df8dc73ba Add failing test 2023-01-18 19:33:32 +00:00
Sandil Ranasinghe
3ed84b36da make streamfield migration names from operations
- `operation_name_fragment` property added to operations
- `migration_name_fragment` property added to MigrateStreamData
- added tests, docs updated
- BaseBlockOperation inherits from `abc.ABC`
2023-01-18 19:29:56 +00:00
Albina
55d04366f7
Axe accessibility checker integration with floating dialog component (#9899)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-01-18 15:59:44 +00:00
Matt Westcott
d7adcec584 Release note for #9886 2023-01-18 14:31:08 +00:00
Matt Westcott
4468b55d2d Enforce max_num on MultipleChooserPanel
Enable / disable the open-modal button on reaching the limit, as we do for InlinePanel's standard add button; and when handling the response from the modal, stop adding new items when max_num is reached
2023-01-18 14:31:08 +00:00
Matt Westcott
2574204b27 Make title into a label rather than a link when in multiple choice mode 2023-01-18 14:31:08 +00:00
Matt Westcott
32f8c78b58 Enable / disable submit button once a selection is made 2023-01-18 14:31:08 +00:00
Matt Westcott
f4125d04e0 Import ChooserFactory classes in telepath endpoint files, rather than relying on them existing in the global scope 2023-01-18 14:31:08 +00:00
Matt Westcott
89179da1fd Eliminate jquery from MultipleChooserPanel 2023-01-18 14:31:08 +00:00
Matt Westcott
89a3f5c520 Reshuffle form wrappers on chooser modal templates to placate curlylint 2023-01-18 14:31:08 +00:00
Matt Westcott
515e76ab7b Add reference docs for MultipleChooserPanel 2023-01-18 14:31:08 +00:00
Matt Westcott
af168d62f8 Implement multiple chooser UI on page chooser modal 2023-01-18 14:31:08 +00:00
Matt Westcott
2c8c381ca7 Implement multiple choice UI for image chooser 2023-01-18 14:31:08 +00:00
Matt Westcott
45fe5c1b95 Use correct dict key for SnippetChosenMultipleView 2023-01-18 14:31:08 +00:00
Matt Westcott
78b88a605a Populate MultipleChooserPanel from modal results 2023-01-18 14:31:08 +00:00
Matt Westcott
67ff655111 Add mechanism for retrieving an existing widget instance from ChooserFactory 2023-01-18 14:31:08 +00:00
Matt Westcott
d534567f81 Add checkboxes for selecting multiple items 2023-01-18 14:31:08 +00:00
Matt Westcott
6bc3b0b258 Refactor image chooser modal to use preserve_url_parameters and preserve the 'multiple' parameter as well as 'select_format' 2023-01-18 14:31:08 +00:00
Matt Westcott
c5513d098a Implement mechanism to pass the 'multiple' URL parameter (and any other specified ones) on links / form actions within generic chooser modal 2023-01-18 14:31:08 +00:00
Matt Westcott
3872de44d7 Add chooser view endpoints for returning multiple results
Extend the existing 'chosen' view so that it returns a single-item list when the URL parameter `multiple` is passed, and add a 'chosen_multiple' view that accepts multiple `id` URL parameters and returns the corresponding results as a list.
2023-01-18 14:31:08 +00:00
Matt Westcott
e94e268ecb Recognise 'multiple' option in ChooserModal as a URL parameter to pass to the modal view
the modal view doesn't do anything with it yet
2023-01-18 14:31:08 +00:00
Matt Westcott
c66b793957 Add JS initialiser / open-modal behaviour for MultipleChooserPanel 2023-01-18 14:31:08 +00:00