feat(rendered-views): add the shared token layer and the branding setting
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 28/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- css, html, javascript
- Domaine
- full-stack, tooling
Piste de recherche
Start with ADR 0133 and the named entry points: lib/html-chrome.html, lib/view-settings.mjs, the builder's page policy and validator, and the rendered-views contract, registry and schema. Then inspect existing tests and the SVG allowlist, plugin option naming convention, and chrome regeneration process. Done means implementing the listed branding resolution and validation behavior, updating the contract and generated chrome copies, and passing tests for resolution order, refusals and contrast floors.
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)
lets a consumer override the palette, type stacks and logo of every rendered page, but nothing
implements it. The chrome's palette and stacks are literal values in lib/html-chrome.html:37-84,
lib/view-settings.mjs resolves only medium, and no file holds the shipped token values for a
plugin to copy. Every migration slice depends on this one.
Done when
-
lib/html-tokens.cssholds the shipped values for the palette roles (bg,fg,panel,muted,accent,link,focus) in both schemes and theserif,sansandmonostacks, andlib/html-chrome.htmltakes its values from it with no visible change. -
lib/view-settings.mjsresolves abrandingkey from the personal override, the team file and the lane plugin'suserConfig, 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. - The builder's page policy gains
img-src data:andfont-src data:and nothing else, and the validator admits adata:URL only in the logo slot (image/png,image/jpeg) and in@font-face(font media types); every otherurl(, scheme and URL-bearing attribute stays refused, with tests for each refusal. (Owner decision on #16412, 2026-11-25, accepting this widening; verbatim: "go w/ recommendations"; row: https://github.com/melodic-software/architecture/blob/d08dfddce2f0e94072f19c3a122a8c8c25cdb08f/docs/owner-decisions.md#L436) - In both schemes, the resolver checks every pair an overridable role takes part in:
fg,mutedandlinktext onbgand onpanelat 4.5:1, and thefocusoutline onbgand onpanelat 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-refreadsbrandingfrom that commit. - The
brandingkey and its schema are added to the rendered-views contract's settings section, therendered-viewsrow of the config-cascade registry, and the rendered-views schema. - The
userConfigoption shape for the per-user value followsdocs/conventions/plugin-option-naming. - The chrome's header comment no longer states the old "no team or user theme override" rule, and the four chrome copies are regenerated with their plugins bumped.
- Tests cover resolution order, each validation refusal, and the floor check.
Related
- Refs: #16412 (design and decisions)
- Blocks every rendered-views branding migration item filed from #16412
- Langage dominant
- Shell
- Étoiles
- 22
- Forks
- 2
- Merge moyen
- 2 h
- PR mergées (30 j)
- 960
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de melodic-software/claude-code-plugins
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
melodic-software/claude-code-plugins#19225 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
melodic-software/claude-code-plugins#17779 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
recurring
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
melodic-software/claude-code-plugins#19274 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
melodic-software/claude-code-plugins#19270 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 53/100
melodic-software/claude-code-plugins#19269 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de melodic-software/claude-code-plugins
Issues similaires
-
Add support for zellij terminalOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
CachyOS/CachyOS-Welcome#307 ·
-
Magnet links and .torrent files not opened: desktop Exec lacks %U and biglybt-runner drops argumentsOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
area:linux source:reader type:enhancement
Difficulté 1/5 1-3 heures Accessibilité débutants 68/100
stephrobert/blog-roadmap#236 ·
-
[BUG][Windows] mo clean throws Int32 overflow in Developer tools when removed size exceeds 2 GiBOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
nais/attest-sign#139 ·
Les mainteneurs répondent en général sous 1 jour