Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#197 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Divyanshu-s13 đang làm issue này rồi.

Từ ngày 20/11/2025.

  • #198 của @Divyanshu-s13 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu từ các route /basicDetails/influencer và /basicDetails/brand, rồi lần theo component biểu mẫu BasicDetails và luồng của nút Next. Tái hiện các trường hợp email, số điện thoại, URL, tỷ lệ engagement và quy mô đối tượng trống hoặc sai định dạng, sau đó xác minh rằng các trường không hợp lệ hiển thị feedback, chặn việc tiếp tục và xóa lỗi sau khi được sửa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
101
Fork
145
Merge trung bình
32 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AOSSIE-Org/InPactAI

Tất cả issue của AOSSIE-Org/InPactAI

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.