Skip to content

Vote functionality #5

@xepozz

Description

@xepozz

Would be nice to have an ability to attach vote to a post.

I have an idea make vote based on emoji laugh, confused, heart, hooray, rocket, eyes

How to implement:
1.Whether or not a vote needs to be taken will be declared using comments.
2. The format of the comment will be as follows:

<!--
<vote>
{
{"emoji": "laugh", "label": "Option label 1"},
{"emoji": "confused", "label": "Option label 2"},
{"emoji": "heart", "label": "Option label 3"},
{"emoji": "hooray", "label": "Option label 4"},
{"emoji": "rocket", "label": "Option label 5"},
{"emoji": "eyes", "label": "Option label 6"}
}
</vote>
-->

This format is not available, because at now blogit uses already processed markdown format (completed html).
Also github markdown processor removes any comments or attributes.
3. After receiving the content of the post, comments should be removed from the view
4. The number of reactions can be obtained from a separate API method.
5. In the voting statistics, you need to display count of votes and the percentage

Artifacts:

Need to research this possibility.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions