Skip to content

Solution#4305

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

Solution#4305
azesmmisha wants to merge 3 commits into
mate-academy:masterfrom
azesmmisha:develop

Conversation

@azesmmisha
Copy link
Copy Markdown

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

This solution requires changes before approval. There are two critical violations of task requirements:

1. Incorrect prop passing in src/App.jsx: The last three Sum instances explicitly pass default values (b={0}, a={0}, a={0} b={0}) when the requirements explicitly state these should have "no b prop", "no a prop", and "no params at all" respectively. By passing these values explicitly, you're defeating the test scenario that verifies the component's default parameter handling. Remove these props entirely to let the component's defaults take over.

2. Missing string interpolation in src/components/Sum/Sum.jsx: Checklist item #2 requires using template literal syntax inside the <p> tag content. Replace the JSX expression concatenation with:

<p>{`Sum of ${a} and ${b} is ${a + b}`}</p>

The core Sum component logic and default parameter setup are correct—these are the only remaining issues blocking approval.


✨ 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/App.jsx Outdated
{/* And remove commented lines :) */}
<Sum a={2} b={3} />
<Sum a={-5} b={5} />
<Sum a={10} b={0} />
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 passes b={0} explicitly, but the requirement states 'just a = 10' with no b prop. Remove the b prop and let the default value handle it.

Comment thread src/App.jsx Outdated
<Sum a={2} b={3} />
<Sum a={-5} b={5} />
<Sum a={10} b={0} />
<Sum a={0} b={5} />
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 passes a={0} explicitly, but the requirement states 'just b = 5' with no a prop. Remove the a prop and let the default value handle it.

Comment thread src/App.jsx Outdated
<Sum a={-5} b={5} />
<Sum a={10} b={0} />
<Sum a={0} b={5} />
<Sum a={0} b={0} />
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 passes both a={0} and b={0} explicitly, but the requirement states 'no params at all'. Remove both props entirely.

Comment thread src/App.jsx
import React from 'react';
import { Sum } from './components/Sum/Sum';
import './App.scss';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Checklist item #2 requires using string interpolation inside the tag content. Replace the JSX expression concatenation with a template literal: {Sum of ${a} and ${b} is ${a + b}}.

Comment thread src/components/Sum/Sum.jsx Outdated
Comment on lines +3 to +4
<p>
Sum of {a} and {b} is {a + b}
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 #2 which requires using string interpolation inside tag content. Replace with template literal syntax using backticks.

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.

Review Summary

Your implementation is complete and fully satisfies all requirements. The Sum component correctly uses a named export with default values for both a and b set to 0, and the App component properly renders all five required instances using string interpolation as specified. All checklist items are satisfied, including writing tags with fewer than 3 attributes on a single line and using template literals for the paragraph content. Great work on addressing the previous issues and delivering a clean solution!


✨ 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