Skip to content

Prevent negative event values - #454

Open
jaykbpark wants to merge 1 commit into
devfrom
agent/prevent-negative-event-values
Open

jaykbpark wants to merge 1 commit into
devfrom
agent/prevent-negative-event-values

Conversation

@jaykbpark

Copy link
Copy Markdown
Contributor

What changed

  • Added lower bounds to event capacity, member price, non-member price, and custom-question character-limit inputs.
  • Added matching schema validation for prices, character limits, and participant caps.

Why

The event form's numeric controls and schema allowed count-like and price values to become negative.

Impact

Invalid negative values are blocked by the UI where possible and rejected by form validation before submission.

Validation

  • npm run lint (passes with pre-existing warnings)
  • Focused schema checks for all four negative-value paths
  • Prettier and git diff --check
  • AutoReview: clean after fixing its participant-cap finding

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
biztech-v2 Ready Ready Preview Sep 7, 2026 11:20pm UTC

@kevinxiao27 kevinxiao27 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't seem like a real issue and zod schema is likely enough

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.

2 participants