-
Notifications
You must be signed in to change notification settings - Fork 107
Description
Is there an existing issue for this?
- I have searched the existing issues
What happened?
📌 Issue Overview
The BasicDetails form component has no input validation for user-submitted data. This allows users to submit invalid information (malformed emails, incorrect phone numbers, invalid URLs) and empty required fields without any feedback or error messages. This compromises data quality and can cause backend errors.
🔍 Steps to Reproduce
Navigate to [/basicDetails/influencer] or [/basicDetails/brand]
Try to proceed without filling in required fields
Enter invalid email (e.g., divnemail)
Enter invalid phone number (e.g., 123)
Enter invalid website URL (e.g., divaurl)
Click "Next" button
Observe: Form accepts invalid data and allows proceeding to next step without any error messages
🎯 Expected Behavior
✅ Required fields must not be empty
✅ Email format must be valid (contain @ and domain)
✅ Phone number must match international format (e.g., +1-555-000-0000)
✅ URLs must be valid HTTP/HTTPS URLs
✅ Engagement rate must be between 0-100%
✅ Audience size must be a positive number
✅ Error messages displayed in real-time below invalid fields
✅ Invalid fields highlighted in red
✅ Next button disabled until all required fields are valid
✅ Errors clear when user fixes the field
🚨 Actual Behavior
❌ No validation occurs when users submit empty or invalid data
❌ No error messages displayed
❌ No visual indication of invalid fields
❌ Form allows proceeding with incomplete/invalid data
❌ Invalid data sent to backend, causing potential errors
Record
- I agree to follow this project's Code of Conduct
- I want to work on this issue