Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#197 0 comments 0 reactions 0 assignees View on GitHub

@Divyanshu-s13 is already working on this.

Since Nov 20, 2025.

  • #198 by @Divyanshu-s13 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Start at the /basicDetails/influencer and /basicDetails/brand routes and trace the BasicDetails form component and its Next-button flow. Reproduce the empty and malformed email, phone, URL, engagement-rate, and audience-size cases, then verify that invalid fields show feedback, block progression, and clear their errors after correction.

Written by the indexing model from the issue text.

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
Dominant language
TypeScript
Stars
101
Forks
145
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/InPactAI

All issues in AOSSIE-Org/InPactAI

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.