Skip to content

final#6524

Draft
melr1ze wants to merge 3 commits intomate-academy:masterfrom
melr1ze:master
Draft

final#6524
melr1ze wants to merge 3 commits intomate-academy:masterfrom
melr1ze:master

Conversation

@melr1ze
Copy link
Copy Markdown

@melr1ze melr1ze commented Apr 15, 2026

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

I am requesting changes because a few required checklist items are not yet met, even though the card looks and behaves correctly overall.

Critical issues that must be fixed:

  • In src/styles/index.scss, both BEM blocks .card and .stars are defined in the same file, which violates the requirement that each block must live in its own SCSS file [CHECKLIST ITEM #1]; please move the .card styles into something like src/styles/_card.scss and the .stars styles into src/styles/_stars.scss, then import them into index.scss with @import/@use.
  • The stars modifiers .stars--1.stars--5 are written as separate top-level selectors instead of nested under the .stars block [CHECKLIST ITEM #2]; inside .stars { ... }, add nested modifier rules such as &--4 { .stars__star:nth-child(-n + 4) { ... } } so that modifiers also use SCSS nesting.
  • At the top of src/styles/index.scss (around lines 1–4), you define colors via CSS custom properties in :root; the checklist requires SCSS variables in a separate partial [CHECKLIST ITEM #3], so move these main values into a new src/styles/_variables.scss as SCSS variables (e.g. $main-color, $text-accent-color) and import that file, then replace all var(--...) usages with the corresponding SCSS variables.

Minor but still important: your PR description should also include the provided checklist text with - [x] marks for the items you completed, as requested in the task instructions.

Once you split the SCSS into separate block files, nest the modifiers, and introduce a variables partial with SCSS variables, your solution will fully align with the checklist, and the rest of your implementation (layout, stars behavior, hover styles, and assets) already looks solid.


✨ 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/styles/index.scss
Comment on lines +24 to +126
.card {
width: 200px;
border: 1px solid #f3f3f3;
border-radius: 5px;
padding: 32px 16px 16px;
background: #fff;
margin: 100px;

&__image {
display: block;
margin: 0 auto 40px;
width: 160px;
height: 134px;
}

&__title {
margin: 0 0 4px;
font-size: 12px;
line-height: 18px;
font-weight: 500;
color: var(--text-accent-color);
}

&__code {
margin-bottom: 16px;
}

&__review-container {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 24px;
}

&__review-count {
color: var(--text-accent-color);
}

&__price-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}

&__price-label {
font-size: 12px;
line-height: 18px;
}

&__price {
font-size: 16px;
line-height: 18px;
font-weight: bold;
color: var(--text-accent-color);
}

&__buy {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 40px;
border: 1px solid var(--main-color);
border-radius: 5px;
font-size: 14px;
line-height: 16px;
color: #fff;
font-weight: 700;
text-decoration: none;
text-transform: uppercase;
background-color: var(--main-color);
&:hover {
color: var(--main-color);
background-color: #fff;
}
}
}

.stars {
display: flex;

&__star {
width: 16px;
height: 16px;
margin-right: 4px;
background-image: url('../images/star.svg');
background-repeat: no-repeat;
background-position: center;

&:last-child {
margin-right: 0;
}
}
}

.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');
}
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: "there 2 BEM blocks card and stars each in their own file" — both the .card block (starts here) and the .stars block are defined together in src/styles/index.scss. Move each BEM block into its own SCSS file (for example _card.scss and _stars.scss) and import them.

Comment thread src/styles/index.scss
Comment on lines +119 to +126

.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');
}
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: "SCSS Nesting is used for elements, modifiers and pseudo-classes" — the stars modifiers .stars--1...stars--5 are written as separate top-level selectors (lines below) instead of being nested as modifiers (for example: inside .stars use &--4 { .stars__star:nth-child(-n + 4) { ... } }). Please nest modifier rules under the block to satisfy the requirement.

Comment thread src/styles/index.scss
Comment on lines +1 to +5
:root {
--main-color: #00acdc;
--text-accent-color: #060b35;
--text-secondary-color: #616070;
}
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 #3: "SCSS Variables are used for main values and placed in a separate file" — the file uses CSS custom properties in :root (lines 1–4) inside index.scss. Replace these with SCSS variables (e.g., $main-color, $text-accent-color) placed in a separate _variables.scss partial and import it into your main stylesheet.

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

I am requesting changes because, while the card works visually and functionally, several explicit checklist requirements are not yet satisfied.

Critical issues to fix:

  • In src/styles/index.scss, both BEM blocks card and stars are defined in the same file; the checklist requires each block to live in its own SCSS file. Move the card styles to something like src/styles/card.scss and the stars styles to src/styles/stars.scss, then import them from your main entry point (or wire them into the build) instead of keeping everything in index.scss.
  • The project uses CSS custom properties instead of SCSS variables and does not have a separate variables file; the checklist requires SCSS variables for main values in a dedicated file. Create a variables file (for example src/styles/_variables.scss) with variables like $card-width, $primary-color, $text-color, etc., import it into your block files, and replace var(--...) usages with the corresponding $variable names.
  • The requirement that SCSS nesting be used for modifiers is not met: modifiers such as .stars--1 to .stars--5 are declared as top-level selectors instead of being nested under .stars. Refactor this so that your modifiers are nested, e.g.:
    .stars {
      &__star { /* base star styles */ }
      &--1 { /* rules for 1 active star */ }
      &--2 { /* rules for 2 active stars */ }
      // ...
    }
  • The pull request description is missing the copied checklist with - [x] marks after the demo/test links, which is explicitly required. Edit the PR description, paste the full checklist under the links, and mark completed items with - [x] so reviewers can quickly verify what you have covered.

Minor improvements (not blockers, but worth addressing): you could further tidy structure by keeping any reset/base styles in their own partial and following a consistent partial naming/import convention, but this is secondary to the checklist fixes above. Overall, the implementation quality is good—once you split the SCSS into block and variables files, add proper modifier nesting, and update the PR description with the checklist, your solution will fully meet the project 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

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

@melr1ze melr1ze marked this pull request as draft April 15, 2026 16:39
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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link
Copy Markdown

@brespect brespect left a comment

Choose a reason for hiding this comment

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

Your TEST REPORT LINK is not working

@melr1ze
Copy link
Copy Markdown
Author

melr1ze commented Apr 16, 2026 via email

Copy link
Copy Markdown

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

good job

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.

4 participants