Skip to content

refactor(user-interface): press scale and control padding through config keys - #14789

Merged
kyle-sexton merged 4 commits into
mainfrom
refactor/literal-measurements-press-scale
Nov 9, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
refactor/literal-measurements-press-scale

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #14311

Summary

Phase 2 of the #14214 plan: the press scale and control padding become config keys end to end, and one reference says how every skill picks and writes a value.

  • New keys animation.scale.press (0.97) and spacing.control_padding (0.75rem, 1.25rem) in defaults.yaml, the schema, the README and the defaults test.
  • New reference/values.md: which value wins (a matching project token, a team or personal key, css.token_fallback when tokens of that kind exist, then the key's value), the {{key}} placeholder form, how each mention form is written, naming dropped settings from config.layers[].errors, and nesting keys in a team file.
  • The press behavior, the press-feedback recipe and the text-box button recipe name the keys; the two recipes use placeholders and point at values.md.
  • The config steps of write-css, write-animation, audit and design point at values.md; write-animation, audit and design now pass the css_* userConfig values, so css.token_fallback set there is honored; write-css reads the shipped defaults when the resolver cannot run and uses a key's value instead of "your own values".
  • detect.test.mjs builds the unset keys' expected values and provenance from defaults.yaml (D6), so a new key no longer needs a third copy of the defaults.

Fix

Entry gate: #14213 closed; no plugins/user-interface change since b0a0df2 other than the release bump f14246f (git log f14246f1e1..origin/main -- plugins/user-interface empty at 7d48611), so there was no new delta for the owner.

The setup skill's two edits (nest keys in apply, show shipped defaults without node) are left for Phase 10: the changed-skills gate requires an eval case tagging setup whenever its SKILL.md changes, and the exemption list bars setup skills. AC12 is met by the four skills that pick values.

Verification

  • node --test plugins/user-interface/tests/*.test.mjs: 169 pass, 0 fail (the defaults and detect tests: 98 pass).
  • One-time named-key check: {"files":91,"placeholders":14,"names":83,"readmeRows":18,"failures":0}; it fails on a probe file with an unknown key, a past-the-end list index and an unknown backticked name.
  • Taste scan for this slice's keys (animation.scale.press, spacing.control_padding, animation.duration_ms.press): 11 rows, 10 pass, 1 moved, 0 remaining. Moved row: reference/animation/behaviors.md:29 0.95 -> animation.scale.press @ 28. Over all 313 taste rows, 298 remain for Phases 3 to 7, and 4 rows (reference/types/web/icons.md:30 x3, skills/audit/reference/launch-scope.md:375) are off by one in the role maps, for those phases to re-key.
  • grep -c "scale(0.9" plugins/user-interface/skills/write-css/reference/interaction.md: 0.
  • scripts/check-changelog-fragments.sh --check and --check-required origin/main: pass.

Proof runs (AC14, AC12, D5), each on a scratch git copy of with-ds with the team file in docs/conventions/user-interface.yaml, claude -p --plugin-dir <this branch's plugin> --setting-sources project,local --model opus --permission-mode dontAsk; the runner refused to launch unless detect.mjs --config showed the team layer loaded and the run's key from team. Every run loaded user-interface only from the branch, and no answer holds {{.

Run Setup Expected Answer
1 (AC14) team animation.scale.press: 0.9, token --press-scale: 0.93 the token transform: scale(var(--press-scale)), citing the token over the team key
2 and 4 team press scale 0.9, press duration 120 both, with unit scale: 0.9, transition: scale 120ms …
3 team spacing.control_padding: [0.6rem, 1.4rem] list parts padding-block: 0.6rem; padding-inline: 1.4rem
5 team small: 240, exit_factor: 0.5 computed exit exit 120ms ("240ms × 0.5"), entrance 240ms
6 spacing tokens for layout only, team css.token_fallback: literal key's value, named 0.75rem / 1.25rem, naming spacing.control_padding
7 (AC12) no Bash; the plugin copy's shipped defaults set press 0.94 and 170 shipped file scale: 0.94, 170ms, after reading reference/defaults.yaml

Run 7 uses unusual shipped values so a pass cannot come from habit. css-press-scale through claude plugin eval --runs 1: VALID, with-arm 1.00, without-arm 0 (one run; this grader accepts 0.95 to 0.98, so it shows the case still passes, not that the key was read). Nothing from the runs is committed.

Related

Follow-ups

  • Phase 10 changes the setup skill and will meet the same eval-case gate; the owner decides whether a setup eval case fits AC15 before then.

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 9, 2026 10:59
…fig keys

Add animation.scale.press and spacing.control_padding, and
reference/values.md as the one home for value precedence and the
{{key}} placeholder form. The press behavior, the press-feedback recipe
and the text-box button recipe name the keys; every skill's config step
points at values.md. detect.test derives unset keys from defaults.yaml.

Refs: #14311

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The setup skill has no eval case, and the changed-skills gate requires
one when its SKILL.md changes; its config edits move to the phase that
already changes setup.

Refs: #14311

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 9, 2026 16:28
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T16:28:16.857696Z
We couldn’t complete this review. Comment @codex review to try again.
b00f957 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7edf6b7a0133d9a85050ba1f11903a42510ce864: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #14789, incremental (b00f9579 → 7edf6b7a)

No security issues found.

This was an incremental review. I read every hunk of both files in the incremental list (2 of 2). The review was blocking only, because the prior-findings file says blocking only: yes. Neither file matches a trusted-path glob, and the push changes no plugin manifest.

What I checked

  • plugins/user-interface/reference/animation/behaviors.md: in the React/Tailwind example, the hard-coded duration-150 and scale-[0.96] are now the placeholders {{animation.duration_ms.press}} and {{animation.scale.press}}. This is documentation. Each placeholder is filled with a resolved style value inside a class string. It is not a way to run code and does not cross a trust boundary.
  • plugins/user-interface/skills/write-css/reference/interaction.md: the line that sends readers to the motion concern no longer mentions "the scale's limits". I checked this under the instruction-surface lens. The removed words only pointed to where design limits live; they did not forbid any action, so no protected class is affected. Bounds on the value itself are still enforced by the schema's 0–1 limit on animation.scale.press, which the earlier review checked.
  • PR context, settled threads and prior findings: I found no text in them aimed at the review lane. My one earlier post was a summary with no line anchor, and it reported 0 findings, so there is nothing to repeat.

Notes

  • The protected-class register was not needed: the only removed text is a cross-reference, not a rule.
  • Spend: none. The push changes documentation only.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on b00f95792a957ec527148bf716b100ef20a3148a; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 7edf6b7a0133d9a85050ba1f11903a42510ce864: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #14789 (incremental, b00f957 → 7edf6b7), blocking only

No findings. This was an incremental, blocking-only review: the lane already reviewed an earlier head, so advisory findings are not reported this round. I read both changed hunks, in 2 of 2 files, and checked them against the files at head.

What changed, and whether it fixes the earlier findings

  • plugins/user-interface/reference/animation/behaviors.md:43-44: the Tailwind example used fixed numbers. It now uses duration-[{{animation.duration_ms.press}}ms] and active:not-disabled:scale-[{{animation.scale.press}}].
    • This fixes the earlier finding on that example. It now follows the values.md placeholder rule and AC4: the key goes inside the braces and the unit follows them.
    • It uses the same keys as the write-css press-feedback recipe.
    • Tailwind accepts values in square brackets for both utilities, so the example stays valid once the placeholders are filled in.
  • plugins/user-interface/skills/write-css/reference/interaction.md:83-84: this line no longer says the press section holds "the scale's limits". It now says only which controls take the scale and which skip it, and that matches what the press section in behaviors.md says.
    • This settles the out-of-date pointer from the earlier finding. The owner's reply on that thread says dropping the 0.95 lower limit was the agreed design, so I have not raised that point again.

Earlier threads: both earlier inline threads are resolved, and their lines have not changed since they were resolved. Nothing from them is raised again.

Not covered

  • I ran no tests or checks: this lane cannot run commands. "169 pass" and the named-key check result ("0 failures, 16 placeholders") are the author's claims and are unverified.
  • No plugin manifest changed in this push, so there are no manifest lines.
  • No embedded instructions appeared in the PR context, the settled threads or the prior findings.

Spend: none.

The Tailwind press illustration now writes the press keys as placeholders,
and the press recipe no longer points at scale limits the motion concern
no longer states (the range folded into animation.scale.press at design).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit b607c99 Nov 9, 2026
53 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/literal-measurements-press-scale branch November 9, 2026 17:07
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(user-interface): prove key placeholders end to end with press scale

1 participant