Skip to content

TEST: exercitar os comentários inline do design-check - #4

Closed
argentinaluiz wants to merge 2 commits into
design-checkfrom
test-design-check-inline
Closed

argentinaluiz wants to merge 2 commits into
design-checkfrom
test-design-check-inline

Conversation

@argentinaluiz

Copy link
Copy Markdown
Contributor

PR de teste, não é para merge. Duas violações em linhas deste diff no components/chip.tsxpx-[14px] (regra 10, pega pela medição) e dark:text-white (regra 2, pega pela varredura) — para exercitar contra a API real o caminho da review com comentário inline e, num segundo push, a deduplicação. Será fechado depois da análise.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DaeGveq15N8P4exKh46iaS

Exercises the inline path of the design check against the real API: px-[14px]
diverges from the design's 12px (rule 10, caught by measurement) and
dark:text-white is a dark: variant (rule 2, caught by the scan). Both sit on
lines of this diff, so both must come back as inline review comments. Not for
merge; the PR is closed after the run.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaeGveq15N8P4exKh46iaS
Copilot AI lite review requested due to automatic review settings September 15, 2026 15:19

Copilot AI 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.

🟡 Changes recommended

The Chip changes violate the required spacing token and theme-token conventions.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Test PR exercising inline design-check comments in components/chip.tsx.

Changes:

  • Changes Chip padding to px-[14px].
  • Adds dark:text-white.
File summaries
File Description
components/chip.tsx Introduces the two intentional design-system violations under review.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread components/chip.tsx
active
? "bg-surface-inverse text-text-inverse"
: "bg-surface-chip text-text-primary hover:bg-surface-hover",
: "bg-surface-chip text-text-primary hover:bg-surface-hover dark:text-white",
Comment thread components/chip.tsx
aria-pressed={active}
className={[
"flex h-8 items-center justify-center rounded-lg px-3 text-body font-medium",
"flex h-8 items-center justify-center rounded-lg px-[14px] text-body font-medium",

@github-actions github-actions Bot 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.

Design check: 2 achado(s) novo(s) neste push. O resumo está no comentário do PR.

Comment thread components/chip.tsx
aria-pressed={active}
className={[
"flex h-8 items-center justify-center rounded-lg px-3 text-body font-medium",
"flex h-8 items-center justify-center rounded-lg px-[14px] text-body font-medium",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Regra 10 do §12 — padding lateral 12px no design, 14px no código

O Chip no .pen tem padding: [0, $space-3], ou seja 0 12px — o export em px confirma p-[0px_12px], e a medição da app leu paddingLeft/paddingRight de 14px contra 12px do design. px-[14px] também é px cru sem origem no .pen (§2.5): 12px está na grade de 4, então a tradução é o utilitário da escala. Troque px-[14px] por px-3 (§4).

Comment thread components/chip.tsx
active
? "bg-surface-inverse text-text-inverse"
: "bg-surface-chip text-text-primary hover:bg-surface-hover",
: "bg-surface-chip text-text-primary hover:bg-surface-hover dark:text-white",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Regra 2 do §12 — variante dark: no rótulo do Chip — faltou usar o token semântico

dark:text-white viola a §2.1: os tokens já são temáticos e nenhum dark: deve aparecer no JSX. No .pen o Label do Chip usa fill: $text-primary, que resolve para $grey-900 em claro e $grey-150 em escuro — então o dark: não só é proibido, como pinta a cor errada (branco em vez de $grey-150). Remova dark:text-white; o text-text-primary que já está na mesma classe cobre os dois temas (§3).

@github-actions

github-actions Bot commented Sep 15, 2026

Copy link
Copy Markdown

Design check · design-checkc894769

2 achado(s): 0 novo(s) em linha do diff, 2 já comentado(s) antes, 0 fora do diff (abaixo).

Comparação numérica

Comparação numérica

medidas: Channel — Videos (/@FullCycle/videos)
não medidas: Channel — Home (não implementada: app/[handle]/page.tsx)
componentes comparados: 12

divergência numérica design <-> código (2)

componente propriedade design código página
Chip paddingLeft 12px 14px /@FullCycle/videos
Chip paddingRight 12px 14px /@FullCycle/videos

Second push for the dedup check: both findings keep their line text but move
from lines 9 and 13 to 10 and 14. No new inline comment should be posted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaeGveq15N8P4exKh46iaS
@argentinaluiz

Copy link
Copy Markdown
Contributor Author

Teste concluído: os dois achados em linha do diff saíram como comentário inline numa review só, e o segundo push (violações deslocadas uma linha, sem correção) não repostou nada — o resumo passou a "2 já comentado(s)". Fechando sem merge.

@argentinaluiz
argentinaluiz deleted the test-design-check-inline branch September 15, 2026 15:26
argentinaluiz added a commit that referenced this pull request Sep 15, 2026
The status line read "0 fora do diff (abaixo)" on PR #4, pointing at a list
that was not there.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaeGveq15N8P4exKh46iaS
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