Repository navigation
fix(core): the layout glide takes --duration-medium - #10261
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 |
|---|---|---|
| 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
|
/approve-spec 8982806 |
There was a problem hiding this comment.
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
Listhas noanimatedLayoutprop 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.
8982806 to
e131142
Compare
|
/approve-spec e131142 |
There was a problem hiding this comment.
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]
|
/approve-spec 2849366 |
There was a problem hiding this comment.
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]
…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]>
Stack: #10261 → #10296
The shared layout glide plays over
--duration-mediuminstead 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-105FR5). That is about a third longer than before. A disclosure's indicator turns over the same duration, because it takes the glide's timing.tempostill scales the duration, and the theme's move curve is unchanged.Problem and solution fit
--duration-medium-min. The owner chose--duration-mediumfor it.motion/animatedLayout.ts, so every component that adopts the glide follows it.spec:AST-105FR4 names the new token, and its DEC-3 records the decision.Authority
spec:AST-105FR4 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".spec:AST-105FR5 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.Listhas 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):Measured in Storybook in Chromium, before and after:
Each indicator's computed
transition-durationequals its glide's: 0.3 s, 0.308 s, 0.41 s and 0.615 s.Scope
Testing
pnpm check:knowledge, typecheck,CI=true pnpm lintand Prettier on the changed files.Writing rubric results
For the
spec:AST-105FR4 edit and DEC-3: