Skip to content

fix(ux): add client-side validation for empty job search submissions#410

Open
Abhi666-max wants to merge 1 commit into
Canopus-Labs:mainfrom
Abhi666-max:fix-job-search-validation
Open

fix(ux): add client-side validation for empty job search submissions#410
Abhi666-max wants to merge 1 commit into
Canopus-Labs:mainfrom
Abhi666-max:fix-job-search-validation

Conversation

@Abhi666-max

Copy link
Copy Markdown

📝 Pull Request Description

Related Issue

Closes #391

Summary

Added client-side validation to the JobsForYou component's search form to prevent users from submitting empty or whitespace-only role queries. This blocks unnecessary API requests, conditionally disables the submit button, and displays an inline error message to improve the overall user experience.


Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature
  • ♻️ Refactoring
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • 🔥 Other(please describe) ______

How Has This Been Tested?

  • Verified that the "Search" button is disabled when the input is empty or contains only whitespace.
  • Verified that pressing "Enter" on an empty input prevents form submission and displays the inline "Please enter a role" error message.
  • Verified that typing a valid character into the input field immediately clears the error message and re-enables the search button.

Screenshots (if applicable)

N/A (UI state changes: disabled button and inline error text).


Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix(UX): Add client-side validation for empty job search submissions

1 participant