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

Aperta
#19,171 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, shell
Ambito
ci-cd, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Shell
Stelle
22
Fork
2
Merge medio
2h 1m
PR unite (30g)
972

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di melodic-software/claude-code-plugins

Tutte le issue di melodic-software/claude-code-plugins

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.