Merged
Conversation
…ency; improve layout and styling in various components
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 database schema, seed data, and backend services to enhance poll functionality. The most important changes include adding new fields to the
Pollmodel, restructuring database relationships, updating seed data generation, and expanding the poll controller with new endpoints.Database Schema Changes:
canEditfield to thePollmodel and removedpollIdfrom theGuesttable. (backend/prisma/migrations/20250219021609_/migration.sql,backend/prisma/schema.prisma) [1] [2] [3]WhitelistUser,Guest, andVoteRestrictionmodels. (backend/prisma/schema.prisma) [1] [2] [3]Seed Data Updates:
backend/prisma/seeds/seed.ts)Backend Service Enhancements:
myPolls,publicPolls, andmyVotedPollsto thePollControllerto fetch user-specific and public poll data. (backend/src/controllers/poll.controller.ts) [1] [2] [3]AuthMiddlewareto correctly handle guest user tokens usingdecode.sub. (backend/src/middlewares/auth.middleware.ts) [1] [2]Route Adjustments:
backend/src/routes/poll.routes.ts) [1] [2]