feat(rendered-views): migrate the self-styled pages to the shared token layer

未关闭
#19,177 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
css, javascript, shell
领域
frontend, tooling

调研方向

Read ADR 0133, especially Decision 8 and “The inventory,” then inspect the listed CSS, HTML, and JavaScript sources plus each plugin’s scripts/shared-copies.txt and tests. The work is blocked by #19170, so check that issue before starting. Done means all three plugins use the shared token layer, their branding and no-branding checks pass, and the token drift allowlist is empty.

由索引模型根据 Issue 内容生成。

描述

Problem

ADR 0133 (docs/adr/0133-let-a-consumer-brand-rendered-pages-through-one-shared-token-layer.md,
Decision 8 and "The inventory") orders the last wave as the self-styled page sources, off the
shared builder and without --clay:

  • formal-verification: skills/chart/reference/render-theme.css
  • playbooks: reference/repo-sweep-plan-page.html
  • prototype: notes-bridge/host.html, notes-bridge/proto-pin.js, skills/explore-directions/assets/variant-switcher.html

None applies a consumer's branding. A page here whose requirements differ from the others on
palette, type or logo stays apart only after its reason is recorded in the rendered-views contract.

Done when

  • Each of the three plugins registers reference/html-tokens.css in scripts/shared-copies.txt, and formal-verification and playbooks also register lib/view-settings.mjs.
  • Each listed source takes palette and stacks from the token layer, defines no literal palette value, and applies the resolved branding overrides with the logo in the chrome bar's fixed slot when one is set; or the contract records why the page stays apart.
  • With no branding set, each page looks as it does today.
  • Each plugin's tests build or load one page with a branding override and check the override, the toggle, the comment box and the floor.
  • The three plugins are removed from the token drift check's allowlist, which is then empty.

Related

  • Refs: #16412 (design and decisions)
  • Blocked by: #19170
主要语言
Shell
星标
22
派生
2
平均合并
2 小时
30 天内合并 PR
960

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。