Skip to content

feat: centralise form validation with Zod schemas (#713)#771

Merged
OSEH-svg merged 12 commits into
Agora-Events:mainfrom
KingDavid9999:fixes/issue-713
Jun 1, 2026
Merged

feat: centralise form validation with Zod schemas (#713)#771
OSEH-svg merged 12 commits into
Agora-Events:mainfrom
KingDavid9999:fixes/issue-713

Conversation

@KingDavid9999
Copy link
Copy Markdown
Contributor

What this PR does:

Adds zod as a dependency in apps/web
Creates apps/web/lib/validation.ts exporting authSchema and createEventSchema
Replaces manual if (!field) checks in auth/page.tsx and create-event/page.tsx with safeParse()
All validation errors now display inline next to their respective inputs

Close #713

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

@KingDavid9999 is attempting to deploy a commit to the oseh-svg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@KingDavid9999 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@OSEH-svg OSEH-svg merged commit d9712ee into Agora-Events:main Jun 1, 2026
1 of 2 checks passed
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.

## FRONTEND: Centralise Form Validation with Zod Schemas

2 participants