Skip to content

Add Data Validation Rules #109

@codewizdave

Description

@codewizdave

Description

Currently, there's minimal validation on data entry. Proper validation would prevent:

  • Invalid email formats
  • Future dates for past events
  • Duplicate entries
  • Missing required fields

Requirements

  1. Field Validation:

    • Email format validation
    • Phone number format
    • Date logic (end date > start date)
    • Required fields enforced
  2. Duplicate Prevention:

    • Warn when creating employee with same name
    • Check for duplicate contract dates
  3. Visual Feedback:

    • Show validation errors inline
    • Prevent form submission until valid

Technical Notes

Use Zod schemas (already in use) for validation on both client and server.

Acceptance Criteria

  • Required fields are enforced
  • Invalid formats show error messages
  • Can't save invalid data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions