Skip to content

first commit stars page#6872

Open
zobov-dev wants to merge 6 commits into
mate-academy:masterfrom
zobov-dev:master
Open

first commit stars page#6872
zobov-dev wants to merge 6 commits into
mate-academy:masterfrom
zobov-dev:master

Conversation

@zobov-dev

@zobov-dev zobov-dev commented Jul 1, 2026

Copy link
Copy Markdown

DEMO LINK
TEST REPORT LINK

  • Yellow stars are added with container modifier + pseudo-selector (NO extra classes)
  • Each BEM block has its own separate file
  • All Typical Mistakes from BEM lesson theory are checked.
  • Code follows all the Code Style Rules ❗️

@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 a critical checklist requirement is not met: the stars BEM block styles are all inside src/style.css instead of having their own dedicated CSS file. The task explicitly requires “Each BEM block has its own separate file” [CHECKLIST ITEM #2], and mixing global styles (body { margin: 0; }) with block styles (.stars, .stars__star, modifiers) in one file is also listed as a typical BEM mistake. To fix this, move all stars-related rules out of src/style.css into a new file such as src/stars.css, leaving style.css only for global/base styles, and then include stars.css from your main stylesheet or index.html as required (for example, via an additional <link> in the <head>).

Functionally your stars layout, modifiers, and flex behavior look good, so this is mainly a structural/BEM-organization issue blocking completion. Once you separate the block into its own file and ensure the project structure matches the “one file per block” requirement, your solution should be ready to pass. Keep going—you’ve already implemented the core behavior correctly; this is just about aligning with the BEM and checklist standards.


✨ 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/style.css Outdated
Comment on lines +6 to +29
.stars{
display: flex;
}

.stars__star{
width: 16px;
height: 16px;
background-image: url(./images/star.svg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}

.stars__star:not(:last-child) {
margin-right: 4px;
}

.stars--1 .stars__star:nth-child(-n+1),
.stars--2 .stars__star:nth-child(-n+2),
.stars--3 .stars__star:nth-child(-n+3),
.stars--4 .stars__star:nth-child(-n+4),
.stars--5 .stars__star:nth-child(-n+5){
background-image: url(./images/star-active.svg);
} No newline at end of file

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: "Each BEM block has its own separate file". All styles for the stars block are currently in style.css; you should move the stars-related rules into a dedicated CSS file for this BEM block and include it from your main stylesheet or HTML as required.

@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 because it meets all core functional and checklist requirements for the Stars block. You correctly reset the browser margin in style.css, implemented six .stars containers with five .stars__star elements each, and used modifiers stars--0 through stars--5 so that exactly the first N stars are active via :nth-child selectors, satisfying the “yellow stars via container modifier + pseudo-selector” requirement [CHECKLIST ITEM #1]. The stars use background-image instead of <img> or <svg>, the block is laid out with display: flex without gap, and spacing is handled with margins on the star elements only, as required. You also moved the Stars block styles into their own stars.css file while keeping global styles in style.css, which fulfills the “each BEM block has its own file” requirement [CHECKLIST ITEM #2]. The BackstopJS visual test issues appear to be related to reference image setup rather than broken functionality in your code, so they are not blockers for this task. Overall, the implementation is clean, respects the BEM structure, and aligns with the task description—nice work finishing this task to specification.


✨ 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

@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 – the Stars block implementation correctly follows the task requirements and BEM structure. You successfully used six .stars blocks with five .stars__star elements each, applied the stars--0 to stars--5 modifiers, and activated exactly the first N stars via container modifiers plus :nth-child selectors, which matches [CHECKLIST ITEM #1]. The use of background-image for the stars, display: flex without gap, and margins only for horizontal spacing all align well with the constraints, and separating global styles into style.css and block styles into stars.css satisfies [CHECKLIST ITEM #2].

There is one minor area to improve: the CSS linter reports missing empty lines before some rules in src/stars.css (around lines 4, 12, and 15), which is a formatting/style issue, not a functional one. This approval is an educational override to help you move forward while you learn, but in future tasks you should fix these by either running npm run lint -- --fix or manually adding the empty lines so your code passes automated checks cleanly. Overall, you’ve done a solid job implementing the block as described—keep paying attention to small style details, and you’ll be in great shape for more complex layouts.


✨ 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

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

Good progress, but your DEMO LINK & TEST REPORT LINK are not working

@zobov-dev
zobov-dev requested a review from brespect July 2, 2026 06:19

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

Same, please request only if you are ready

@zobov-dev

zobov-dev commented Jul 2, 2026 via email

Copy link
Copy Markdown
Author

@zobov-dev
zobov-dev requested a review from brespect July 8, 2026 20:57

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

good job, but you should pass all CI tests

Image

if you have some troubles - feel free to ask your question in fe_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.

5 participants