Skip to content

fix(core): layout glides play the theme's move curve, not a spring - #10094

Closed
vjeux wants to merge 5 commits into
meta:mainfrom
vjeux:uikit/f1-glide-curve-tokens
Closed

vjeux wants to merge 5 commits into
meta:mainfrom
vjeux:uikit/f1-glide-curve-tokens

Conversation

@vjeux

@vjeux vjeux commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #10094 → #10229

The animated-layout glide now plays the theme's move curve, --ease-move, over --duration-medium-min, as spec:AST-105 FR4 and DEC-2 require. It no longer plays the settle spring. This retires #8677's interim line: "Until the glide moves to the curve tokens (AST-105 DEC-2), its interim springs.settle follows tempo under every pointer."

User impact

People who open a Collapsible, a TreeList branch or a Table row's panel, or who collapse AppShell's side rail, see the content after it glide. On main that glide plays the settle spring, which lasts about 735 ms, longer than the theme's other medium motion. A theme's character never reaches it, so a crisp or expressive theme glides the same as the standard one. With this change the glide follows the theme: 225 ms in the Neutral theme and 310 ms with no theme, on the theme's move curve.

Problem and solution fit

  • Why does the glide feel off? It plays a spring instead of the theme's motion tokens.
  • Why does that hurt? The theme's other medium motion runs on the curve tokens, so the glide lands well after the motion around it, and character has no effect on it.
  • Why does that matter? FR4 promises one motion that follows the theme, and AppShell, Collapsible, Table row expansion and TreeList all play whatever the module plays.

The fix changes only where the module gets its timing. It reads --duration-medium-min and --ease-move where the area is, through #10068's readThemeTiming. Summing a running glide with a new move works on any progress curve, so that code is unchanged.

Expected behavior and authority

  • spec:AST-105 FR4 and DEC-2: the glide, the in-place swap and the edge reveal play --ease-move over --duration-medium-min, never a spring. The record's gap line saying they still play springs.settle goes, since FR4 now holds.
  • spec:AST-094 FR45: motion that a tap or a click starts plays the theme's motion tokens.
  • spec:AST-108 FR2: the duration tokens carry the theme's tempo, so the glide is not scaled twice.

Smallest restoration

  • motion/animatedLayout.ts reads the curve through readThemeTiming. A zero duration, or an easing the browser cannot play, lands the change at once. The motion's kind is renamed from 'spring' to 'glide'. A disclosure's indicator takes the duration and the move curve's text that the glide reads where the area is, instead of a sampled linear(). So a theme scope between the area and the indicator does not retime the indicator.
  • A running glide is read as the browser draws it: a straight line between two of its keyframes. The curve bends more than the spring did where a retarget lands, so reading the true curve there left a jump of up to about 0.3 px on an 80 px move. A new glide now starts exactly where the old one shows, and the retarget specs hold that within 0.01 px.
  • AppShell's three checks of the motion's kind, and a comment in SideNav's rail, follow the rename.
  • Reduce Motion is unchanged: a cross-fade under a coarse pointer, an immediate change otherwise.
  • The theme-timing reader keeps a typed copy of the timing tokens' declared values, which a unit test holds equal to the token file's. Importing it runs no StyleX, so the animated-layout module and the server-safe factories that import it stay free of DOM work at import.
  • The theme-timing reader plays an easing that is not a cubic Bézier as the browser plays it: a paused animation with that easing gives its eased progress. A theme's --ease-move can be a linear() or steps() function, which the motion scale's easing option writes, and such a theme got no glide. A jump in such an easing carries no speed, so a retarget at a jump inherits none. The segmented control's selection, the reader's other caller, now plays such an easing too instead of moving at once.
  • The WebKit interaction lane's scope covers theme/tokenReferences.ts: the glide reads its timing through the theme-timing reader, which resolves token references, so the WebKit proofs' bundle of the module carries that file. The lane's routing test requires every bundled source in scope.
  • Merging with fix(core): a calc() duration token times the press release clock #10069: one conflict in themeTiming.ts. Keep firstEasingText with its JSDoc, and leave firstEasing's one-line JSDoc dropped, as fix(core): a calc() duration token times the press release clock #10069 drops it.
  • No public API changes.

Evidence

  • Reproduction before the change: on the base, a follower's glide lasts 734.77 ms in Chromium (springs.settle), whatever the scope's --duration-medium-min and --ease-move.
  • Desktop, with a mouse: in Chromium on Storybook's Neutral theme (Core/Animated layout), main glides the content after the Collapsible and the TreeList in 734.77 ms; this change takes 225 ms, on cubic-bezier(.24, 1, .4, 1). A quarter of the way through the time, the content is 70.5% of the way there on main and 78.8% with this change.
  • Result after the change, measured in Chromium after a mouse click: 310 ms with no theme, and 233, 310 and 465 ms in Storybook's tempo 0.75, 1 and 1.5 rows (Core/Theme motion tempo). Every keyframe sits on the theme's curve: standard cubic-bezier(0.24, 1, 0.4, 1), crisp and expressive. In Storybook's Neutral theme it lasts 225 ms.
  • Representative unchanged path: Reduce Motion by pointer, a retarget of a running glide (the rest of the old curve plus the new move) and FR9's edge reveal. The animated-layout browser spec passes 90 of 90 in Chromium and in WebKit. Every glide in Storybook's Core/Animated layout (Collapsible and TreeList) and in the Core/Theme motion tempo rows has the same durations and keyframes, byte for byte, as at c36b15d, the head card 80 passed.
  • Import safety: a server test imports the reader and the animated-layout module in plain Node. Without the copy both fail with "Unexpected 'stylex.defineVars' call at runtime".
  • A theme scope between the area and a disclosure's indicator: with the area at 310 ms and a nested scope at 620 ms and another curve, the indicator turned in 620 ms on the nested curve while the content after it glided in 310 ms (red on a not-for-landing arm in Chromium and WebKit: vjeux@b8b1846de3). It now turns in 310 ms on the area's curve. In Storybook's default theme, every glide is byte-identical and every indicator's computed duration and curve are unchanged.
  • A linear() or steps() move easing, red without the reader change on a not-for-landing arm (vjeux@52cd5efb04) in Chromium and WebKit: the FR4 cases for linear(0, 0.8 50%, 1) and steps(4, jump-end) find no glide, the reader's case for both patterns finds no curve, and a click's slide in the segmented control lands at once (1 ms where the theme gives 125 ms). A mutant that ignores the browser's easing (vjeux@cd83d61530) fails the same cases on the curve: −75.79 px where linear() gives −73.26 px at 16.3 ms. All pass with the change.
  • A jump carries no speed: at a jump of steps(4) over 300 ms, a two-sided difference reads about 125 progress per second. The curve now reads 0 there, and the unit cases for it fail without the change.
  • The adopters' edge proofs, which read the module's clock, are on main since test(core): the adopters' edge proofs read the module's clock #10150. They pass against this change in Chromium and WebKit.
  • Regression proof: 6 unit tests are red on the base and green after. The browser spec's 5 curve, tempo and character cases are red on the base ("Expected 310, Received 734.77") and green after. With the 0.01 px bound, the retarget cases fail 11 of 18 runs on a not-for-landing arm without the drawn reading (vjeux@f635a8653d, jumps of 0.013 to 0.055 px) and pass 18 of 18 with it.

Scope

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm build, pnpm typecheck and CI=true pnpm lint on the changed files.
  • pnpm test:ui: 21,455 passed.
  • The WebKit lane's routing test, ci-interaction-webkit.test.mjs: 21 of 21 (red without the scope line: the animated-layout bundle carries theme/tokenReferences.ts); every test that reads ci.yml, 647 of 647.
  • Interaction specs, Chromium 169 of 169 and WebKit 154 of 154 with 15 skipped by design: animated layout (91 with the indicator case), the adopters' edge proofs (6), theme timing (7), theme tempo (6), segmented control (48; 3 skipped in WebKit), SideNav rail motion (12, Chromium only).
  • Accessibility specs: Table row glide (12 of 12), Collapsible close focus, TreeList collapse focus, Table cell menus.
  • Before and after: Core/Animated layout's Collapsible and TreeList, on main's deploy and on this head's.

Writing rubric results

AST-105 is the one record this pull request touches.

  • R1 narration: one sentence, the "Out of coverage" line saying the glide, the swap and the edge reveal still play springs.settle "today" until FR4 moves them, described a change, not the system. It is deleted. Current-state impact keeps its lines about the present state, which that section is for.
  • R2 research: none in the record.
  • R3 evidence: no evidence or verification cell names a pull request, issue or commit.
  • R4 rejected alternatives: two, in DEC-1 and DEC-2, each one line inside its decision.
  • R5 change references: none.
  • R6 open questions: none.

@vercel

vercel Bot commented Nov 5, 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 8:49am UTC

Request Review

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

astracat-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 6, 2026, 9:04 AM UTC

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

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 56674ea

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
TableBody 3.5 kB (0) · 3.3 kB CSS (0) — ✓ · ✓ · ✗
TableFooter 3.5 kB (0) · 3.3 kB CSS (0) — ✓ · ✓ · ✗
TableHeader 3.5 kB (0) · 3.3 kB CSS (0) — ✓ · ✓ · ✗
17 more components
Component Size LoC Visual · A11y · RTL
TableRow 6.7 kB (0) · 3.9 kB CSS (0) — ✓ · ✓ · ✗
AppShell · Storybook 79.9 kB (−1.4 kB) · 12.8 kB CSS (0) 1,096 (0) ✗ · ✓ · ✓
PowerSearch 263.6 kB (+343 B) · 22.9 kB CSS (0) — — · — · —
SegmentedControl 88.7 kB (+308 B) · 6.8 kB CSS (0) — ✓ · ✓ · ✓
DateTimeInput 189.6 kB (+248 B) · 17.8 kB CSS (0) — — · — · —
SegmentedControlItem 12.1 kB (0) · 4.0 kB CSS (0) — ✓ · ✓ · ✓
SideNavCollapseButton 52.3 kB (0) · 9.4 kB CSS (0) — ✓ · ✓ · ✓
SideNavHeading 66.4 kB (0) · 10.6 kB CSS (0) — ✓ · ✓ · ✓
SideNavItem 61.4 kB (0) · 10.4 kB CSS (0) — ✓ · ✓ · ✓
SideNavSection 6.8 kB (0) · 3.7 kB CSS (0) — ✓ · ✓ · ✓
Table 98.2 kB (0) · 17.2 kB CSS (0) — ✓ · ✓ · —
TableCell 90.0 kB (0) · 16.9 kB CSS (0) — ✓ · ✓ · ✓
TableHeaderCell 89.6 kB (0) · 16.7 kB CSS (0) — ✓ · ✓ · ✓
TableSelectionToolbar 60.9 kB (0) · 12.4 kB CSS (0) — ✓ · ✓ · ✓
TreeList 40.2 kB (−1.2 kB) · 5.4 kB CSS (0) — — · — · —
Collapsible 23.9 kB (−1.2 kB) · 4.5 kB CSS (0) — — · — · —
SideNav 79.8 kB (−1.5 kB) · 10.7 kB CSS (0) — ✓ · ✓ · ✓
Visual changes: 2 snapshots in 1 component

A change is a question for the reviewer, not a failure.

Component · story Before After Diff
AppShell · Playground (neutral, dark) before frame after frame diff frame
AppShell · Playground (neutral, light) before frame after frame diff frame

Package size: @astryxdesign/core 6.64 MB packed (+1.3 kB); no new dependencies.

API changes: none in this pull request

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

Touched components checked; add ci:run-visual or ci:run-rtl to run the full suites.

CI impact: +5.3 job-min per update · pool +4.5% · standard runners · 1 CI action or script file changed (not measured)
Before After Change
Job-minutes per PR update 116.8 122.1 +5.3
Runner pool, runner-minutes a day 53,692 56,117 +2,425 (+4.5%)
Average concurrent jobs 37.3 39 +1.7
Time to green (median → this run) — 17.1 min —
Runs a day 460 460 0

Changed jobs: pr-interaction-webkit changed: standard

Not measured (the jobs that use these keep their recent minutes above): .github/scripts/ci-interaction-webkit.test.mjs.

Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.


Generated by PR Enrichment workflow | View full report

@cixzhang

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

/approve-spec c1f94fe

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

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

/approve-spec ad83514

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

Changes requested: two small steps before this can be approved; the code, tests and spec authority are in order.

The glide now plays --ease-move over --duration-medium-min as spec:AST-105 FR4 and DEC-2 require, and the new commits let the theme-timing reader and the animated-layout module import without StyleX. Because the glide also retimes for mouse and trackpad users, that desktop change needs an engineering owner's ruling for this exact head and its desktop result in the description.

  • Desktop behavior change needs an owner decision for this head: the glide's retiming under a mouse (packages/core/src/motion/animatedLayout.ts, lines 137–172) has an /approve-spec only for the previous head, so an engineering owner (the author is one) comments /approve-spec with this head's full SHA.
  • Add the desktop (mouse or trackpad) before and after for the glide to the description, for example: "Mouse, Chromium, Storybook Neutral (Core/Animated layout › App panel): main glides the content after the Collapsible in 734.77 ms; this change takes 225 ms."

#8677's description declares a different stack line (#8677 → #8686), so its commits were reviewed here as part of this pull request.

[Automated review]

@cixzhang cixzhang added the ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) label Nov 6, 2026
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/approve-spec ad83514

vjeux added 2 commits November 5, 2026 19:23
The animated-layout glide, the in-place swap and the edge reveal played
the settle spring, about 735 ms, so a theme's `character` never reached
them, and on a mouse they kept moving after the motion around them had
landed. They now play the theme's move curve, `--ease-move`, over
`--duration-medium-min`, read where the area is through the shared
theme-timing reader. The tokens carry the theme's `character` and
`tempo`, so nothing scales them twice. A zero duration lands the change
at once. Reduce Motion is unchanged: a cross-fade under a coarse
pointer, an immediate change otherwise.

A running glide is now read as the browser draws it, a straight line
between two of its keyframes, so a new glide starts exactly where the
old one shows. The curve bends more than the spring did where a
retarget lands, and reading the true curve there left a jump of up to
about 0.3 px on an 80 px move.

A disclosure's indicator takes the same curve and duration as CSS
values. The motion's kind is now named for what it is, a glide, in
AppShell and SideNav's rail too, which share it. The record's line that
the glide still plays the spring goes, since FR4 now holds.

The glides of AppShell's content area, Collapsible, Table's row
expansion and TreeList change feel: 225 ms in the Neutral theme and
310 ms with no theme, instead of about 735 ms.
The reader took core's declared timing values from the token file,
which declares its variables through StyleX. Importing it ran
`stylex.defineVars`: DOM work under the test runtime, and an error in a
plain Node process. Since the glide reads the theme's timing, the
animated-layout module and every factory that imports it took that on.

The reader now keeps a typed copy of the timing tokens' declared
values, which a unit test holds equal to the token file's, and imports
only the token names, as types. A server test imports the reader and
the animated-layout module in plain Node.
@cixzhang
cixzhang force-pushed the uikit/f1-glide-curve-tokens branch from ad83514 to c36b15d Compare November 6, 2026 03:40
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/approve-spec c36b15d

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

Changes requested: two items stand between this change and approval.

  • Desktop behavior change needs an owner decision: the glide now retimes for mouse and trackpad users too (packages/core/src/motion/animatedLayout.ts:137-172), and the /approve-spec comments on this pull request name earlier heads, so an engineering owner (the author may, as one) needs to comment /approve-spec <full head SHA> for the head that will merge, or the retiming is gated to touch input.
  • Miss: a theme whose --ease-move is a linear() or steps() easing, as the motion scale's easing option can write, gets no glide at all because a null timing read lands the change at once (animatedLayout.ts:142-143 and :171-172), while spec:AST-105 FR4 says the glide plays --ease-move; please read such an easing through the browser so the glide plays it, and add a linear() case to the FR4 tests.

Fix the easing first, since its commit makes a new head that the approval has to name. The description's stack line and commit links still describe the branch before it was rebased onto main. CI has not run on this head yet: it waits for a maintainer to add the ci:run label.

[Automated review]

}
return {kind: 'spring', progress: springProgress(settleSpring(area))};
const progress = glideProgress(area);
return progress == null ? {kind: 'instant'} : {kind: 'glide', progress};

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.

A theme whose --ease-move is a linear() or steps() easing (the motion scale's easing option writes one at the default character) reaches this line with a null read, so the glide never plays: the content after the change jumps and the chevron turns at once. spec:AST-105 FR4 says the glide plays --ease-move over --duration-medium-min. Could the easing be read through the browser when the Bézier parser rejects it (a probe animation with that easing reports its eased progress at each sampled time), with a linear() case in the FR4 tests?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 7e66a4c: the theme-timing reader plays an easing that is not a cubic Bézier as the browser plays it, from a paused animation with that easing, and a jump in it carries no speed. FR4 has linear() and steps() cases, red without the change.

return progress == null ? {kind: 'instant'} : {kind: 'glide', progress};
}

/** How many keyframes `sampleOver` takes over `durationMs`. */

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.

Non-blocking: this comment restates the function's name. Consider dropping it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Dropped in 7e66a4c.

@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 04:46
@cixzhang
cixzhang marked this pull request as ready for review November 6, 2026 04:46
A theme's move easing can be a linear() or steps() function: the motion
scale's easing option writes one. The theme-timing reader read only a
cubic Bézier, so such a theme gave no curve and the change landed at
once. The reader now plays any other easing as the browser plays it: a
paused animation with that easing gives its eased progress. A jump in
such an easing carries no speed, so a retarget at a jump inherits none.
The segmented control's selection reads its timing the same way, so it
plays such an easing too.

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

Changes requested: one item stands between this change and approval.

  • Desktop behavior change needs an owner decision: the glide now retimes for mouse and trackpad users too (packages/core/src/motion/animatedLayout.ts:131-172), and every /approve-spec on this pull request names an earlier head, so an engineering owner (the author may, as one) needs to comment /approve-spec <full head SHA> for this head, or the retiming is gated to touch input.

The linear() and steps() fix holds: such a theme now glides on its easing, the new cases fail without the change, and SegmentedControl's slide plays the easing too. CI has not run on this head: its jobs are skipped while the pull request is a draft.

[Automated review]

@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 finished on this head yet. Its lint, typecheck, build and test jobs started when the pull request left draft and are still running or queued.

The glide now plays --ease-move over --duration-medium-min, as spec:AST-105 FR4 and DEC-2 require. An engineering owner's /approve-spec for this head records the ruling on the mouse and trackpad retiming: about 735 ms becomes 225 ms in the Neutral theme. The new curve, tempo, character, linear(), steps() and retarget cases fail against main and pass here. A theme with a non-Bézier move easing now glides on it, and SegmentedControl's slide plays such an easing instead of landing at once.

[Automated review]

@vjeux
vjeux marked this pull request as ready for review November 6, 2026 06:00
The animated-layout glide reads its timing through the theme-timing
reader, which resolves token references. So the WebKit proofs' bundle
of the module carries packages/core/src/theme/tokenReferences.ts, and
the lane's scope test fails while the scope leaves that file out. The
scope now covers it, so a change to it runs the proofs that load it.
@vjeux
vjeux marked this pull request as draft November 6, 2026 06:49
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 56674ea

vjeux added a commit to vjeux/astryx that referenced this pull request 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.

Changes requested: one item stands between this change and approval.

  • Regression: desktop behavior change needs an owner decision: the glide still retimes for mouse and trackpad users (packages/core/src/motion/animatedLayout.ts:137-173, about 735 ms to 225 ms in the Neutral theme), and the engineering owner's /approve-spec names the previous head, which the new CI-scope commit replaced, so an engineering owner (the author may, as one) needs to comment /approve-spec with this head's full SHA, or the retiming needs to be gated to touch input.

The new commit itself is right: the WebKit interaction lane's routing test fails on packages/core/src/theme/tokenReferences.ts without its scope line and passes with it. CI has not run on this head yet because the pull request is a draft.

[Automated review]

@vjeux

vjeux commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Desktop behavior change needs an owner decision

spec:AST-105 FR4 and DEC-2 (current, approved 2026-10-25): 'A glide is a move like any other, so it takes the theme's move curve and duration … under every pointer.' The desktop retiming (Collapsible, TreeList, Table row, AppShell rail) is that decision applied to fine pointers. An engineering owner's /approve-spec 56674ea48433ea5c6b2687d88aad464841910bd1 (06:51:53Z) names this head.

@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 is still running on this head; build, typecheck and lint have passed, and the test, interaction and accessibility jobs have not finished yet.

The animated-layout glide now plays the theme's move curve over --duration-medium-min, as spec:AST-105 FR4 and DEC-2 state, and an engineering owner's /approve-spec for this head records the desktop retiming (about 735 ms to 225 ms in the Neutral theme) as a fix of that clause. The new unit tests fail against the base and pass here, and a mouse click in Storybook shows the content and the chevron landing together in 225 ms on the move curve.

  • #10229 is built on this pull request's previous head, not on this one, so the Stack: line no longer matches; rebase #10229 onto this head if the two should be reviewed as a stack.

[Automated review]

@vjeux
vjeux marked this pull request as ready for review November 6, 2026 07:29
github-actions Bot added a commit that referenced this pull request Nov 6, 2026
vjeux added a commit to vjeux/astryx that referenced this pull request Nov 6, 2026
The indicator's transition took var(--duration-medium-min) and
var(--ease-move), which resolve where the indicator is, while the glide
reads them where the area is. A theme scope between the two turned the
chevron on its own timing: 620 ms against a 310 ms glide. The indicator
now takes the values the glide reads where the area is: the duration
in ms and the move curve's text.
vjeux added a commit to vjeux/astryx that referenced this pull request Nov 6, 2026
e69dd39 merged onto main 3060510. One conflict: the WebKit lane's
scope line in ci.yml, which main's meta#10224 also edits; resolved as
main's line plus meta#10094's token-references path.
@vjeux
vjeux marked this pull request as draft November 6, 2026 08:41
@cixzhang

cixzhang commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/approve-spec e69dd39

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

Changes requested: one item stands between this change and approval.

  • Regression: desktop behavior change needs an owner decision: the glide still retimes for mouse and trackpad users (about 735 ms to 225 ms in the Neutral theme, packages/core/src/motion/animatedLayout.ts:139-176), and the new commit also changes when the chevron turns (animatedLayout.ts:3074-3081), but the latest /approve-spec names the previous head; an engineering owner records the ruling by commenting /approve-spec <full head SHA> on this pull request (the author may, as an engineering owner), or the retiming is gated to touch input.

The new commit itself looks right: the chevron now takes the duration and curve the glide reads at the handle's container, and its nested-scope test fails without the change. .github/workflows/ci.yml now conflicts with main, which added nodeType to the same WebKit scope line; resolve that first, because a rebase changes the head the approval has to name. #10229 is still built on an older head of this pull request, so its Stack: line does not match.

[Automated review]

@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 CI has not run on this head because the pull request is a draft; it runs once the pull request is marked ready for review.

The animated-layout glide now plays the theme's move curve over --duration-medium-min, as spec:AST-105 FR4 and DEC-2 state, and an engineering owner's /approve-spec for this head records the desktop retiming (about 735 ms to 225 ms in the Neutral theme) as a fix of that clause. The new commit gives the disclosure chevron the timing the glide reads at its container; its nested-scope cases fail without the change and pass here.

  • .github/workflows/ci.yml now conflicts with main, which added nodeType to the same WebKit scope line; the rebase that resolves it makes a new head, which needs its own /approve-spec.
  • #10229 is still built on an older head of this pull request, so its Stack: line does not match.

[Automated review]

cixzhang added a commit that referenced this pull request Nov 6, 2026
Takes #10094 at e69dd39 (the chevron-timing fix), merged with main.

Co-authored-by: Christopher Chedeau <[email protected]>
@vjeux
vjeux marked this pull request as ready for review November 6, 2026 09:09
cixzhang added a commit that referenced this pull request Nov 6, 2026
…10236)

* fix(core): layout glides play the theme's move curve, not a spring

Co-authored-by: Christopher Chedeau <[email protected]>

* fix(core): layout glides play the theme's move curve, not a spring

Takes #10094 at e69dd39 (the chevron-timing fix), merged with main.

Co-authored-by: Christopher Chedeau <[email protected]>
@vjeux

vjeux commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #10236, which landed this change on main as 8bd8c61.

@vjeux vjeux closed this Nov 6, 2026
@vjeux
vjeux deleted the uikit/f1-glide-curve-tokens branch November 6, 2026 09:54
@vjeux
vjeux restored the uikit/f1-glide-curve-tokens branch November 6, 2026 10:43

This branch was successfully deployed

1 active deployment
Preview — e69dd39d 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) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) 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