Skip to content

Add bounty form validation errors#97

Open
nikkkkj wants to merge 1 commit into
gbabaisaac:mainfrom
nikkkkj:codex/fix-form-validation
Open

Add bounty form validation errors#97
nikkkkj wants to merge 1 commit into
gbabaisaac:mainfrom
nikkkkj:codex/fix-form-validation

Conversation

@nikkkkj

@nikkkkj nikkkkj commented May 14, 2026

Copy link
Copy Markdown

Fixes #12.

Summary

  • Add explicit form error state for title and reward validation
  • Block empty titles and non-positive reward values before submission
  • Render inline validation messages instead of alerts
  • Clear field-specific errors when the user edits that field
  • Add noValidate so the custom validation UI is consistently shown

Verification

  • npm run lint
  • npm run build
  • Browser check: submitted an empty form and confirmed title/reward errors appear; typing a title clears the title error while preserving the reward error

Note: lint/build still report the existing Next.js <img> warning in src/components/leaderboard.tsx, but the build completes successfully.

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.

Bug Fix: Form Validation Bug

1 participant