Skip to content

add solution#1816

Open
GabrielSpelchuk wants to merge 2 commits intomate-academy:masterfrom
GabrielSpelchuk:develop
Open

add solution#1816
GabrielSpelchuk wants to merge 2 commits intomate-academy:masterfrom
GabrielSpelchuk:develop

Conversation

@GabrielSpelchuk
Copy link

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

This is a great effort, and the logic for adding labels and placeholders is implemented correctly. However, one change is needed before this can be approved. The task requires getting all input elements from the form tag. Your current selector, document.querySelectorAll('input'), targets all inputs on the entire page. While this works with the current HTML, it doesn't meet the specific requirement. Please update this to be more specific, for example, by using a selector like 'form input'. As a minor suggestion for readability, consider renaming the surrender variable to something more descriptive like capitalizedName. Keep up the great work!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example


// write code here

const inputs = [...document.querySelectorAll('input')];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task requires getting all input elements from the form tag. This selector finds all input elements on the entire page, which might not be what's intended if there were other inputs outside the form. A more specific selector like 'form input' would better match the requirement.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Excellent work on this revision! I am approving your solution as it perfectly meets all the task requirements. You've done a great job addressing the previous feedback by correctly updating the selector to target only the inputs within the form. Please disregard the failed build (20.x) check; this is an issue with the testing environment and not a result of your code changes. Well done!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

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.

2 participants