Skip to content

approve u lil robot #6285

Open
luis-botelho wants to merge 7 commits into
mate-academy:masterfrom
luis-botelho:master
Open

approve u lil robot #6285
luis-botelho wants to merge 7 commits into
mate-academy:masterfrom
luis-botelho:master

Conversation

@luis-botelho

Copy link
Copy Markdown

No description provided.

…<223556219+Copilot@users.noreply.github.com>
…bility)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… visible\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ec\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@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

I am requesting changes because there are still requirement-level issues that can break the automated tests. The task explicitly says to add data-qa="card" only to the first card and to remove old data-qa attributes, but in src/index.html you’ve added data-qa="card" to the first two cards; similarly, data-qa="card-hover" is applied to the Buy link in both the first and second cards instead of just the first one. This directly contradicts the specification and can cause selectors in tests to match more than one element, which is considered a critical blocker.

To fix this, update src/index.html so that:

  • Only the very first card element keeps data-qa="card"; remove that attribute from all subsequent cards.
  • Only the Buy link inside the first card keeps data-qa="card-hover"; remove that attribute from all other Buy links.

Everything else (semantic structure, BEM/SCSS usage, grid layout, breakpoints, hover behavior, transitions, etc.) looks solid and well-aligned with the requirements, so once you correct these data-qa attributes your solution should be ready to pass.


✨ 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/index.html Outdated
Comment on lines +144 to +146
<article
class="card"
data-qa="card"

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 task requires: "add data-qa="card" to the first card" and to remove old data-qa attributes. Here you add data-qa="card" to the first two cards, which may conflict with tests that expect this attribute only on the first card and also goes beyond what the description specifies.

Comment thread src/index.html Outdated
Comment on lines +168 to +171
<a
href="#"
class="card__button"
data-qa="card-hover"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Similarly, the description says "add data-qa="card-hover" to the link Buy inside the first card". On this card you also add data-qa="card-hover", making it present on two cards instead of just the first. This can violate the requirement about data-qa usage and test expectations.

…hored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@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

I am approving your solution because it satisfies all functional requirements and checklist items for this task. The layout uses proper semantic structure with <header>, <nav>, and <main class="catalog"> containing article.card elements, and the catalog grid correctly switches between 1, 2, 3, and 4 columns at the specified breakpoints with fixed 200px card width and correct gaps/paddings. All required hover behaviors are implemented and smoothed with the shared 300ms transition: card scaling, card title color change to #34568b, nav link color change from #060b35 to #00acdc, and button background/text color inversion. The BEM + SCSS structure is consistent across Header, Stars, and Card, and repeated values (colors, sizes, breakpoints, transition duration) are properly centralized in _variables.scss, which aligns with [CHECKLIST ITEM #1] and [CHECKLIST ITEM #2]. The data-qa attributes are now applied exactly as required: data-qa="nav-hover" on the 4th nav link only, data-qa="card" only on the first card, and data-qa="card-hover" only on the first card’s Buy button, with old attributes removed.

The remaining issues are purely cosmetic (like minor whitespace) and do not affect functionality or requirements, so they are not blockers. Overall, this is a solid, standards-compliant implementation that should be ready for testing and further use.


✨ 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