We had some minor bugs on the web-frontend in yesterday's demo. They were due to a hastily done merge which included the voting feature. Luckily it did not break anything altogether, and we only had some minor, hardly noticeable issues.
This fix aims to fix those issues. You can see them on the related issues.
Changes
United the goods of the two comments buttons, made them into one.
Fixed the problem with the voting, occurred when the user is voting a post for the first time, and to a post that already had non-zero votes.
Visuals
Testing
How can this contribution be tested? Use the following structure:
Commenting
Try opening the comments-contents box using the comments label.
Try inserting a comment.
Do it (again) on a post without any comments, observe the label changing from "0 comments" to "1 comment".
Comment again on that same post, see the label getting pluralized.
Voting
Vote a post, make it have a vote other than 0.
(Sign up and) login with another user.
Verify that the post has nonzero votes by looking at the counter.
Vote the same post again with the new user.
See if the vote count changes properly, and not into 1 or -1, as if the post had 0 votes.
About
We had some minor bugs on the web-frontend in yesterday's demo. They were due to a hastily done merge which included the voting feature. Luckily it did not break anything altogether, and we only had some minor, hardly noticeable issues.
This fix aims to fix those issues. You can see them on the related issues.
Changes
Visuals
Testing
How can this contribution be tested? Use the following structure:
Commenting
Voting