Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vote functionality #5

Open
xepozz opened this issue Aug 1, 2020 · 0 comments
Open

Vote functionality #5

xepozz opened this issue Aug 1, 2020 · 0 comments

Comments

@xepozz
Copy link
Owner

xepozz commented Aug 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant