Skip to content

fix(core): the layout glide takes --duration-medium - #10261

Merged
cixzhang merged 2 commits into
meta:mainfrom
vjeux:uikit/f1-glide-medium
Nov 6, 2026
Merged

cixzhang merged 2 commits into
meta:mainfrom
vjeux:uikit/f1-glide-medium

Conversation

@vjeux

@vjeux vjeux commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #10261 → #10296

The shared layout glide plays over --duration-medium instead of --duration-medium-min: 300 ms in the Neutral theme and 410 ms with no theme, instead of 225 ms and 310 ms. Owner decision, Nov 6 2026 (Cindy): the layout glide takes --duration-medium.

Primary intent

This is a motion-timing change that the owner decided. It is not a defect fix, and a screenshot cannot show it, so neither the bug-fix nor the visual-update template fits. It changes no API and nothing at rest.

User or maintainer impact

When a Collapsible opens or closes, or a TreeList branch, a Table row or AppShell's rail, the content after it now glides over the theme's medium duration. This applies under every pointer, a mouse and a trackpad included (spec:AST-105 FR5). That is about a third longer than before. A disclosure's indicator turns over the same duration, because it takes the glide's timing. tempo still scales the duration, and the theme's move curve is unchanged.

Problem and solution fit

  • The glide read --duration-medium-min. The owner chose --duration-medium for it.
  • One token read changes, in motion/animatedLayout.ts, so every component that adopts the glide follows it.
  • spec:AST-105 FR4 names the new token, and its DEC-3 records the decision.
  • The pending release note for the glide's move to the curve tokens now gives 300 ms and 410 ms.

Authority

  • spec:AST-105 FR4 and DEC-3: the owner's decision of 2026-11-06, on top of DEC-2. The owner's word, Nov 6 2026, 02:32 PT, on which duration the glide takes: "Medium".
  • Every pointer: spec:AST-105 FR5 and DEC-2 ("A glide is a move like any other, so it takes the theme's move curve and duration … under every pointer"). So the longer glide reaches mouse and trackpad users too, as the glide's duration always has.
  • List has no animated-layout handle yet, so it is not affected.

Change and evidence

  • Red-first on main's module, from a not-for-landing commit that has only this change's tests (vjeux@69bb6aa470):

    • 7 unit cases fail with 310 where 410, 465 or 615 is expected;
    • 7 browser cases fail in Chromium with 310 against 307.5, 410 or 615.
  • Measured in Storybook in Chromium, before and after:

    State Before After
    Collapsible and TreeList glides, Neutral theme 225 ms 300 ms
    Tempo 0.75 233 ms 308 ms
    Tempo 1 310 ms 410 ms
    Tempo 1.5 465 ms 615 ms
    No theme (module page) 310 ms 410 ms
  • Each indicator's computed transition-duration equals its glide's: 0.3 s, 0.308 s, 0.41 s and 0.615 s.

Scope

  • This PR has one primary intent.
  • Independently removable deltas were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • Units (motion, Table, Collapsible, TreeList, SegmentedControl, AppShell, SideNav, List, theme): 4,117 of 4,117.
  • Interaction specs (animated layout, the adopters' edge proofs, theme timing, theme tempo, SideNav rail motion, SegmentedControl): Chromium 170 of 170, WebKit 155 of 155, with 15 skipped by design.
  • Accessibility specs (SideNav collapse stacking, Table row glide, Collapsible and TreeList close focus): Chromium 18 of 18; Table row glide in WebKit 12 of 12.
  • pnpm check:knowledge, typecheck, CI=true pnpm lint and Prettier on the changed files.

Writing rubric results

For the spec:AST-105 FR4 edit and DEC-3:

  • R1 narration: none. FR4 and DEC-3 describe the glide in the present tense.
  • R2 research in the record: none. The measurements stay in this description.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: one line in DEC-3.
  • R5 pull request or issue references remaining: none in the record.
  • R6 ruled open questions still listing options: none.

@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 6, 2026 4:10pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 6, 2026
@astracat-bot

astracat-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 6, 2026, 4:15 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 2849366

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC
AppShell 81.5 kB (0) · 12.8 kB CSS (0) —
Collapsible 24.8 kB (0) · 4.5 kB CSS (0) —
PowerSearch 271.2 kB (−1 B) · 23.1 kB CSS (0) —
2 more components
Component Size LoC
SideNav 81.2 kB (−1 B) · 10.7 kB CSS (0) —
TreeList 41.1 kB (−10 B) · 5.4 kB CSS (0) —

Package size: measured; main has no measurement of the merge base to compare yet.

API changes: cli +14 · ~5 · −0 (against the merge base's committed report)

Committed API report behind this build: cli 19 rows, core 24 rows; run pnpm api:report.

19 API changes (advisory)
Package Where Signature Usage
+ cli ./api · Types · type SearchResultEntry deprecated?: ComponentDeprecation | undefined import type {SearchResultEntry} from '@astryxdesign/cli/api'; const x: SearchResultEntry = {deprecated: …}
+ cli ./authoring · Types · interface ComponentDeprecation interface ComponentDeprecation import type {ComponentDeprecation} from '@astryxdesign/cli/authoring'
+ cli ./authoring · Types · interface ComponentIconSlotDoc interface ComponentIconSlotDoc import type {ComponentIconSlotDoc} from '@astryxdesign/cli/authoring'
+ cli ./authoring · Types · interface ComponentIconSlotStateDoc interface ComponentIconSlotStateDoc import type {ComponentIconSlotStateDoc} from '@astryxdesign/cli/authoring'
+ cli ./authoring · Types · interface MultiComponentDoc deprecated?: ComponentDeprecation import type {MultiComponentDoc} from '@astryxdesign/cli/authoring'; const x: MultiComponentDoc = {deprecated: …}
+ cli ./authoring · Types · interface SingleComponentDoc deprecated?: ComponentDeprecation import type {SingleComponentDoc} from '@astryxdesign/cli/authoring'; const x: SingleComponentDoc = {deprecated: …}
+ cli ./doc · Types · interface ComponentBaseDoc deprecated?: ComponentDeprecation import type {ComponentBaseDoc} from '@astryxdesign/cli/doc'; const x: ComponentBaseDoc = {deprecated: …}
+ cli ./doc · Types · interface SubComponentDoc deprecated?: ComponentDeprecation import type {SubComponentDoc} from '@astryxdesign/cli/doc'; const x: SubComponentDoc = {deprecated: …}
+ cli ./doc · Also exported from an earlier entry point · ComponentDeprecation ComponentDeprecation (./authoring) import {ComponentDeprecation} from '@astryxdesign/cli/doc'
+ cli ./doc · Also exported from an earlier entry point · ComponentIconSlotDoc ComponentIconSlotDoc (./authoring) import {ComponentIconSlotDoc} from '@astryxdesign/cli/doc'
+ cli ./doc · Also exported from an earlier entry point · ComponentIconSlotStateDoc ComponentIconSlotStateDoc (./authoring) import {ComponentIconSlotStateDoc} from '@astryxdesign/cli/doc'
+ cli ./template · Also exported from an earlier entry point · ComponentDeprecation ComponentDeprecation (./authoring) import {ComponentDeprecation} from '@astryxdesign/cli/template'
+ cli ./template · Also exported from an earlier entry point · ComponentIconSlotDoc ComponentIconSlotDoc (./authoring) import {ComponentIconSlotDoc} from '@astryxdesign/cli/template'
+ cli ./template · Also exported from an earlier entry point · ComponentIconSlotStateDoc ComponentIconSlotStateDoc (./authoring) import {ComponentIconSlotStateDoc} from '@astryxdesign/cli/template'
~ cli ./api · Functions · function search function search: (query: string, options?: { cwd?: string | undefined; type?: "template" | "component" | "hook" | "theme" | "doc" | undefined; limit?: number | undefined }) => Promise<SearchResponse> → function search: (query: string, options?: { cwd?: string | undefined; type?: "template" | "component" | "doc" | "theme" | "hook" | undefined; limit?: number | undefined }) => Promise<SearchResponse> import {search} from '@astryxdesign/cli/api'; search(…)
~ cli ./authoring · Types · interface MultiComponentDoc theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } import type {MultiComponentDoc} from '@astryxdesign/cli/authoring'; const x: MultiComponentDoc = {theming: …}
~ cli ./authoring · Types · interface SingleComponentDoc theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } import type {SingleComponentDoc} from '@astryxdesign/cli/authoring'; const x: SingleComponentDoc = {theming: …}
~ cli ./doc · Types · interface ComponentBaseDoc theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } import type {ComponentBaseDoc} from '@astryxdesign/cli/doc'; const x: ComponentBaseDoc = {theming: …}
~ cli ./doc · Types · interface SubComponentDoc theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[] } → theming?: { container?: boolean; targets: ComponentThemingTarget[]; vars?: ComponentThemingVar[]; derived?: ComponentThemingDerivedVar[]; componentIcons?: ComponentIconSlotDoc[] } import type {SubComponentDoc} from '@astryxdesign/cli/doc'; const x: SubComponentDoc = {theming: …}

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.


Generated by PR Enrichment workflow | View full report

@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 8982806

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026

@astracat-bot astracat-bot 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.

This change is small and well tested, and the spec text is approved for this head. Two things remain before it can be approved:

  • The description and commit message say List content now glides over the new duration, but List has no animatedLayout prop yet (its record lists it as specified but not implemented), so drop List from the stated impact or say it applies once List takes the handle.
  • The longer glide reaches mouse and trackpad users too, so the description needs to cite the owner decision that covers this desktop change in a checkable form; the current "Owner decision, Nov 6 2026" line has no quote or time.

CI has not run on this head yet; a maintainer adds the ci:run label so it runs.

[Automated review]

Owner decision, Nov 6 2026 (Cindy): the layout glide takes
--duration-medium. The shared glide played over --duration-medium-min;
it now plays over --duration-medium: 300 ms in the Neutral theme and
410 ms with no theme, instead of 225 ms and 310 ms, both scaled by
tempo. Collapsible, TreeList, Table's row expansion and AppShell's
content area share it. AST-105 FR4 names the token, and its DEC-3
records the decision.
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/approve-spec e131142

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026

@astracat-bot astracat-bot 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.

Approved pending CI: CI has not run on this head yet. The change is small and well tested, the spec:AST-105 FR4 and DEC-3 text is approved for this head, the description cites the owner's decision for the longer glide, and the List wording from the last review is fixed.

Next step: CI runs once the pull request is marked ready for review, and as a fork it also needs a maintainer to add the ci:run label.

[Automated review]

@vjeux
vjeux marked this pull request as ready for review November 6, 2026 12:19
@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 6, 2026
@cixzhang
cixzhang marked this pull request as draft November 6, 2026 12:21
@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 12:21
@cixzhang
cixzhang marked this pull request as draft November 6, 2026 12:50
@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 12:50
@cixzhang
cixzhang marked this pull request as draft November 6, 2026 15:26
@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 15:26
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 2849366

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 6, 2026

@astracat-bot astracat-bot 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.

Approved pending CI: required checks are still running on this head, so this is not yet ready to merge.

The change is small and well tested. The spec:AST-105 FR4 and DEC-3 text is approved for this exact head, and the description cites the owner's decision for the longer glide. The pull request's own change is the same as at the last review; the new commit only merges main, cleanly.

[Automated review]

@cixzhang
cixzhang merged commit 3c63e6e into meta:main Nov 6, 2026
70 checks passed
@vjeux
vjeux deleted the uikit/f1-glide-medium branch November 6, 2026 16:32
cixzhang added a commit to vjeux/astryx that referenced this pull request Nov 6, 2026
@astracat-bot astracat-bot Bot mentioned this pull request Nov 7, 2026
3 tasks done
cixzhang added a commit that referenced this pull request Nov 7, 2026
…tedLayout handle (#8106)

* feat(List): animate row inserts, removals and moves with animatedLayout

A List that takes the handle useAnimatedLayout returns animates its row
changes on one shared motion, for every pointer. An inserted row enters,
a removed row collapses in place, and a row that crosses rows moving the
other way rides above them. The rows after a change, and the content
after the list, glide to their new places. Rows match across renders by
their itemKey; a row without one changes at once.

The row marks the update module writes (item key, leaving, travelling)
live in their own private-attribute owner modules. A list under the
handle isolates for every pointer, so a sliding row stays below a
page-level sticky header.

The List and ListItem records now say the row updates and itemKey are
implemented, and their verified_by lists the files that verify them.

* Merge main into the branch (#10236 landed)

* fix(core): the layout glide takes --duration-medium

Owner decision, Nov 6 2026 (Cindy): the layout glide takes
--duration-medium. The shared glide played over --duration-medium-min;
it now plays over --duration-medium: 300 ms in the Neutral theme and
410 ms with no theme, instead of 225 ms and 310 ms, both scaled by
tempo. Collapsible, TreeList, Table's row expansion, AppShell's content
area and List share it. AST-105 FR4 names the token, and its DEC-3
records the decision.

* Merge uikit/f1-glide-medium into uikit/c11-list-updates

* fix(List): a change reads every near row before it settles any

Settling a swiped row read the next row's transform after writing the
row before it, and read every row's place after all the writes. One
pass now reads each near row's translation and place, and then the
settles are written. A settled row's place is its box less its own
translation.

* Merge main into the List updates branch (#10261 landed)

* Merge branch 'main' into uikit/c13-list-reorder

* docs(AST-105): DEC-3 names List among the glide's adopters

This pull request makes List adopt the shared layout glide, so DEC-3
names it with Collapsible, TreeList, Table's row expansion and
AppShell's content area. The merge of main took main's side of DEC-3,
which lists only the components already on main.

* fix(List): measuring a change only reads

A row a swipe translated keeps its translation across the commit, so a
change with a row swiped open lays the page out as often as one with
none. A row that leaves settles after the commit, before any place is
read again, so its exit still runs on its own box, in view, at no layout
of its own. The glide its old, translated place gives it lands at once.

* fix(List): a leaving swiped row keeps its move in the list

The module reads a swiped row's old place with its translation on it,
so its glide adds that translation to the row's move in the list. A row
that leaves now keeps only the vertical part of that glide, so a row
removed by an update that also moves it glides with its neighbours
instead of jumping. The swipe-away probe and its comment say what they
check.

* fix(List): a leaving row keeps its place and its glide's record

A second change while a swiped row exits restarted it sideways, because
the List rewrote the glide's frames while the module's record of the
glide kept the swipe's offset. The module's landLayoutGlideSideways now
changes both together. A reorder while a row exits carried that row to
the top of the list, because React moves only its own rows. Each
leaving row now stays before the row that came after it, or last.

* fix(List): a leaving row keeps its old index among the staying rows

A removed row still exiting travelled with the row that came after it
as it left, when that row moved. Each row that leaves, and each row
still leaving, now goes after as many staying rows as came before it,
so it stays where it showed whichever rows move around it. One pass
over the rows replaces the put-back anchor and the later correction.

* Merge main into the List updates branch (#10280 landed)

List.spec.md's verified_by keeps main's ListDividers spec beside this
branch's two List update tests.

* fix(List): a crossing row is marked after the module reads the layout

markCrossings set the travelling mark between the list's row reads and
the module's batched read, so a reorder with a crossing row restyled
and laid out the page again in its commit. It now sets the marks in
the microtask it already queues, after the module's read and before
the frame paints, and marks only a row that has a glide. A mark's end
clears only its own mark, so a second reorder while a row rides keeps
the new mark until the new glide ends.

* fix(List): a travelling row keeps its surface in a list with dividers

The press layer's overDividers, composed after the travelling style,
also sets box-shadow, so a travelling row in a list with dividers and
pressable rows lost its surface, and its label drew over the rows it
crossed. The travelling style now also sets the surface as a private
custom property, and overDividers keeps it in each of its shadows.
Every other row resets the property, so a nested row never inherits it.

Co-authored-by: Cindy Zhang <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — 28493666 Deployed Nov 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants