Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

rohitvinnakota-codecov
Copy link
Contributor

This PR adds a form that validates user input.

@rohitvinnakota-codecov
Copy link
Contributor Author

@codecov-ai-reviewer review

src/pages/FormSubmission.tsx Outdated Show resolved Hide resolved
@codecov-notifications
Copy link

codecov-notifications bot commented Oct 28, 2024

❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.

3 similar comments
@codecov-qa
Copy link

codecov-qa bot commented Oct 28, 2024

❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.

Copy link

codecov-public-qa bot commented Oct 28, 2024

❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.

Copy link

codecov bot commented Oct 28, 2024

❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.

@rohitvinnakota-codecov
Copy link
Contributor Author

@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,
Copy link

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')
Copy link

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 codecov deleted a comment from codecov-ai bot Oct 28, 2024
@codecov codecov deleted a comment from codecov-ai bot Oct 28, 2024
@rohitvinnakota-codecov
Copy link
Contributor Author

@codecov-ai-reviewer review

Copy link

codecov-ai bot commented Oct 28, 2024

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>
@rohitvinnakota-codecov rohitvinnakota-codecov changed the title Add submission form on the UI [launch week] Add submission form on the UI Oct 28, 2024
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.

1 participant