feat(visualization,adhd): take rendered-page tokens and branding from the shared layer

Open
#19,172 3 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
58/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
css, shell
Domain
frontend, tooling

Research direction

Start with ADR 0133, Decision 8, and inspect scripts/shared-copies.txt, the visualization and adhd reference pages, and each plugin's tests. Trace how /visualization:visualize and /adhd:clarify build their pages and how the token drift check works. Done means generated token copies, branded pages with the existing appearance preserved when branding is unset, passing plugin checks, and both plugins removed from the drift check allowlist.

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) migrates the plugins that carry the chrome first. visualization carries
reference/html-chrome.html and reference/html-loop-closure.html (9 --clay lines), and
/visualization:visualize builds pages on the chrome. adhd carries the chrome for the page
/adhd:clarify builds and has no page source of its own. Neither applies a consumer's branding.

Done when

  • visualization and adhd each register reference/html-tokens.css in scripts/shared-copies.txt, and the copies are generated.
  • reference/html-loop-closure.html takes its palette from the token layer and defines no literal palette value.
  • The pages /visualization:visualize and /adhd:clarify build inline the token layer and the resolved branding overrides into the page's one <style>, and show the logo in the chrome bar's fixed slot when one is set.
  • With no branding set, a built page looks as it does today.
  • Each plugin's tests build one page with a branding override and check that the override appears and that the toggle, comment box and floor are unchanged.
  • Both plugins are removed from the token drift check's allowlist.

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.