Repository navigation
feat(react-motion-components-preview): migrate Rotate to directed parameters - #36399
Draft
Robert Penner (robertpenner) wants to merge 3 commits into
Draft
Robert Penner (robertpenner) wants to merge 3 commits into
Robert Penner (robertpenner) wants to merge 3 commits into
Conversation
Robert Penner (robertpenner)
requested review from
a team and
Victor Genaev (mainframev)
as code owners
July 14, 2026 19:53
📊 Bundle size reportUnchanged fixtures
|
|
Pull request demo site: URL |
| @@ -0,0 +1,7 @@ | |||
| { | |||
There was a problem hiding this comment.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests-react-components/Positioning 2 screenshots
| Image Name | Diff(in Pixels) | Image Type |
|---|---|---|
| vr-tests-react-components/Positioning.Positioning end.chromium.png | 12 | Changed |
| vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png | 743 | Changed |
vr-tests-react-components/ProgressBar converged 2 screenshots
| Image Name | Diff(in Pixels) | Image Type |
|---|---|---|
| vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - High Contrast.default.chromium.png | 100 | Changed |
| vr-tests-react-components/ProgressBar converged.Indeterminate + thickness.default.chromium.png | 138 | Changed |
vr-tests-react-components/TagPicker 3 screenshots
| Image Name | Diff(in Pixels) | Image Type |
|---|---|---|
| vr-tests-react-components/TagPicker.disabled - High Contrast.disabled input hover.chromium.png | 1319 | Changed |
| vr-tests-react-components/TagPicker.disabled - RTL.chromium.png | 635 | Changed |
| vr-tests-react-components/TagPicker.disabled.disabled input hover.chromium.png | 677 | Changed |
There were 3 duplicate changes discarded. Check the build logs for more information.
Tudor Popa (tudorpopams)
requested review from
Martin Hochel (Hotell) and
Dmytro Kirpa (dmytrokirpa)
and removed request for
Martin Hochel (Hotell) and
Dmytro Kirpa (dmytrokirpa)
August 6, 2026 14:32
Paul Mardling (PaulGMardling)
approved these changes
Sep 3, 2026
Paul Mardling (PaulGMardling)
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the contribution! The migration to directed Rotate parameters is clear, preserves the existing defaults, and includes solid test coverage. No actionable issues found.
Robert Penner (robertpenner)
marked this pull request as draft
October 5, 2026 21:43
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the Rotate API migration.
No open issues 🎉
What changed in this PR
Migrates the preview motion package’s Rotate API to explicit entry, rest, and exit angles while preserving factory-generated Rotate.In and Rotate.Out projections.
Changes:
- Replaces
outAngle/inAnglewithfromAngle/restAngle/toAngleand makesrotateAtomdirection-neutral. - Updates stories and Nav’s chevron consumer, preserving its
0 → 180 → 0rotation. - Updates tests, documentation, the API report, and package change files.
| File | Description |
|---|---|
packages/react-components/react-nav/library/src/components/NavCategoryItem/useNavCategoryItem.tsx |
Migrates chevron angle parameters. |
packages/react-components/react-motion-components-preview/stories/src/Rotate/RotateDescription.md |
Updates the usage example. |
packages/react-components/react-motion-components-preview/stories/src/Rotate/RotateDefault.stories.tsx |
Adds controls for all three angles. |
packages/react-components/react-motion-components-preview/stories/src/Rotate/RotateCardFlip.stories.tsx |
Migrates card-flip angle parameters. |
packages/react-components/react-motion-components-preview/stories/src/Introduction/index.mdx |
Updates the component parameter reference. |
packages/react-components/react-motion-components-preview/stories/src/Introduction/ComponentsGrid.tsx |
Migrates the Rotate showcase. |
packages/react-components/react-motion-components-preview/stories/src/Atoms/index.mdx |
Updates atom documentation and examples. |
packages/react-components/react-motion-components-preview/stories/src/Atoms/ComposingAtomsDemo.tsx |
Uses directed endpoints in composed animations. |
packages/react-components/react-motion-components-preview/stories/src/Atoms/AtomsDemo.tsx |
Migrates the atom demo and snippet. |
packages/react-components/react-motion-components-preview/library/src/components/Rotate/Rotate.ts |
Maps entry and exit to directed angle pairs. |
packages/react-components/react-motion-components-preview/library/src/components/Rotate/Rotate.test.ts |
Covers endpoints, projections, timing, and opacity. |
packages/react-components/react-motion-components-preview/library/src/components/Rotate/rotate-types.ts |
Defines and documents the new angle parameters. |
packages/react-components/react-motion-components-preview/library/src/atoms/rotate-atom.ts |
Generates directed rotation keyframes without reversal. |
packages/react-components/react-motion-components-preview/library/src/atoms/rotate-atom.test.ts |
Updates tests for directed endpoints. |
packages/react-components/react-motion-components-preview/library/etc/react-motion-components-preview.api.md |
Records the updated public API. |
change/@fluentui-react-nav-rotate-presence.json |
Adds the Nav patch release note. |
change/@fluentui-react-motion-components-preview-rotate-presence.json |
Adds the motion preview minor release note. |
Review effort: Balanced
This branch has not been deployed
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
RotatefromoutAngle/inAngleto the graph-levelfromAngle/restAngle/toAngleparameter recordRotate.InandRotate.OutprojectionsrotateAtoma neutral directedfromAngle→toAngleatomNavCategoryItemconsumer while preserving its0 → 180 → 0behaviorValidation
yarn nx test react-motion-components-preview --runInBand— 168 tests passedyarn nx test react-nav --runInBand— 284 tests passedgit diff --check