openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Work Merge Undo

Open mheiman opened this issue 2 years ago • 0 comments

Closes #6774

This PR implements a work merge undo interface in parallel with the author merge undo.

Technical

This is largely a copy of the author merge undo interface, though some changes were required to utils.js in the MergeUI in order to pass the metadata needed by the recentchanges interface.

It also relies on a change to infogami/plugins/api/code.py that allows it to accept and pass the save_many data parameter. That will be a separate Infogami PR.

Finally, this PR tweaks the position and appearance of the Undo All button to make it consistent with the other buttons that appear in the header (e.g. Edit) because it was annoying as it was.

Testing

Do a work merge, find it in recent changes, and undo it.

Screenshot

Screen Shot 2022-09-08 at 7 53 28 PM

Stakeholders

@mheiman @cdrini

mheiman avatar Sep 09 '22 00:09 mheiman