Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/history-ui-content-rollback #4445

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

petertdinh
Copy link
Contributor

Description of changes

Add History UI in the form of a new Screen component as Revisions. The UI will navigate the admin user to Revisions if noedit is false and history is true. Going to Revisions will show a list all past versions of that particular item. If a ListItem is clicked, it will show and compare the differences between the current version and the rollback version and give the user the ability to rollback to that particular version.

image

image

Refactored history.js to have full property names. This will make things a bit clearer to devs going over the revisions collections. I made it fully backwards compatible with the old property names. I also added a 'isModified()' check to only create a revision if the item had changes.

Most of my design choices have been borrowed from Contentful's history UI.

TODO

-Mobile styling for the new Revision view.
-Write e2e tests for the new Revision view.
-Update the linter to include babel static class properties

Testing

  • [] Please confirm npm run test-all ran successfully.

Running into some linting errors in files that I didn't make changes to.

Addresses

#1241

@epinapala
Copy link

@petertdinh can you please resolve the merge conflicts?

@stennie
Copy link
Contributor

stennie commented May 29, 2018

Related PR: #4398 ([WIP] History UI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants