-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[launch week] Add submission form on the UI #3444
Conversation
@codecov-ai-reviewer review |
❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format. |
3 similar comments
❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format. |
❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format. |
❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format. |
@codecov-ai-reviewer review |
const formData: CustomFormData = { | ||
name: (form.elements.namedItem('name') as HTMLInputElement).value, | ||
email: (form.elements.namedItem('email') as HTMLInputElement).value, | ||
phoneNumber: (form.elements.namedItem('phone') as HTMLInputElement).value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phoneNumber
field is being retrieved using the name 'phone'. For consistency and clarity, it should be named 'phoneNumber' in the form as well.
console.error(message) | ||
} | ||
|
||
const form = document.querySelector('form') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of querying the form element directly in the global scope, consider using a React ref to manage the form element. This will make the code more idiomatic to React and easier to manage.
@codecov-ai-reviewer review |
I've reviewed this Pull Request and have no helpful feedback. |
Co-authored-by: codecov-ai-reviewer[bot] <156709835+codecov-ai-reviewer[bot]@users.noreply.github.com>
This PR adds a form that validates user input.