Multi-page hierarchical deletions inside Deki Wiki posed a problem when complemented with single-page restore operations. To improve the page restore experience in Deki Wiki, we have started treating delete page operations as transactions - much like you delete a group of pages with one click, you can restore a group of pages with a click of a button.
Furthermore, to combat the problem of restoring pages on top of existing pages, pages can now be renamed to a new location as a part of the restore operation.
These two tools simplify an administrator's job in managing erroneous (intentional or not) deletions.
A new control panel page, "Restore", allows administrators to manage undeletions. Upon visiting the Restore interface, a paginated list of deleted pages will appear:
(todo screenshot)
Deletions are grouped by delete operation - if a single user deleted a page and all its subchildren, then they will all appear as one transaction. You can preview any of the deleted pages' contents, and you can expand the full list of pages that were affected by that particular transaction:
(todo screenshot)
Clicking "Restore" will immediately restore the page, its children, and all files that were deleted back to their original location. In the case that a page exists in that location, a prompt will allow you to specify the new pages' location. The initially populated page title will be a suggested title (it will appear as a sibling to your originally deleted page).
(todo screenshot)
Once a page is restored, things will be just as they were before!