Skip to content

react sum#4274

Open
vovagorbovuy wants to merge 2 commits into
mate-academy:masterfrom
vovagorbovuy:develop
Open

react sum#4274
vovagorbovuy wants to merge 2 commits into
mate-academy:masterfrom
vovagorbovuy:develop

Conversation

@vovagorbovuy
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 provided response contains markdown text and instructions instead of valid JSON. The JSON must strictly adhere to the schema with 'decision' as either 'APPROVE' or 'REQUEST_CHANGES' and a 'reason' string. Fix the content to be pure JSON matching the expected structure.


✨ 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/Sum/Sum.jsx Outdated
a = 0,
b = 0,
}) => (
<p>Sum of {a} and {b} is {a + b}</p>
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: Use string interpolation inside tag content. Write as: <p>{Sum of ${a} and ${b} is ${a + b}}</p>

Comment thread src/App.jsx Outdated
Comment on lines +7 to +10
<Sum
a={2}
b={3}
/>
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 #1: Tags with fewer than 3 attributes should be written in one line. Change to: <Sum a={2} b={3} />

Comment thread src/App.jsx Outdated
Comment on lines +11 to +14
<Sum
a={-5}
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 violates checklist item #1: Tags with fewer than 3 attributes should be written in one line. Change to: <Sum a={-5} b={5} />

Comment thread src/App.jsx Outdated
Comment on lines +15 to +18
<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.

Violates checklist item #1 AND task requirement: This should be 'just a = 10' (no b prop). Change to: <Sum a={10} /> on one line

Comment thread src/App.jsx Outdated
Comment on lines +19 to +22
<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.

Violates checklist item #1 AND task requirement: This should be 'just b = 5' (no a prop). Change to: <Sum b={5} /> on one line

Comment thread src/App.jsx Outdated
Comment on lines +23 to +26
<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 violates checklist item #1: Tags with fewer than 3 attributes should be written in one line. Change to: <Sum />

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

export const App = () => (
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: Use string interpolation inside tag content. Change to: <p>{Sum of ${a} and ${b} is ${a + b}}</p>

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 approved. The Sum component correctly accepts a and b props with default values of 0, renders the expected text format using template literals, and uses a named export as required. The App component contains all five required Sum instances with the specified prop combinations, and the code follows the single-line formatting guideline for tags with fewer than three attributes. All checklist items have been satisfied with no critical blockers or issues present.


✨ 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