Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Prisma enum for Zod validation and Admin filters #1851

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

wesbos
Copy link
Collaborator

@wesbos wesbos commented Oct 7, 2024

This PR uses the Prisma DB enum both for the Zod validation and the admin filter dropdowns. Should make adding new types of submissions easy.

Also migrated all files I touched to snake_case

Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
syntax-website ✅ Ready (Inspect) Visit Preview Oct 7, 2024 5:28pm

Copy link

codecov bot commented Oct 7, 2024

Bundle Report

Changes will decrease total bundle size by 563 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
website-client-esm 2.3MB 77 bytes (-0.0%) ⬇️
website-server-esm 30.92MB 486 bytes (-0.0%) ⬇️

@wesbos wesbos merged commit 3bf55da into main Oct 7, 2024
4 of 5 checks passed
Copy link

sentry-io bot commented Oct 7, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot read properties of undefined (reading 'UserSubmissionType') /admin/submissions View Issue

Did you find this useful? React with a 👍 or 👎

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