Skip to content

Add Zod Form Validation to Expert Registration #437

Closed

Description

@Luluameh
  • Difficulty: Easy
  • Labels: enhancement, forms, validation, ux

Description

The Expert profile registration form lacks complete client-side validation. We want to integrate Zod schema validation using react-hook-form to ensure users provide valid names, rates, categories, and bio descriptions.

Technical Scope & Steps

  1. Open src/components/profile/RegistrationForm.tsx.
  2. Define a validation schema using zod for all form inputs (e.g. bio must be between 50 and 500 characters, hourlyRate must be a positive number).
  3. Hook the schema into react-hook-form using @hookform/resolvers/zod.
  4. Display clear, red error messages beneath invalid input fields and disable form submission until corrected.

Acceptance Criteria

  • Incomplete/invalid fields show immediate feedback on blur or submit.
  • Valid submissions trigger the success callback correctly.
  • Rates must be strictly validated as positive floats.

Activity

  1. JoyLight00 commented on Aug 20, 2026

    @JoyLight00
    Contributor

    Hi Maintainer
    I will love to work on this
    kindly assign me to it please
    I am a developer with 4 years of exprience

  2. grantfox-oss commented on Aug 20, 2026

    @grantfox-oss

    🦊 GrantFox — @JoyLight00 has been assigned to this issue as part of the Third Campaign campaign!

    Next steps:

    1. Open a Pull Request referencing this issue (e.g., Closes #437)
    2. Your PR will be reviewed by the LightForgeHub maintainers

    Good luck! Track your progress on GrantFox.

  3. grantfox-oss commented on Aug 21, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Third Campaign campaign!

    @JoyLight00's PR #451 was approved and merged by @Luluameh.

    🏆 @JoyLight00: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (182 total points). Track your full progress on GrantFox.

    👏 Great work, @JoyLight00! Keep contributing to LightForgeHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions