Repository navigation
Encode request-shaped UI motion criteria as guide rules and checks - #135
Merged
owjs3901 merged 4 commits intoNov 28, 2026
Merged
Conversation
devup_feature_trace gains optional stateChecks, requirements, designGaps and changes inputs that return a verification matrix: - per-state groups (default/hover/active/focus/selected/disabled) comparing Figma size, position, colour, border and typography with implementation values, optional pixel checks through devup_visual_compare, and expected component-set variant states; missing design, missing capture and static-only states stay unverified - requirement verdicts (verified/unverified/not-applicable) with evidence, screen/component/state scope and browser-verification-required for interaction or visual requirements proven only statically - Figma data gaps (missing nodes/properties, failed reads/exports) with the screens, states and requirements they block; claims gate design-match and completion - change impact for shared components, shared vs screen-only config scope, static vs observed result counts - a review report per change and an ordered followUp for unfinished verification, documented in the guide (section 17) and the devup-implementation-plan skill Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sequential entrances, animation units, order and direction, dropdown and accordion behaviour, once-per-visit entrances, emphasis loops and reduced motion switched on mid-use become guide rules, developmentContract identifiers, devup_ui_validate rules and devup_runtime_audit checks (reveal sequence/unit/order/direction, reduced-motion-toggle, and a new disclosure motion kind). The shared motion controller now settles marked groups when reduced motion is switched on while the page is open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pure sequence, unit, direction and disclosure verdict tests are loaded from checks.test.mjs, which CI already runs, so the workflow file does not need to change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
owjs3901
marked this pull request as ready for review
November 28, 2026 17:38
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Merge-order note: this branch now includes #133 (merged in to resolve the |
owjs3901
deleted the
devfive/3099154426bffbeef8b62999b80bb038/motion-criteria
branch
November 28, 2026 19:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Encodes the project's UI animation design/implementation/review criteria into devup-mcp, generically: as guide rules,
developmentContractidentifiers, staticdevup_ui_validaterules and executabledevup_runtime_auditchecks. Request-specific instructions still override every default.sequential-no-overlaprequirement. Static:sequence-overlaps(per-item delay shorter than the item's duration inside adata-reveal-sequence="sequential"group, keyframes and motion-library forms) andsequence-animates-container;stagger-too-longno longer fires inside a sequential group. Runtime: revealmotion.sequence: "sequential" | "together" | "overlap"; thestaggerscenario fails a unit that starts before the previous one finished, and a group element that animates itself.RevealGroup sequence="sequential"delays each item byindex * (400ms + --reveal-gap).motion-request-first. Runtime:motion.unit(rowgroups items by the rows laid out at the audited width, so mobile 2×2 and desktop 1×4 are judged differently; a row's cards must start together).motion.order(document/reverse) andmotion.direction(from-right/from-left/from-bottom/from-top, or one per unit), measured from each item's first displaced frame; a direction that cannot be seen is unverified, never assumed. The existingprogress-synccovers "card as the line reaches each number".disclosure-height-and-focus. Static:disclosure-collapsed-focusable,disclosure-fixed-max-height,disclosure-unmounts-form(info). Runtime: new motionkind: "disclosure"(target,panel, optionalfield,after): opens and closes straight through and interrupted at 40%, and fails leftover height, focusable content while collapsed, a panel that is not its content height (including content clipped by an inneroverflow: hidden), a following element that does not move with it, a frame-to-frame jump on interruption, or a typed value lost by closing and reopening.one-shot-reveals-without-ssr-flashentry (visit semantics spelled out). The existing reload/history/bfcache/client-nav/fast-scroll/no-script scenarios already measure it.emphasis-reduced-motion. Static:motion-without-reduced-motionnow also covers infinite emphasis loops (rotation-only spinners excepted). Runtime: newreduced-motion-togglescenario switches the preference on mid-entrance and requires every running animation in the block to stop with the content shown in place. Fix found by it: the shippedRevealItemkept animating when reduced motion was switched on mid-use (its_motionReducerule loses on specificity to the[data-reveal-state="in"] &selector).motion-runtime.tsnow settles every marked group toshownwhen the preference changes.mid-sequence-motioncompletion evidence. Motion evidence rows now carry the per-unit sequence verdict (stagger.sequence).Compatibility
validate_motion, and every new field is optional. Unknown or misspelled values are rejected, and group fields requiremotion.items.developmentContractversion 6 → 7: 4 requirements and 1 completion-evidence identifier added. They are kept short so the export reply keeps its 1 KiB headroom (14323 of 15360 bytes on Windows).sequence-checks.mjsanddisclosure-checks.mjs.Tests
motion_contract_tests.rs), validation of the new motion fields and the disclosure kind, an evidence-row test, and contract and guide term coverage.test/sequence.test.mjscovers sequence, unit, order, direction, reduced-motion toggle and disclosure verdicts. It is loaded fromtest/checks.test.mjs, which CI already runs, so the workflow file is unchanged.test/motion-contract.test.mjsruns correct and broken pages for sequential cards, rows at 390px and 1440px, reverse order with direction, a live versus load-time reduced-motion switch with an emphasis loop, and accordions (focusable, padded, capped, jumping, unmounting). Existing reveal and keyframes fixtures were updated for the new default scenario.🤖 Generated with Claude Code
Submitted via Devfive hub. Employee: ; device:
3099154426bffbeef8b62999b80bb038