feat(rendered-views): fail a page source that hardcodes palette or type tokens

Aberta
#19,171 3 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
52/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
github-actions, shell
Domínio
ci-cd, tooling

Direção de pesquisa

Read scripts/README.md, scripts/check-affected.sh, and scripts/shared-copies.txt, then inspect the CI wiring in pr-require-checks.yml and ADR 0133, Decision 7. The issue specifies a check script, an explicit allowlist for unmigrated pages, CI and affected-check integration, and a test that injects a literal palette value. Done means the check reports the file and line, fails on that literal, and passes after it is removed; work is blocked by #19170.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Problem

ADR 0133 (docs/adr/0133-let-a-consumer-brand-rendered-pages-through-one-shared-token-layer.md,
Decision 7) needs two drift checks. The first already exists: the token layer's per-plugin copies
join scripts/sync-shared-copies.sh --check (CI, pr-require-checks.yml:2909-2911) once they are
registered in scripts/shared-copies.txt. The second does not: nothing stops a migrated page, or a
new one, from defining a palette role or a type stack with a literal value of its own, which would
silently ignore the consumer's branding.

Done when

  • A check fails a page source under plugins/ that defines a palette role or a type-stack custom property with a literal value outside the token layer copy, and names the file and line.
  • Pages not yet migrated are listed in an explicit allowlist the check reads, so the list shrinks as each migration slice lands and the check never passes a new page silently.
  • The check follows the check-script contract in scripts/README.md and is wired into CI and scripts/check-affected.sh.
  • A test proves the check fails on an injected literal palette value and passes once it is removed.

Related

  • Refs: #16412 (design and decisions)
  • Blocked by: #19170
Linguagem predominante
Shell
Estrelas
22
Forks
2
Merge médio
2h 1min
PRs com merge (30d)
972

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de melodic-software/claude-code-plugins

Todas as issues de melodic-software/claude-code-plugins

Issues semelhantes

Mais issues de Shell/Bash

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.