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

Ouverte
#19,171 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
52/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
github-actions, shell
Domaine
ci-cd, tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
Shell
Étoiles
22
Forks
2
Merge moyen
2 h 1 min
PR mergées (30 j)
972

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de melodic-software/claude-code-plugins

Toutes les issues de melodic-software/claude-code-plugins

Issues similaires

Plus d'issues Shell/Bash

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.