Benchmark PR 7 - #17
Conversation
celmis-codereviewer
left a comment
There was a problem hiding this comment.
✅ APPROVED — no blocking findings
Full findings and scope are in the review summary comment on this pull request — one persistent comment, updated in place on every run.
celmis-codereviewer
left a comment
There was a problem hiding this comment.
❌ CHANGES REQUESTED — blocking findings
Full findings and scope are in the review summary comment on this pull request — one persistent comment, updated in place on every run.
| a { | ||
| font-weight: bold; | ||
| color: scale-color($primary, $lightness: 30%); | ||
| color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%)); |
There was a problem hiding this comment.
Why: On line 291 of app/assets/stylesheets/desktop/topic-post.scss, lightness for primary is set to 70% instead of 30%, which causes topic-post anchor text to render lighter in light theme than intended.
🟠 Incorrect primary lightness value used for topic post link
The original stylesheet specified scale-color($primary, $lightness: 30%) for a tags inside topic post metadata. In the new dark-light-choose expression, the primary lightness value was changed to 70% and secondary lightness to 30%, swapping their values and altering the appearance in light theme.
| color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%)); | |
| color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%)); |
agent: defect · rule: defect.incorrect-value · confidence: 0.95
| display: inline-block; | ||
| margin-top: 5px; | ||
| color: scale-color($primary, $lightness: 30%); | ||
| color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%)); |
There was a problem hiding this comment.
Why: On line 522 of app/assets/stylesheets/desktop/user.scss, lightness for primary is set to 50% instead of 30%, causing user name text to render with lightness 50% instead of 30% in light theme.
🟠 Copy-paste defect in desktop user name color lightness
The .name selector previously used scale-color($primary, $lightness: 30%). When converting to dark-light-choose, the values 50% and 50% were copied from .title below it (line 526), changing the light theme lightness of user names from 30% to 50%.
The same defect is at 2 locations: app/assets/stylesheets/desktop/user.scss:522, app/assets/stylesheets/mobile/user.scss:497.
| color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%)); | |
| color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%)); |
agent: defect · rule: defect.copy-paste · confidence: 0.95
| .custom-message-length { | ||
| margin: -10px 0 10px 20px; | ||
| color: scale-color($primary, $lightness: 70%); | ||
| color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%)); |
There was a problem hiding this comment.
Why: On line 102 of app/assets/stylesheets/mobile/modal.scss, primary and secondary lightness values are swapped, causing .custom-message-length text to render at 30% lightness instead of 70% in light theme.
🟠 Swapped lightness arguments in mobile modal custom message length
The original rule was color: scale-color($primary, $lightness: 70%). In dark-light-choose(...), the $primary lightness parameter was given 30% and $secondary was given 70%, which darkens the message length hint text in light theme.
| color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%)); | |
| color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%)); |
agent: defect · rule: defect.incorrect-value · confidence: 0.95
| margin-bottom: 4px; | ||
| margin-top: 0; | ||
| color: scale-color($primary, $lightness: 20%); | ||
| color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%)); |
There was a problem hiding this comment.
Why: On line 182 of app/assets/stylesheets/mobile/topic-post.scss, lightness for primary is set to 50% instead of 20%, causing h3 headings to render lighter in light theme than intended.
🟠 Copy-paste defect in mobile topic post h3 color lightness
The original rule for h3 used scale-color($primary, $lightness: 20%). The conversion copied 50% from h4 (line 190) for both light and dark variants instead of maintaining 20% for $primary (and 80% for $secondary, matching desktop/topic-post.scss).
| color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%)); | |
| color: dark-light-choose(scale-color($primary, $lightness: 20%), scale-color($secondary, $lightness: 80%)); |
agent: defect · rule: defect.copy-paste · confidence: 0.95
🤖 Code Review for PR #17❌ CHANGES REQUESTED — blocking findings Findings
Scope
Performance
Powered by Code Analyzer · context: tree-sitter graph + structural, cve, security, contract, defect |
Benchmark reproduction of ai-code-review-evaluation#7