feat(rendered-views): add the shared token layer and the branding setting - part 3 of 4

Ouverte
#19,213 2 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
49/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
javascript

Piste de recherche

Read the parent issue #19170 for the full context, then inspect lib/view-settings.mjs, the lane plugin's userConfig, and ADR 0133, Decision 3. Start by tracing how settings and --team-ref are resolved, then add coverage for resolution order, validation refusals, and contrast floors. Done means all listed validation and contrast requirements pass, with notices identifying rejected overrides.

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

Description

Part 3 of 4 of #19170, split at intake (owner Q93). The done-when below is copied from #19170 as written.

Done when

  • lib/view-settings.mjs resolves a branding key from the personal override, the team file and the lane plugin's userConfig, in that order, and reports the layer behind each value.
  • The resolver accepts colors only as six-digit hex, font families only from a closed character set, a logo as an SVG that passes the builder's SVG allowlist or as a PNG or JPEG file, plus a text label, and brand font files (WOFF2, WOFF, TTF, OTF); it reads each embedded file itself, checks its magic bytes against the allowed media types and writes it as a data: URL. An invalid value is reported and ignored without dropping another layer's value.
  • In both schemes, the resolver checks every pair an overridable role takes part in: fg, muted and link text on bg and on panel at 4.5:1, and the focus outline on bg and on panel at 3:1 (ADR 0133, Decision 3). It drops an override that fails any of its pairs, keeps the shipped value, and prints a notice naming the role, scheme, pair and ratio.
  • A lane passing --team-ref reads branding from that commit.
  • The userConfig option shape for the per-user value follows docs/conventions/plugin-option-naming.
  • Tests cover resolution order, each validation refusal, and the floor check.
Langage dominant
Shell
Étoiles
22
Forks
2
Merge moyen
2 h
PR mergées (30 j)
960

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.