Skip to content

PERSON SAYAO REACT PROP ??#3739

Open
sistsayao-hue wants to merge 3 commits into
mate-academy:masterfrom
sistsayao-hue:develop
Open

PERSON SAYAO REACT PROP ??#3739
sistsayao-hue wants to merge 3 commits into
mate-academy:masterfrom
sistsayao-hue:develop

Conversation

@sistsayao-hue
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@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

The implementation requires changes before approval. There are critical issues causing test failures that directly block task completion.

Critical Issues (Must Fix)

  1. Incorrect name output format: Your component renders Misha but tests expect My name is Misha. Update the name template to include the full sentence.

  2. Incorrect age output format: Your component renders Age: 37 but tests expect I am 37. Adjust the age template to match the expected format.

Minor Improvement (Recommended)

  • Checklist Item #3: Extract the nested ternary sex === 'm' ? 'wife' : 'husband' into a separate variable (e.g., partnerRole) before using it in the template literal. This improves readability and follows the style guide.

Summary

Your code structure and logic are solid—destructuring is correct, conditional rendering works, and the partner relationship logic is implemented properly. The main blocker is that the text output doesn't match the exact format expected by the tests. Update the template literals to include the full descriptive text, and your solution should pass all tests.


✨ 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

Comment thread src/components/Person/Person.jsx Outdated
Comment on lines +6 to +7
const partnerPhrase = isMarried
? `${partnerName} is my ${sex === 'm' ? 'wife' : 'husband'}`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #3: avoid putting several cases to conditional rendering. Create separate variable for the condition. The nested ternary sex === 'm' ? 'wife' : 'husband' should be extracted to a separate variable (e.g., partnerRole) before using it in the template literal.

Copy link
Copy Markdown

@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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link
Copy Markdown

@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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link
Copy Markdown

@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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link
Copy Markdown

@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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link
Copy Markdown

@IanLuan IanLuan left a comment

Choose a reason for hiding this comment

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

The DEMO LINK is not working. Please run npm run deploy.

Also, apply the changes requested by the AI mentor so your tests can pass.

@sistsayao-hue
Copy link
Copy Markdown
Author

DEMO LINK

@sistsayao-hue
Copy link
Copy Markdown
Author

DEMO LINK.github.io/react_person/)

@sistsayao-hue
Copy link
Copy Markdown
Author

DEMO LINK

Copy link
Copy Markdown

@raulriato raulriato left a comment

Choose a reason for hiding this comment

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

Your DEMO LINK is still not working. You should make sure the deploy was successfull before re-requesting review.

If you need help, feel free to contact the mentors in the questions chat

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.

4 participants