Skip to content

feat(user-interface): add design-time motion and interaction guidance - #6733

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/user-interface-motion-patterns
Oct 10, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/user-interface-motion-patterns

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

No related issue: design-time guidance drawn from a research pass over @gabriell_lab's design-engineering posts; no tracker item was filed for it.

Summary

/user-interface:design had no motion or interaction guidance of its own on the web. Motion went to other routes, and the pinned Vercel checklist only applies at review time. This PR adds a short design-time "Motion and interaction" block to plugins/user-interface/reference/types/web.md.

Fix

  • New ## Motion and interaction section in reference/types/web.md with seven bullets, each written in our own words and linking its source posts:
    • interruptible motion
    • expanding to content height with grid-template-rows on a grid wrapper, with the disclosure state exposed and the closed content inert (stated as a deliberate exception to the checklist's transform-and-opacity-only rule)
    • appearance changes that never change the layout box
    • layout changes that keep each element's identity (API details go to the existing motion route in routing.json)
    • briefing motion in named terms and numbers
    • free-drag controls that snap
    • shaping corners without clipping focus, with a dated MDN pointer record for corner-shape
  • Dropped: "contain scrolling inside overlays". The pinned checklist already has overscroll-behavior: contain in modals/drawers/sheets (command.md line 106), so a line here would only restate it.
  • Changelog fragment .changes/user-interface/… (minor). user-interface is in scripts/fragment-plugins.txt.

Instruction-economy evidence. Each bullet answers a mistake his posts show side by side with its fix, in interfaces built by agents and by hand: restart-from-zero springs, height: auto animation, layout shift from font and skeleton swaps, scaled text during layout animation, vague motion briefs given to AI tools, and free drags with no snap. Those posts are the observed-stumble evidence for this addition. No eval case was added; this is new reference guidance, not a cut to an existing skill.

Verification

  • markdownlint-cli2 with the repo config on web.md and the fragment: 0 issues.
  • scripts/check-changelog-fragments.sh --check: all fragments valid.
  • /skill-quality:check design: PASS, 0 errors, 1 warning that was already there (description length).
  • plugins/user-interface/tests/routing.test.sh 15/15 and detect.test.sh 28/28 pass.
  • Checked the diff for secrets and machine-specific data: none.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01UhzzHGSwSkT6xmqNRwvXeS

Add a "Motion and interaction" block to the web type file: interruptible
motion, expanding to content height via grid-template-rows, appearance
changes that keep the layout box, layout changes that keep element
identity, briefing motion in named terms and numbers, snapping free-drag
controls, and shaping corners without clipping focus. The Responsive line
adds testing components at their smallest size and largest values.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UhzzHGSwSkT6xmqNRwvXeS
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 10, 2026 17:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T17:33:25.119995Z 69dad7c 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.

@claude

claude Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 52s —— View job


Security review — PR #6733 feat(user-interface): add design-time motion and interaction guidance

Scope: .claude/rules/* not touched; reviewed the two changed files per git diff origin/main...HEAD:

  • .changes/user-interface/feat-user-interface-motion-patterns-b17f70b2.md (new changelog fragment)
  • plugins/user-interface/reference/types/web.md (+44/-1)

Skip gate applied: this change has no security-relevant surface. It's a documentation-only
addition to a reference file: a new "Motion and interaction" section of design guidance (seven
bullets on CSS/animation technique, each citing an external source post or the MDN corner-shape
page) plus one clause added to the existing Responsive line. No code execution, no auth/access
control, no input handling, no secrets/credentials, and no GitHub Actions changes are introduced.

Instruction-surface check: the diff only adds text; the one modified line (Responsive)
extends existing guidance rather than removing or softening it, and no CLAUDE.md/AGENTS.md/
rules-file/skill-or-agent-body guardrail is deleted or narrowed anywhere in this diff. No match
against the instruction exception register is implicated.

Conclusion: no security issues found. Per the skip gate, no inline comments were posted.

@claude

claude Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 4m 11s —— View job


Code review complete

  • Gather context (PR diff, changed files, CLAUDE.md/REVIEW.md)
  • Review plugins/user-interface/reference/types/web.md changes
  • Review changelog fragment
  • Check skip-gate conditions (not applicable — real content change)
  • Post findings

This is a docs-only change (new ## Motion and interaction section in reference/types/web.md, one clause added to the Responsive line, and a changelog fragment). I checked it against CLAUDE.md/AGENTS.md/REVIEW.md, internal consistency (the routing.json "motion" concern referenced for the view-transition/library case exists; the principles.md "visible focus" cross-reference holds; the new corner-shape pointer/as-of/recheck-trigger block follows the same pattern already used elsewhere in this file for the Vercel checklist and platform-design-language pointers), and the project's own docs/plugin-philosophy.md#instruction-economy rule, which the PR body itself invokes.

One finding posted inline on plugins/user-interface/reference/types/web.md lines 29-30: the added Responsive clause ("test each component at its smallest size and with its largest values") has no observed-stumble evidence named anywhere in the PR, unlike the seven ## Motion and interaction bullets, which the PR body's "Instruction-economy evidence" paragraph and "Related" links explicitly ground in cited posts. See the inline comment for the rule citation and a fix suggestion.

Note on the external sources: I don't have network access in this lane to fetch the pinned Vercel checklist (command.md at the pinned commit) or the linked X posts, so I could not independently verify the PR's claims about what that checklist already covers (e.g. the dropped "contain scrolling inside overlays" bullet, or the "transform-and-opacity-only rule" the grid-rows technique is framed as an exception to) or the technical specifics attributed to the cited posts. Those are author-claimed and unverified by me, not confirmed.

Author-claimed verification (markdownlint, check-changelog-fragments.sh, /skill-quality:check design, the two .test.sh suites) is reported as-is in the PR description; I did not re-run these myself.

@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review has reviewed this pull request through b910bfb; a later push is reviewed from there.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 69dad7cb8a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-review has reviewed this pull request through b910bfb; a later push is reviewed from there.

…ccessible

Require display: grid on the animated wrapper, expose the disclosure state
and make collapsed content inert. Drop the Responsive clause, which had no
observed-stumble evidence behind it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@claude

claude Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 29s —— View job


Code review complete

  • Gather context (PR diff, incremental diff, repo instructions)
  • Understand the request (incremental review via /review:code-review, scoped to changes since 69dad7cb8a00a8adad37a2604bd9921272109157)
  • Run /review:code-review for the incremental diff
  • Post findings

Scope: per the lane's incremental-review contract, only the diff in .claude-lane/incremental.diff since the last-reviewed commit, across the two files listed there:

  • .changes/user-interface/feat-user-interface-motion-patterns-b17f70b2.md
  • plugins/user-interface/reference/types/web.md

What this commit (b910bfb) does: it resolves all three open review findings from the prior round:

  1. Codex's "grid formatting context" finding — the expand-to-height recipe now says the wrapper is display: grid (web.md#L42), so grid-template-rows has an effect.
  2. Codex's "remove collapsed descendants from the tab order" finding — the recipe now calls out that overflow: hidden alone leaves descendants keyboard/AT-reachable, and directs exposing the open/closed state on the trigger and making the collapsed content inert (web.md#L44-L46).
  3. My own prior finding on the unevidenced Responsive clause — that clause is dropped entirely, reverting the line to its pre-PR wording (web.md#L29).

The changelog fragment is updated in step with the Responsive-clause revert, so it no longer claims a change that isn't in the diff.

Correctness check on the new wording: the 0fr/1fr + display: grid + min-height: 0 + overflow: hidden combination is a real, working technique (overflow:hidden on a collapsed grid track does not by itself remove focusable descendants from the tab order, which is exactly the gap the added inert guidance closes). No new technical defect found in the fix itself.

No findings. This is a tightly-scoped fix commit that only addresses prior review feedback; no new issues identified in the incremental diff.

@claude

claude Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 56s —— View job


Security review — PR #6733 feat(user-interface): add design-time motion and interaction guidance (incremental)

  • Gather context (incremental diff, PR body, repo instructions)
  • Invoke /review:security-review per custom instructions
  • Post findings

Scope: incremental. This lane last reviewed 69dad7cb8a00a8adad37a2604bd9921272109157; reviewed only the changes since then (from .claude-lane/incremental.diff), in:

  • .changes/user-interface/feat-user-interface-motion-patterns-b17f70b2.md
  • plugins/user-interface/reference/types/web.md

What changed in this increment: the new commit (b910bfb) is a follow-up fix responding to the two prior review threads:

  • Dropped the Responsive clause "test each component at its smallest size and with its largest values" (and its changelog line) — this addresses the earlier finding that the clause had no named observed-stumble evidence.
  • Reworked the "Expand to content height" recipe to require display: grid on the animated wrapper (addressing Codex's P2 finding that the recipe had no effect without a grid formatting context), and added guidance to expose the open/closed state on the trigger and make the collapsed content inert once closed (addressing Codex's P2 finding on collapsed descendants staying in the tab order).

Skip gate applied: no security-relevant surface. This increment only edits prose in a design-reference markdown file and a changelog fragment — no code execution, no auth/access control, no input handling, no secrets/credentials, and no GitHub Actions changes.

Instruction-surface check: plugins/user-interface/reference/types/web.md is design-process reference guidance (consulted when designing web UI), not a CLAUDE.md/AGENTS.md/rules file/skill-or-agent body/hook block-or-allow list. The one deletion in this increment (the Responsive clause) removes a piece of design advice, not a standing instruction or guardrail covered by the instruction exception register — it has no bearing on what any agent, tool, or process is permitted to do. The rest of the increment only adds accessibility guidance (inert on closed content, exposing open/closed state), which strengthens rather than weakens any control.

Conclusion: no security issues found. Per the skip gate, no inline comments were posted.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 10, 2026
Merged via the queue into main with commit 9e1a38e Oct 10, 2026
38 of 39 checks passed
@kyle-sexton
kyle-sexton deleted the feat/user-interface-motion-patterns branch October 10, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant