remark42 icon indicating copy to clipboard operation
remark42 copied to clipboard

Ability to create polls

Open umputun opened this issue 4 years ago • 4 comments

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.

umputun avatar May 17 '20 18:05 umputun

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.

akellbl4 avatar May 21 '20 20:05 akellbl4

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}

umputun avatar May 21 '20 20:05 umputun

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

uPagge avatar Dec 13 '20 09:12 uPagge

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.

paskal avatar Jan 08 '23 09:01 paskal