decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.77k stars 3.03k forks source link

NetlifyCMS handling Staticman comment moderation #1193

Closed aleksandarbasara closed 1 month ago

aleksandarbasara commented 6 years ago

- Do you want to request a feature or report a bug?

Feature

- What is the expected behaviour?

NetlifyCMS handling Staticman comment moderation.

Staticman brings user-generated content to static sites like reviews, comments and ratings

Staticman Rating Demo

erquhart commented 6 years ago

This request seems small, but it has major implications that I'm pretty excited about. Here's why.

Staticman comment moderation happens via pull requests, the same method we're currently using for the editorial workflow. This is going to become a common pattern as git based projects embrace the JAMstack moving forward. That said, the editorial workflow interface isn't ideal for comments for a few reasons:

The point is, it should be possible to create entire new views within Netlify CMS, and to have full access to all available data from within those views. This would enable a Staticman plugin to be created with an ideal comment moderation interface and the ability to interact with pull requests as it sees fit.

Netlify CMS as a platform

This is a precursor to a more detailed writeup that I'll get together at some point, but I thought I'd drop a preview here:

Every view within Netlify CMS, including the collections view and the editor, should be built as an extension.

We're just scratching the surface of what can be done on the JAMstack, and Netlify CMS is in position to make all of it user editable, so long as we give the community something to build on. If everything is an extension, and a shared library of UI components is available for continuity, we could make it straightforward to create a dedicated comment moderation view.

So sort of a good news/bad news thing. Good news is, we should definitely support staticman and tools like it, and I believe we're going to. Not so good news is that it's going to take some time. I'll link back to this ticket when a real write up is in place for tracking.

robsonsobral commented 6 years ago

I guess this topic could benefit from @eduardoboucas 's opinion.

eduardoboucas commented 6 years ago

I guess this topic could benefit from @eduardoboucas 's opnion.

👋

Sounds exciting! If there's anything I can do from my end to make Staticman compatible with what you're trying to achieve, I'll be happy to make it happen.

michaelkornblum commented 6 years ago

Please forgive my ignorance, as I am really new to all of this, but would it be possible to use Staticman in tandem with NetlifyCMS?

erquhart commented 6 years ago

@michaelkornblum yep, they coexist just fine. This issue is just about integrating Staticman moderation into the Netlify CMS UI.

mittalyashu commented 6 years ago

allow extensions to create entire interfaces within Netlify CMS, in which case you could build a file tree manager if you wanted that functionality

@erquhart, as you have mentioned about extension in the issue https://github.com/netlify/netlify-cms/issues/1575#issuecomment-416655560, why don't you add label to this issue like area: extension

erquhart commented 6 years ago

Because the API's don't exist for this to be an extension yet, that's all.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

inwardmovement commented 3 years ago

This post from @eduardoboucas may help https://eduardoboucas.com/posts/2020-12-23-staticman-netlify-functions/

martinjagodic commented 1 month ago

Closing as stale