Document Archive (#921)

* WIP: Archive

* WIP

* Finishing up archive endpoints

* WIP

* Update docs

* Flow

* Stash

* Add toast message confirmations

* Redirect handling, fixed publishhing info for archived docs

* Redirect to collection instead of home, remove unused pub info

* Account for deleted parent

* Trash -> Archive
Allow reading of archived docs

* Dont overload deletedAt

* Fixes

* 💚

* ParentDocumentId wipe for unarchived sub docs

* Fix: CMD+S exits editing
Fix: Duplicate user name on published but unedited docs

* Improve jank on paginated lists

* Prevent editing when archived

* 💚
Separate lint / flow steps
This commit is contained in:
Tom Moor
2019-04-06 16:20:27 -07:00
committed by GitHub
parent 76957865bb
commit 642c11ff7d
39 changed files with 811 additions and 311 deletions

View File

@ -370,9 +370,23 @@ export default function Pricing() {
</Arguments>
</Method>
<Method method="documents.archive" label="Archive a document">
<Description>
Archive a document and all of its child documents, if any.
</Description>
<Arguments>
<Argument
id="id"
description="Document ID or URI identifier"
required
/>
</Arguments>
</Method>
<Method method="documents.delete" label="Delete a document">
<Description>
Delete a document and all of its child documents if any.
Permanantly delete a document and all of its child documents, if
any.
</Description>
<Arguments>
<Argument
@ -403,7 +417,8 @@ export default function Pricing() {
>
<Description>
Restores a document to a previous revision by creating a new
revision with the contents of the given revisionId.
revision with the contents of the given revisionId or restores an
archived document if no revisionId is passed.
</Description>
<Arguments>
<Argument
@ -414,7 +429,6 @@ export default function Pricing() {
<Argument
id="revisionId"
description="Revision ID to restore to"
required
/>
</Arguments>
</Method>