Merged
Conversation
…uest, VoteRestriction, and Vote tables with relationships and constraints
…s, and public polls with appropriate error handling
…hing user's polls, public polls, and voted polls
…for displaying event information
…ic polls, and voted polls with loading states
…rmance and user experience
…articipant voting checks
…nce UI component options
… handling and retry functionality
…-checkbox for enhanced UI functionality
…instead of 'id' for improved accuracy
Contributor
|
Look good to me |
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 changes to the backend and frontend of the application, focusing on the handling of polls, user participation, and related services. The most important changes include the removal of the
pollIdfield from theGuestmodel, the addition of new methods in thePollControllerandPollService, and updates to the frontend components to reflect these backend changes.Backend Changes:
Database Schema Updates:
pollIdfield from theGuestmodel and its related foreign key constraint. (backend/prisma/migrations/20250219021609_/migration.sql,backend/prisma/schema.prisma) [1] [2] [3] [4]Controller Enhancements:
myPolls,publicPolls, andmyVotedPollsto thePollControllerto handle fetching polls based on user participation and voting status. (backend/src/controllers/poll.controller.ts) [1] [2] [3]Service Enhancements:
PollServiceto support the new controller actions, includingmyPolls,myVotedPolls,publicPolls, anduserCanVote. (backend/src/services/poll.service.ts) [1] [2] [3] [4]Routing Updates:
backend/src/routes/poll.routes.ts) [1] [2]Frontend Changes:
PollsandPollCardcomponents to include anEventTagand display event information associated with polls. (frontend/src/components/Polls.tsx) [1] [2]