Thibaud Colas
0fc8df059a
Fix positioning of StreamField and rich text "add" toggle buttons
2023-01-19 16:57:24 +00:00
Thibaud Colas
8b231d19c6
Replace StreamField block picker with new ComboBox
2023-01-19 16:57:24 +00:00
Thibaud Colas
a176616cda
Use new ComboBox component in rich text
2023-01-19 16:57:24 +00:00
Thibaud Colas
3a7e489cdf
Add new ComboBox React component based on downshift
2023-01-19 16:57:24 +00:00
Thibaud Colas
46d92d8711
Allow ES2021 standard library methods
2023-01-19 16:57:24 +00:00
Matt Westcott
716dcc2802
Resolve merge conflict in testapp migrations
2023-01-19 16:48:06 +00:00
Matt Westcott
28a78a6e52
Release note for #9639
2023-01-19 16:42:18 +00:00
Tidiane Dia
de7506ce6a
Add BaseSequenceBlockComparison class
2023-01-19 16:41:53 +00:00
Tidiane Dia
41c896c7c1
Add ListBlock comparison class to avoid rendering to HTML
2023-01-19 16:41:53 +00:00
Albina
a3f10acae1
Userbar & accessibility checker UI improvements ( #9913 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-01-19 16:06:11 +00:00
Sage Abdullah
ad3ef5875d
Update docs and changelog to reflect changes for #9817
2023-01-19 14:52:34 +00:00
Sage Abdullah
5f4a2ed38d
Add tests for exporting workflow reports
2023-01-19 14:07:54 +00:00
Sage Abdullah
2f21a42dd5
Add tests for showing workflow action menu items in different scenarios
2023-01-19 14:07:54 +00:00
Sage Abdullah
9673be9308
Add tests for snippet workflows without LockableMixin applied
2023-01-19 14:07:54 +00:00
Sage Abdullah
a6a431a083
Return ScheduledForPublishLock from DraftStateMixin.get_lock()
...
Update docs to enforce that the LockableMixin should come last (but before RevisionMixin)
2023-01-19 14:07:54 +00:00
Sage Abdullah
8e4ee44bb4
Add system checks to ensure WorkflowMixin's MRO
2023-01-19 14:07:54 +00:00
Sage Abdullah
d85db866cc
Check for LockableMixin before accessing its fields in workflow-related models
2023-01-19 14:07:54 +00:00
Sage Abdullah
d13f2dbac1
Use cached properties for queries in workflow history views
2023-01-19 14:07:53 +00:00
Sage Abdullah
d78cdd4069
Share workflows init code between snippets and pages
2023-01-19 14:07:53 +00:00
Sage Abdullah
0a8ddf7fca
Optimise query for UserObjectsInWorkflowModerationPanel
2023-01-19 14:07:53 +00:00
Sage Abdullah
d6925dab6c
Use cached properties for workflow-related queries in optional features mixin
2023-01-19 14:07:53 +00:00
Sage Abdullah
41236f6419
Remove |safe filter from workflow notification HTML templates
2023-01-19 14:07:53 +00:00
Sage Abdullah
0a408bebd4
Do not show workflow action menu items when reverting a revision
2023-01-19 14:07:53 +00:00
Sage Abdullah
d839f00a4e
Hide workflow-snippets assignment panel if no snippets have workflows enabled
2023-01-19 14:07:52 +00:00
Sage Abdullah
4b8839f4a4
Optimise WorkflowContentTypeForm init query
2023-01-19 14:07:52 +00:00
Sage Abdullah
2bbbfca746
Wrap WorkflowContentTypeForm.save() in a transaction
2023-01-19 14:07:52 +00:00
Sage Abdullah
3f5a432675
Make LockableMixin not depend on WorkflowMixin
2023-01-19 14:07:52 +00:00
Sage Abdullah
c2f47e4755
Add __str__() to WorkflowContentType and use get_content_type_label
2023-01-19 14:07:52 +00:00
Sage Abdullah
38f65e98a4
Fix workflow report export fields
2023-01-19 14:07:52 +00:00
Sage Abdullah
18c140e8be
Add docs for WorkflowMixin
and enabling workflows for snippets
2023-01-19 14:07:51 +00:00
Sage Abdullah
73903cb40b
Add missing tests
2023-01-19 14:07:51 +00:00
Sage Abdullah
65e2b175fd
Add default response to CollectWorkflowActionData
...
If the form is invalid and the request was not made with XMLHttpRequest,
the method returns None instead of a valid response object
2023-01-19 14:07:51 +00:00
Sage Abdullah
38b66b6f9e
Add tests for workflow preview views
2023-01-19 14:07:51 +00:00
Sage Abdullah
44be89cc75
Add corresponding snippet workflows tests for other page-specific tests
2023-01-19 14:07:51 +00:00
Sage Abdullah
985e084116
Add tests for WorkflowLock on snippets
2023-01-19 14:07:51 +00:00
Sage Abdullah
495cc167c7
Add tests for not purging snippet revisions that are in a workflow
2023-01-19 14:07:50 +00:00
Sage Abdullah
eaa62be925
Add audit log tests for snippet workflows
2023-01-19 14:07:50 +00:00
Sage Abdullah
3386d777bd
Add test for getting select_task_type view when there's only 1 task type
2023-01-19 14:07:50 +00:00
Sage Abdullah
18abdeaa45
Add TestSnippetWorkflowStatus based on TestPageWorkflowStatus
...
TestPageWorkflowStatus is renamed from TestWorkflowStatus
2023-01-19 14:07:50 +00:00
Sage Abdullah
202bd6773f
Add TestDisableViewsWithSnippetWorkflows based on TestDisableViews
2023-01-19 14:07:50 +00:00
Sage Abdullah
6ba984c562
Add for_instance() method to TaskStateManager
2023-01-19 14:07:50 +00:00
Sage Abdullah
b447a4dd53
Add TestSnippetNotificationPreferences based on TestPageNotificationPreferences
...
TestPageNotificationPreferences is renamed from TestNotificationPreferences
2023-01-19 14:07:49 +00:00
Sage Abdullah
5d7c7b44a4
Add TestApproveRejectSnippetWorkflow based on TestApproveRejectPageWorkflow
...
TestApproveRejectPageWorkflow is renamed from TestApproveRejectWorkflow
2023-01-19 14:07:49 +00:00
Sage Abdullah
72455b10f0
Add TestSubmitSnippetToWorkflow based on TestSubmitPageToWorkflow
...
TestSubmitPageToWorkflow is renamed from TestSubmitToWorkflow
2023-01-19 14:07:49 +00:00
Sage Abdullah
7713efa0ab
Add snippet content type tests to workflow views
2023-01-19 14:07:49 +00:00
Sage Abdullah
a6d4fd2d22
Add basic snippet workflow tests in wagtail.tests.test_workflow
2023-01-19 14:07:49 +00:00
Sage Abdullah
4a476a669b
Do not show warning message when disabling a task if there's no in progress states
2023-01-19 14:07:49 +00:00
Sage Abdullah
4a404aee2e
Check Task.user_can_lock/unlock() when checking lock/unlock permissions
2023-01-19 14:07:48 +00:00
Sage Abdullah
c3c76a7ffb
Fix workflow history detail timeline content from showing on initial load
2023-01-19 14:07:48 +00:00
Sage Abdullah
0648edaece
Improve workflow history index accessibility
...
Wrap the workflow name in a link, as using the status tag as the primary link may not be obvious to users
Switch tooltip to use tippy with tabindex="0" so it's accessible via keyboard
2023-01-19 14:07:48 +00:00