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

Open
#19,177 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
css, javascript, shell
Domain
frontend, tooling

Research direction

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.

Written by the indexing model from the issue text.

Description

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
Dominant language
Shell
Stars
22
Forks
2
Avg merge
2h
Merged PRs (30d)
960

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from melodic-software/claude-code-plugins

All issues in melodic-software/claude-code-plugins

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.