Merged
Conversation
…queue votes for processing
… and showResult properties
…prove readability of Participants component
…telist users, and guest details
…ount in poll response
…ence and include isPublic flag in vote queue
… enhanced voting functionality
…participant count for polls
…lic flag and enforce voting rules for public polls
…nce UI consistency
…l interaction and voting experience
…and reusable InfoCard for better UI consistency
…points based on poll participation
…orrectly based on voting action
…oting feedback and enhance validation messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes significant updates to both the backend and frontend components of the application. The backend changes focus on enhancing the voting functionality, while the frontend changes introduce a new slider component and update styles.
Backend changes:
backend/src/controllers/poll.controller.ts: Added methods to fetch user-voted results, poll participant count, and remaining points, and included these in the poll response data.backend/src/controllers/vote.controller.ts: Introduced a newVoteControllerto handle vote requests, including adding votes to a queue for background processing.backend/src/routes/poll.routes.ts: Updated routes to include the new vote endpoint and initializedQueueServiceandVoteController. [1] [2]backend/src/services/poll.service.ts: Added methods to get user-voted results, remaining points, and poll participant count.backend/src/services/queue.service.ts: Enhanced the queue service to handle vote processing with retries and backoff strategies.Frontend changes:
frontend/package.json,frontend/package-lock.json: Added@radix-ui/react-sliderdependency. [1] [2] [3]frontend/src/components/ui/slider.tsx: Introduced a new slider component using@radix-ui/react-slider.frontend/src/index.css: Applied global styles using Tailwind CSS.frontend/src/App.tsx: Simplified imports by removing unusedRouteandRoutes.frontend/src/interfaces/interfaces.ts: Added a TypeScript interface for user data.