AOSSIE-Org / AOSSIE-Org/InPactAI

BUG:The BasicDetails form component has no input validation for user-submitted data

未关闭
#197 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
102
派生
144
PR 合并指标
30 天内没有已合并 PR

描述

### Is there an existing issue for this?

- [x] 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

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。