umputun / remark42

comment engine
https://remark42.com
MIT License
4.93k stars 386 forks source link

Ability to create polls #712

Open umputun opened 4 years ago

umputun commented 4 years ago

We already have many parts to make it happen. I.e. voting system can be somehow resued to allow polls (i.e. multiple items inside of a single comment). However, this function will need a special rendering on the frontend side and additional backend support.

Just an idea to discuss, not sure how useful such functionality could be.

akellbl4 commented 4 years ago

An interesting idea I haven't met pool functional on any comments platform.

We should have some custom markdown tag and template on the server for rendering it in HTML. But it looks like a bit interesting how we will make it work with React because now content of comments insert as plain HTML without any transformations or interactive for it. Maybe we could add polls not as inlined block but as additional block and render it from JSON data but in this example we should think how will looks like interface of poll creation.

umputun commented 4 years ago

I think it should be an "appendage" of some kind, not the part of the comment itself. and it will have some API like PUT /comment/vote/{comment_id} as well as GET /comment/vote/{comment_id}

uPagge commented 3 years ago

I would like to contribute my vote for the implementation of pulls :)

paskal commented 1 year ago

It's easy to implement endpoints like @umputun mentioned at the backend, but I would propose starting with the frontend, and then we'll implement whatever is needed on the backend.