From edcebc443731e8733ff9231733e55b0868b2325e Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Fri, 6 Nov 2026 08:46:32 -0800 Subject: [PATCH 01/10] feat(TreeList): the expand moves as one under a finger Under a coarse pointer without a handle, the tree runs its own animated layout: the rows below glide on the shared glide while the group slides and fades on its frames, and the chevron turns on the same timing. The tree clips its bottom edge while it moves. Each row draws only its own part of the guide lines, reading each column from the ancestor whose connector sits there. TreeList FR8 takes the spec owners' wording, and the guide behavior is a proposed design decision (DD5). --- .changeset/tree-list-expand-motion.md | 7 + apps/storybook/stories/TreeList.stories.tsx | 19 + .../components/TreeList/TreeList.spec.md | 19 +- .../core/src/List/__tests__/reducedMotion.ts | 101 ++ packages/core/src/TreeList/TreeList.doc.mjs | 2 +- packages/core/src/TreeList/TreeList.tsx | 64 +- .../core/src/TreeList/TreeListBranches.tsx | 29 +- packages/core/src/TreeList/TreeListItem.tsx | 24 +- ...TreeListExpand.interaction.browser.spec.ts | 864 ++++++++++++++++++ ...GuideAlignment.interaction.browser.spec.ts | 75 ++ .../motion/animatedLayoutAdopters.test.tsx | 111 +++ 11 files changed, 1277 insertions(+), 38 deletions(-) create mode 100644 .changeset/tree-list-expand-motion.md create mode 100644 packages/core/src/List/__tests__/reducedMotion.ts create mode 100644 packages/core/src/TreeList/__tests__/TreeListExpand.interaction.browser.spec.ts diff --git a/.changeset/tree-list-expand-motion.md b/.changeset/tree-list-expand-motion.md new file mode 100644 index 0000000000000..6323eeff6a467 --- /dev/null +++ b/.changeset/tree-list-expand-motion.md @@ -0,0 +1,7 @@ +--- +'@astryxdesign/core': patch +--- + +[feat] Under a coarse primary pointer, expanding a `TreeList` row glides the rows below it to their new places on the shared layout glide while its children fade in on the same timing, so the tree moves as one. A collapse fades the children out as the rows below glide up, and the chevron turns on that timing. The rows used to appear and leave in a single frame. Without an `animatedLayout` handle the motion stays inside the tree, so content after the tree takes its place at once, and the tree clips its bottom edge while it moves so no row paints over that content; pass a handle for it to glide too. The guide lines beside a group now show and hide with its rows. With reduced motion on and a finger, the children fade in where they land. Trees driven by a mouse are unchanged. + +@vjeux diff --git a/apps/storybook/stories/TreeList.stories.tsx b/apps/storybook/stories/TreeList.stories.tsx index 2a7e4e47e0a1b..e9cde292fa28d 100644 --- a/apps/storybook/stories/TreeList.stories.tsx +++ b/apps/storybook/stories/TreeList.stories.tsx @@ -76,6 +76,25 @@ export const Basic: Story = { }, }; +export const WithContentBelow: Story = { + render: () => ( + + +