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

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
49/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript

调研方向

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.

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

描述

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.
主要语言
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 摘要。