Skip to content

Feature/oauth api#5

Merged
boytur merged 8 commits intoDevelopmentfrom
feature/oauth-api
Feb 17, 2025
Merged

Feature/oauth api#5
boytur merged 8 commits intoDevelopmentfrom
feature/oauth-api

Conversation

@boytur
Copy link
Copy Markdown
Member

@boytur boytur commented Feb 17, 2025

This pull request includes several changes to the backend and frontend of the project. The most important changes include schema updates, seed data improvements, and frontend component enhancements.

Schema Updates:

  • Added a new canEdit field to the Poll table and model to control edit permissions (backend/prisma/migrations/20250217164731_/migration.sql, backend/prisma/schema.prisma). [1] [2]
  • Updated unique constraints and indexes for WhitelistUser, Guest, VoteRestriction, and Vote models to remove unnecessary unique constraints and add composite unique constraints where needed (backend/prisma/migrations/20250217164731_/migration.sql, backend/prisma/schema.prisma). [1] [2] [3] [4]

Seed Data Improvements:

  • Refactored the seed script to create multiple users, events, polls, options, whitelist users, guests, votes, and vote restrictions with randomized data to better simulate real-world scenarios (backend/prisma/seeds/seed.ts).

Frontend Component Enhancements:

  • Modified the NavUser component to include a logout function and fixed the avatar fallback to display full uppercase names (frontend/src/components/NavUser.tsx). [1] [2] [3] [4]
  • Updated the Navbar component to use the logout function from the useAuth hook and fixed the import paths (frontend/src/components/Navbar.tsx).
  • Added onResult prop to the QrcodeScanner component to handle QR code scan results (frontend/src/components/qrcode/QrcodeScanner.tsx).

Code Cleanup:

  • Fixed import paths to use consistent casing in various frontend components (frontend/src/components/Polls.tsx, frontend/src/hooks/UseAuth.tsx). [1] [2]

@boytur boytur merged commit 9ba38ef into Development Feb 17, 2025
@boytur boytur deleted the feature/oauth-api branch February 25, 2025 14:49
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