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

10249 Commits

Author SHA1 Message Date
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
Dan Braghis
eca154eb5a Update home dashboard styles (#6201)
* Update home style

- make the panels follow the edit page style
- add unlock action to the locked pages panel
- order workflow-related items by date, desc
- update workflow-related columns

* Use a simplified timesince filter

i.e.
19 hours, 48 minutes ago -> 19 hours ago
1 week, 1 day ago -> 1 week ago
0 minutes ago -> just now

* Use TaskState.started_at in home panels
2020-07-24 16:59:33 +01:00
Dan Braghis
fb0742802f Include task description in choosers, if defined (#6200) 2020-07-24 16:59:33 +01:00
Karl Hobley
03f728c67d Add "used on" column on Task index, edit and chooser (#6186)
Co-authored-by: Dan Braghis <dan.braghis@torchbox.com>
2020-07-24 16:59:33 +01:00
Karl Hobley
722c8eff56 Added workflow usage (#6178)
Co-authored-by: Dan Braghis <dan@zerolab.org>
2020-07-24 16:59:33 +01:00
Karl Hobley
bd9c73a00f Various UI tweaks to workflow management (#6177)
* Make workflow tasks management into a separate settings menu item
* UI improvements to make it match the design
2020-07-24 16:59:33 +01:00
Karl Hobley
edfd17a1f1 Reduce usage of edit handlers for workflow management (#6172)
* Use plain old Django forms for tasks

* Revert "Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one"

This reverts commit 62961b74bb.

* Move Workflow edit handler creation into Workflow forms

Only advantage of having it the way it was before is that allows
overriding the edit handler in subclasses. But nobody will be doing this
with workflows.

I've added a note into the code pointing out that we might want to
rethink using edit handlers if:

 - It gets easier to style formsets without using InlinePanel
 - We want to allow customisation of the form (the use of edit handlers
   should be considered an internal implementation detail at the moment)

* Make task name readonly but groups editable

* Update wagtail/admin/templates/wagtailadmin/workflows/task_chooser/includes/create_form.html

Co-authored-by: Dan Braghis <dan@zerolab.org>

* Update wagtail/admin/forms/workflows.py

Co-authored-by: Dan Braghis <dan@zerolab.org>

Co-authored-by: Dan Braghis <dan@zerolab.org>
2020-07-24 16:59:33 +01:00
Karl Hobley
a80c34983b Workflow pages formset (#6171)
* Give "Create task" its own template
* Implement workflow pages formset
* Delete 'add workflow to page' view
* Moved $object-title-height to variables.scss
2020-07-24 16:59:33 +01:00
Karl Hobley
238d7d7b1b Implemented task chooser modal (#6169) 2020-07-24 16:59:33 +01:00
Karl Hobley
472c866163 Move "Apply filters" button above filters
Hard for users to find on a small screen at the moment
2020-07-24 16:59:33 +01:00
Karl Hobley
ba97889669 Add menu item for Workflow tasks report 2020-07-24 16:59:33 +01:00
jacobtoppm
903fd5ce11 Get STATUS_CHOICES from Task when annotating all_tasks_with_status (#6147) 2020-07-24 16:59:33 +01:00
jacobtoppm
2607bf43d0 Add failure icon, and use for rejected task states when displaying workflow status (#6148) 2020-07-24 16:59:33 +01:00
jacobtoppm
5d3e9d7ecd Register workflow and task permissions, add tests for workflow admin views with and without permissions, and ensure the workflow menu item is only shown if the workflow index is accessible (#6159) 2020-07-24 16:59:33 +01:00
jacobtoppm
0ed801244c Prevent non-reviewers from locking the page during workflow (#6156) 2020-07-24 16:59:33 +01:00
jacobtoppm
eaa7b6d7a3 Fix id of clipboard list svg (#6144) 2020-07-24 16:59:33 +01:00