0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
Commit Graph

10314 Commits

Author SHA1 Message Date
Matt Westcott
61db62d125 Shorten and de-capitalise default workflow/task name
On the out-of-the-box setup, this will create a workflow named "Moderators approval" rather than "Moderators Approval Workflow"; the latter is too long to fit unshortened in the submit button, and the lower-case is a bit friendlier (it makes it an action, rather than a Complicated Concept You Need To Understand).
2020-07-24 16:59:33 +01:00
jacobtoppm
85e4426948 Cancel ongoing workflows when a page is published, depending on the value of a new setting, WAGTAIL_WORKFLOW_CANCEL_ON_PUBLISH. Add a warning modal before publication if a workflow will be cancelled 2020-07-24 16:59:33 +01:00
Matt Westcott
bf53123309 Fix sphinx warnings from workflow / audit log documentation 2020-07-24 16:59:33 +01:00
Matt Westcott
6f85bca664 Use % formatting for new workflow / audit log translation strings
See #5548 - Transifex recognises % formatting, and will guard against translators introducing errors by attempting to translate the embedded variable names.
2020-07-24 16:59:33 +01:00
Dan Braghis
441bcde1ad Do not use Site.find_for_request() in the admin 2020-07-24 16:59:33 +01:00
Matt Westcott
c8a8689cee Document icon_name and classname for register_page_action_menu_item 2020-07-24 16:59:33 +01:00
Dan Braghis
310ea2af35 Add helper class to have form without floated elements
and apply for task chooser
2020-07-24 16:59:33 +01:00
Dan Braghis
fb1674eb57 Change user-facing terminology from "revision" to "version" 2020-07-24 16:59:33 +01:00
Dan Braghis
f2efe9d156 Move show/hide workflow/tasks to header 2020-07-24 16:59:33 +01:00
Dan Braghis
ada0c8d502 Update workflow/workflow task add/edit header to be consistent with other admin pages 2020-07-24 16:59:33 +01:00
Dan Braghis
9256a9dfbd Move disable to action menu and switch all workflow longrunning buttons to svg 2020-07-24 16:59:33 +01:00
Dan Braghis
e0c6aab536 Tweak styles based on design feedback 2020-07-24 16:59:33 +01:00
Dan Braghis
b08dcd6125 Add unlock cta to lock message 2020-07-24 16:59:33 +01:00
Dan Braghis
97e78f4ade Introduce the concept of "secondary" (less prominent) action in action menu
and make delete/unpublish/lock/unlock "secondary"
2020-07-24 16:59:33 +01:00
Dan Braghis
1babf897f7 Update the workflow status modal to include comments
and a compare with other revision button
2020-07-24 16:59:33 +01:00
Dan Braghis
d10cc68853 Use workflow name for "submit for moderation" 2020-07-24 16:59:33 +01:00
Dan Braghis
1f8fc4b6d8 Tidy up page edit header 2020-07-24 16:59:33 +01:00
Dan Braghis
1dc7bc2713 Make the publishing bar width fluid 2020-07-24 16:59:33 +01:00
Dan Braghis
1d2c68ebef Tweak header/content/action bar alignment 2020-07-24 16:59:33 +01:00
Dan Braghis
3630170d54 Move the lock switch to the page actions 2020-07-24 16:59:33 +01:00
Dan Braghis
24cbaeefd4 Add action menu item icons
Mechism for adding the icons, plus page action item icons
2020-07-24 16:59:33 +01:00
Dan Braghis
709a15e88d Bring in the button icon changes from PR 6151
TODO: drop when rebasing on master when 6151 is merged
2020-07-24 16:59:33 +01:00
Dan Braghis
982fb07d90 Re-label approve/reject 2020-07-24 16:59:33 +01:00
Dan Braghis
e3a095efc0 Handle "needs changes" workflow state in workflow status 2020-07-24 16:59:33 +01:00
Dan Braghis
a00136a9ba Add sensible modifiers for svg icons
- initial 1em x 1em
- default 1.5em x 1.5em
2020-07-24 16:59:33 +01:00
Dan Braghis
ffc6973906 Remove target=_blank from page history links
Related: #6123
2020-07-24 16:59:33 +01:00
Dan Braghis
0665f6ba43 Update action menu dropdown with white background on add/edit 2020-07-24 16:59:33 +01:00
Dan Braghis
2153721426 Move lock/unlock to publish bar 2020-07-24 16:59:33 +01:00
Dan Braghis
01926f62d6 Move last updated information to header meta 2020-07-24 16:59:33 +01:00
Dan Braghis
60e1b561d2 Update edit page to include live link 2020-07-24 16:59:33 +01:00
Dan Braghis
84f3265b76 Add privacy toggle to the settings tab 2020-07-24 16:59:33 +01:00
Dan Braghis
1747d85a09 Update edit page styles
- remove "page history" from bottom right
- add default "Draft" state when editing a draft
- open history in new tab
2020-07-24 16:59:33 +01:00
Dan Braghis
5489e44d8b Simplify workflow status output in page edit meta 2020-07-24 16:59:33 +01:00
Dan Braghis
3d432aaa8e Add header meta row
- includes workflow info, link to page history, page type
2020-07-24 16:59:33 +01:00
Dan Braghis
3849b678a5 Add workflow status view/modal 2020-07-24 16:59:33 +01:00
Dan Braghis
b30aa2dc3f Add new icons
reset, upload, alternative download,
circled cross, draft and resubmit, external link
2020-07-24 16:59:33 +01:00
Matt Westcott
ace3e1bf99 Release note for prepopulating site history logs 2020-07-24 16:59:33 +01:00
Dan Braghis
92e7330180 Update docs with current log actions and the rule of thumb for logging 2020-07-24 16:59:33 +01:00
Dan Braghis
54eff72d5e Add separate log action for scheduled publishing/unpublishing being acted on 2020-07-24 16:59:33 +01:00
Dan Braghis
c7279d407e Improve audit log report pages
- new icon
- simplify filters
- add workflow task comments
- inline action buttons where possible
2020-07-24 16:59:33 +01:00
Dan Braghis
2c2aa68503 Improve logging
- on create: only create and pushlish, no need for revision save
- on edit -> publish, log the draft save and publish separately
- on edit -> submit for moderation, ditto
- on deleting parent, log children deletion
- workflow:
  - log task resubmission (workflow resume)
  - log workflow cancellation
2020-07-24 16:59:33 +01:00
Dan Braghis
f69287f6f4 Add documentation 2020-07-24 16:59:33 +01:00
Dan Braghis
9bbbc1c66e Add management command to create log entries from revisions 2020-07-24 16:59:33 +01:00
Dan Braghis
5fdac8443c Add audit log tests 2020-07-24 16:59:33 +01:00
Dan Braghis
7f9d949e35 Replace link to revisions with link to page history 2020-07-24 16:59:33 +01:00
Dan Braghis
d7d63c3ab1 Add audit log model, registry and reports 2020-07-24 16:59:33 +01:00
Matt Westcott
235edf450e Uncapitalise 'Locked pages' for consistency with the 'Workflow tasks' report 2020-07-24 16:59:33 +01:00
Dan Braghis
9e527e6d75 Only show active workflows in task usage (#6199)
and clean up duplicate property
2020-07-24 16:59:33 +01:00
Dan Braghis
69db40364c Add requested by filter on the workflow report (#6204) 2020-07-24 16:59:33 +01:00
Dan Braghis
7ae4d2ebf5 Update workflow icons (#6203) 2020-07-24 16:59:33 +01:00