Sage Abdullah
a511431443
Extract generic workflow views and make pages views extend from them
2023-01-19 14:06:08 +00:00
Sage Abdullah
5b6036a165
Extract BaseObjectMixin
from BaseOperationView
2023-01-19 14:06:08 +00:00
Sage Abdullah
1300f0d2d3
Move pages/workflow_action_modal.html
template to shared
2023-01-19 14:06:08 +00:00
Sage Abdullah
7fa83361ab
Add ActivateWorkflowActionsForEditView
setup to snippets edit view
2023-01-19 14:06:08 +00:00
Sage Abdullah
1f3bda2220
Add code to construct WorkflowMenuItem
s in snippets action menu
2023-01-19 14:06:07 +00:00
Sage Abdullah
b03399a61a
Ignore reference indexing for WorkflowState
2023-01-19 14:06:07 +00:00
Sage Abdullah
c8463e8642
Safely access Page
-specific attributes in WorkflowState
methods
2023-01-19 14:06:07 +00:00
Sage Abdullah
dcb7949c59
Use variables in WorkflowLock.get_message()
to reduce queries
2023-01-19 14:06:07 +00:00
Sage Abdullah
7c71a2187f
Only show lock message if the request method is GET
2023-01-19 14:06:07 +00:00
Sage Abdullah
9a8b3adc90
Add workflow handling code in CreateEditViewOptionalFeaturesMixin
2023-01-19 14:06:07 +00:00
Sage Abdullah
22205e437c
Use workflow name in workflow information dialog
2023-01-19 14:06:06 +00:00
Sage Abdullah
3d1be62fa5
Ensure workflow email notifiers use the specific page instance
2023-01-19 14:06:06 +00:00
Sage Abdullah
901ed92739
Add workflow-related action menu items to snippets that extend WorkflowMixin
2023-01-19 14:06:06 +00:00
Sage Abdullah
70716e7c7a
Fix in-progress count in warning message when disabling workflows
...
The filter is missing a parameter to only query WorkflowStates
of the current Workflow
2023-01-19 14:06:06 +00:00
Sage Abdullah
14368e0465
Make warning message when disabling a workflow/task non-page specific
...
And only show warning message if there are states in progress when disabling a workflow/task
2023-01-19 14:06:06 +00:00
Sage Abdullah
e686213803
Add form to assign workflows to snippet models that extend WorkflowMixin
2023-01-19 14:06:05 +00:00
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