Skip to content

Fixes #325#417

Open
ayushshukla1807 wants to merge 3 commits intohatnote:masterfrom
ayushshukla1807:fix-voting-stats-display
Open

Fixes #325#417
ayushshukla1807 wants to merge 3 commits intohatnote:masterfrom
ayushshukla1807:fix-voting-stats-display

Conversation

@ayushshukla1807
Copy link
Copy Markdown

@ayushshukla1807 ayushshukla1807 commented Mar 21, 2026

While the backend had an endpoint for voting statistics (

getRoundVotesStats
), it was never invoked by the frontend. Jurors were unable to see their progress or consensus stats even when the feature was enabled for a round.

Changes:

Integrated the jurorService.getRoundVotesStats API call into the voting components.
Added a votesStats reactive ref and rendered a new statistics panel in the sidebar.
Implemented conditional rendering based on the round.show_stats flag.

This commit patches the admin_endpoints validation to gracefully handle empty POST bodies, and modifies MessageMiddleware to intercept MontageErrors so they correctly return 400 Bad Request JSON instead of bypassing CORS headers. Resolves Issue hatnote#357.
Bind :disabled='isLoading' on vote buttons to block concurrent clicks at DOM level before Vue's async re-render cycle can prevent them.
…atnote#325)

getRoundVotesStats was defined in jurorService but never called. Added onMounted fetch and post-vote refresh in VoteRating.vue and VoteYesNo.vue, with conditional rendering when round.show_stats is true.
@ayushshukla1807 ayushshukla1807 force-pushed the fix-voting-stats-display branch from 96a1ac1 to 32807f2 Compare March 27, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant