Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sanity-plugin-draft-review

1.0.1 • Public • Published

Sanity draft review plugin

This plugin allows content editors to quickly view, approve and reject documents in draft mode (not published).

Getting started

In your sanity project folder, run npm install sanity-plugin-draft-review

Open sanity.json file in your project root folder and add the following line to plugins section:

"plugins":[
    // other plugins
    "draft-review"
]

THIS IS WORK IN PROGRESS...

TODO

  • Check if it's possible to get drafts and documents in one query
  • Render a document preview on top of the diff
  • Study if there is a better way to implement the approve/reject feature.
  • Fix the View Button, now it's reloading the page
  • Improve the diff visualization, now it's not rendering the full object structure because it just too much information on the page. It should display the full path of changed properties, example: "title.langs.en" instead of "en"
  • Add [Approve All] / [Reject All] feature with popup confirmation
  • Add a revert option right after Approving / Rejecting

Install

npm i sanity-plugin-draft-review

DownloadsWeekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

14.5 kB

Total Files

10

Last publish

Collaborators

  • avatar