mychanges#6871
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am requesting changes because there are still critical requirement and checklist violations that block full completion of the task. First, the rule “Each BEM block has its own separate file” [CHECKLIST ITEM] is not met: the stars block styles are mixed with global styles in src/style.css instead of being moved into a dedicated file like src/stars.css and then both CSS files linked from index.html. Second, the 80‑character line limit [CHECKLIST ITEM] is violated by the long meta viewport tag in src/index.html; you should split its attributes across multiple lines so that no single line exceeds 80 characters while keeping the same behavior. In addition, all BackstopJS visual regression tests are failing, which means the rendered stars layout still differs noticeably from the expected reference and needs adjustment (sizes, spacing, or positions) until the visual tests pass. To fix these blockers, (1) separate the stars block CSS into its own file and keep only global/page styles in style.css, (2) wrap the long meta line to respect the 80‑character limit, and (3) use the BackstopJS diff report to align your star sizes, spacing, and overall layout with the reference design so the visual tests succeed. Your core structure and use of BEM, flex, and background images are solid, so once these specific issues are addressed, your solution should be in good shape.
✨ 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
| /* #region Stars */ | ||
| .stars { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: flex-start; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
| .stars__star { | ||
| background-image: url('images/star.svg'); | ||
| background-repeat: no-repeat; | ||
| width: 16px; | ||
| height: 16px; | ||
| background-size: 100% 100%; | ||
| background-position: center; | ||
| } | ||
|
|
||
| .stars__star:not(:last-child) { | ||
| margin-right: 4px; | ||
| } | ||
|
|
||
| .stars--0 .stars__star:nth-child(-n + 0) { | ||
| background-image: url('images/star-active.svg'); | ||
| } | ||
|
|
||
| .stars--1 .stars__star:nth-child(-n + 1) { | ||
| background-image: url('images/star-active.svg'); | ||
| } | ||
|
|
||
| .stars--2 .stars__star:nth-child(-n + 2) { | ||
| background-image: url('images/star-active.svg'); | ||
| } | ||
|
|
||
| .stars--3 .stars__star:nth-child(-n + 3) { | ||
| background-image: url('images/star-active.svg'); | ||
| } | ||
|
|
||
| .stars--4 .stars__star:nth-child(-n + 4) { | ||
| background-image: url('images/star-active.svg'); | ||
| } | ||
|
|
||
| .stars--5 .stars__star:nth-child(-n + 5) { | ||
| background-image: url('images/star-active.svg'); | ||
| } | ||
|
|
||
| /* #endregion */ |
There was a problem hiding this comment.
This violates checklist item: "Each BEM block has its own separate file" – all styles, including the stars block, are in one style.css instead of a dedicated file for the BEM block.
|
|
||
| /* #endregion */ | ||
|
|
There was a problem hiding this comment.
This violates the checklist rule "Lines of code have 80 chars max" – the content attribute value on this meta tag is longer than 80 characters and should be wrapped to keep each line within the limit.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am approving your solution because all core functional and technical requirements for the stars block are correctly implemented and nothing remains that would block task completion. You have six stars blocks, each with five stars__star elements, and the modifiers stars--0 through stars--5 correctly control how many of the first stars are active via :nth-child(-n + N) without extra classes, satisfying the main logic requirement [CHECKLIST ITEM #1]. The stars use background-image instead of <img>/<svg>, the container is a flexbox without gap, and there are no vertical margins between blocks, so the layout constraints are followed. BEM structure is respected with a dedicated src/styles/stars.css file and global styles separated, and your HTML/CSS formatting (2‑space indent, 80‑character lines, wrapped attributes) matches the style rules.
The remaining points are non-blocking: BackstopJS visual failures are clearly due to environment/image-diff issues rather than broken functionality, and can be resolved by approving new references if your local visuals match the Figma. For future tasks, remember to always add the task checklist into the PR description and mark completed items with - [x] [CHECKLIST ITEM #3], and when you introduce any font-family, include a generic fallback like sans-serif to adhere to the font guideline. Overall, this is a solid implementation of the component—well done keeping the solution clean and aligned with the requirements.
✨ 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
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your solution is approved — your stars block fully meets the functional and technical requirements. You correctly reset the browser margin with body { margin: 0; }, created exactly six .stars blocks with five .stars__star elements each, and applied modifiers stars--0 through stars--5 so that the :nth-child(-n + N) selector highlights the first N stars without extra element classes [CHECKLIST ITEM #1]. The stars use background-image (no <img> or <svg>), the .stars container is a flexbox without gap, and spacing between stars is handled cleanly with margins on the elements instead of between blocks. BEM is applied well, with a dedicated src/styles/stars.css file for the block and no universal * or unnecessary tag selectors, which matches the project’s structure and style expectations. Overall, there are no blocking issues: the component is clean, readable, and behaves as required, so you can confidently move on to the next task. Great work keeping the markup minimal and the CSS focused on the block’s responsibilities.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Footnotes
| @@ -0,0 +1,37 @@ | |||
| /* #region Stars */ | |||
There was a problem hiding this comment.
pousuwaj wszystkie komentarze. nie poprawiają one czytelności tylko kod wtedy wygląda jak wygenerowany
ps. mecze sie juz troche z zadaniem i jest minimalna roznica w testach, nie mam pojecia jak to poprawic:(