Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| 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) | ![]() |
![]() |
![]() |
| AppShell · Playground (neutral, light) | ![]() |
![]() |
![]() |
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
|
/approve-spec c1f94fe |
|
/approve-spec ad83514 |
There was a problem hiding this comment.
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-speconly for the previous head, so an engineering owner (the author is one) comments/approve-specwith 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]
|
/approve-spec ad83514 |
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.
ad83514 to
c36b15d
Compare
|
/approve-spec c36b15d |
There was a problem hiding this comment.
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-speccomments 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-moveis alinear()orsteps()easing, as the motion scale'seasingoption can write, gets no glide at all because a null timing read lands the change at once (animatedLayout.ts:142-143and:171-172), whilespec:AST-105FR4 says the glide plays--ease-move; please read such an easing through the browser so the glide plays it, and add alinear()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}; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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`. */ |
There was a problem hiding this comment.
Non-blocking: this comment restates the function's name. Consider dropping it.
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.
There was a problem hiding this comment.
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-specon 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]
There was a problem hiding this comment.
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]
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.
|
/approve-spec 56674ea |
There was a problem hiding this comment.
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-specnames the previous head, which the new CI-scope commit replaced, so an engineering owner (the author may, as one) needs to comment/approve-specwith 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]
|
There was a problem hiding this comment.
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]
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.
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.
|
/approve-spec e69dd39 |
There was a problem hiding this comment.
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-specnames 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]
There was a problem hiding this comment.
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.ymlnow conflicts withmain, which addednodeTypeto 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]
Takes #10094 at e69dd39 (the chevron-timing fix), merged with main. Co-authored-by: Christopher Chedeau <[email protected]>
…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]>






Stack: #10094 → #10229
The animated-layout glide now plays the theme's move curve,
--ease-move, over--duration-medium-min, asspec:AST-105FR4 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 interimsprings.settlefollows 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
mainthat glide plays the settle spring, which lasts about 735 ms, longer than the theme's other medium motion. A theme'scharacternever 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
characterhas no effect on it.The fix changes only where the module gets its timing. It reads
--duration-medium-minand--ease-movewhere the area is, through #10068'sreadThemeTiming. Summing a running glide with a new move works on any progress curve, so that code is unchanged.Expected behavior and authority
spec:AST-105FR4 and DEC-2: the glide, the in-place swap and the edge reveal play--ease-moveover--duration-medium-min, never a spring. The record's gap line saying they still playsprings.settlegoes, since FR4 now holds.spec:AST-094FR45: motion that a tap or a click starts plays the theme's motion tokens.spec:AST-108FR2: the duration tokens carry the theme'stempo, so the glide is not scaled twice.Smallest restoration
motion/animatedLayout.tsreads the curve throughreadThemeTiming. 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 sampledlinear(). So a theme scope between the area and the indicator does not retime the indicator.--ease-movecan be alinear()orsteps()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.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.themeTiming.ts. KeepfirstEasingTextwith its JSDoc, and leavefirstEasing's one-line JSDoc dropped, as fix(core): a calc() duration token times the press release clock #10069 drops it.Evidence
springs.settle), whatever the scope's--duration-medium-minand--ease-move.Core/Animated layout),mainglides the content after the Collapsible and the TreeList in 734.77 ms; this change takes 225 ms, oncubic-bezier(.24, 1, .4, 1). A quarter of the way through the time, the content is 70.5% of the way there onmainand 78.8% with this change.Core/Theme motion tempo). Every keyframe sits on the theme's curve: standardcubic-bezier(0.24, 1, 0.4, 1), crisp and expressive. In Storybook's Neutral theme it lasts 225 ms.Core/Animated layout(Collapsible and TreeList) and in theCore/Theme motion temporows has the same durations and keyframes, byte for byte, as at c36b15d, the head card 80 passed.linear()orsteps()move easing, red without the reader change on a not-for-landing arm (vjeux@52cd5efb04) in Chromium and WebKit: the FR4 cases forlinear(0, 0.8 50%, 1)andsteps(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 wherelinear()gives −73.26 px at 16.3 ms. All pass with the change.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.mainsince test(core): the adopters' edge proofs read the module's clock #10150. They pass against this change in Chromium and WebKit.Scope
Testing
pnpm build,pnpm typecheckandCI=true pnpm linton the changed files.pnpm test:ui: 21,455 passed.ci-interaction-webkit.test.mjs: 21 of 21 (red without the scope line: the animated-layout bundle carriestheme/tokenReferences.ts); every test that readsci.yml, 647 of 647.Core/Animated layout's Collapsible and TreeList, onmain's deploy and on this head's.Writing rubric results
AST-105 is the one record this pull request touches.
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.