Skip to content

Develop - #1935

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

Develop#1935
MarcelloTar wants to merge 3 commits into
mate-academy:masterfrom
MarcelloTar:develop

Conversation

@MarcelloTar

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

Your implementation has a critical blocker that is causing test failures. The h2 title element is missing the required title class - the task explicitly specifies that the title should be an h2 element with class title (e.g., <h2 class="title">). Additionally, the Cypress tests are failing because they expect the h2 element to have a class attribute. You need to add class="title" to the h2 element in your notification template. This is a core requirement that must be met for the task to be considered complete.


✨ 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/scripts/main.js Outdated
div.style.right = posRight + 'px';

div.innerHTML = `
<h2>${title}</h2>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The h2 element is missing the title class. The task requires: 'The message should have a title with class title (prefer h2 element)'. Add class="title" to the h2 element.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

Your solution is approved. All task requirements have been successfully implemented: the pushNotification function correctly accepts coordinates, title, description, and type parameters; creates a div with classes notification and the type; includes an h2 element with class title; adds a description paragraph; appends to the document body; and hides the message after 2 seconds using setTimeout with display: 'none'. The three notification calls (success, error, warning) are present as required. The previous issue with the missing class="title" has been fixed. Great work!


✨ 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