Skip to content

Fix/profile input validation#23

Open
adi-codeartist001 wants to merge 2 commits into
indresh404:mainfrom
adi-codeartist001:fix/profile-input-validation
Open

Fix/profile input validation#23
adi-codeartist001 wants to merge 2 commits into
indresh404:mainfrom
adi-codeartist001:fix/profile-input-validation

Conversation

@adi-codeartist001
Copy link
Copy Markdown
Contributor

Fixes #17

Adds frontend validation for social link inputs before saving to Firestore.

Changes made:

  • src/pages/Profile.jsx — added regex validation for LinkedIn URL, Instagram username, and Discord username before API call
  • Shows inline toast error if invalid input is entered
  • Prevents Firestore update if validation fails

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ranker-hub Ready Ready Preview, Comment May 26, 2026 6:16am

@indresh404 indresh404 self-requested a review May 28, 2026 15:22
@indresh404 indresh404 added bug Something isn't working enhancement New feature or request level2 NSoC'26 NSoC 2026 gssoc26 GirlScript Summer of Code 2026 labels May 28, 2026
@indresh404
Copy link
Copy Markdown
Owner

@adi-codeartist001 Fix lint check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request gssoc26 GirlScript Summer of Code 2026 level2 NSoC'26 NSoC 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enchance validation section of profile

2 participants