Skip to content

spec(TreeList): an expanding group's own motion under a coarse pointer (FR8) - #8691

Merged
cixzhang merged 5 commits into
meta:mainfrom
vjeux:uikit/c11-treelist-spec-amend
Oct 27, 2026
Merged

cixzhang merged 5 commits into
meta:mainfrom
vjeux:uikit/c11-treelist-spec-amend

Conversation

@vjeux

@vjeux vjeux commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review only this PR's change: vjeux/astryx@d9b43cf...49b7f12

Exact decision needed

May component:TreeList admit an expanding group's own motion under a coarse pointer, as the open implementation (#8088) plays it?

Existing authority searched

component:TreeList, spec:AST-094 DEC-1, FR4, FR5 and FR13, spec:AST-017 FR59, design:reduced-motion DR2, and spec:AST-105 (TreeList adopts the handle; FR2: without one, content after a change takes its place at once). No current claim gives TreeList an expansion motion.

Decision

  • FR8: under a coarse primary pointer, the group's rows slide out from under the parent as one block, clipped to the group's box, and back on collapse, while the Chevron turns, by transform only; under a fine pointer the group appears and leaves at once.
  • Without an animatedLayout handle, the rows after the group take their places at once (spec:AST-105 FR2); with one they glide (FR3).
  • AV5 and a representative state cover reduced motion: a fade, no travel.

Rejected alternatives

None recorded.

Claim scope and non-goals

The group's own motion only. Not the handle's glide (spec:AST-105), selection, or row activation.

Evidence and implementation relationship

iOS 26.2 UICollectionView outline disclosure read on the simulator. #8088 implements the slide with red-first proofs; it takes FR8's rule for the rows after the group next, red first.

Writing rubric results

  • R1 narration: none; FR8 states what a group does.
  • R2 research: none in the record.
  • R3 evidence naming a change: none; the basis names UIKit behavior and a record.
  • R4 rejected alternatives: none in the record.
  • R5 references: none in the record.
  • R6 open questions: none.

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

pnpm check:knowledge (aligned), Prettier and git diff --check: clean.

…r (FR8)

Draft claim for an engineering owner's approval: under a coarse pointer an
expanding group slides out from under its parent as one block inside a growing
clip, and back on collapse, while the Chevron turns, on a motion role; under a
fine pointer it appears and leaves at once. The rows after the group follow
the animated layout handle's rules. OQ1 asks what they do without a handle.
@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Error Error Oct 27, 2026 4:37pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 27, 2026, 5:03 PM UTC

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

Copy link
Copy Markdown
Contributor

Posted by Cindy's agent on her behalf.

Thanks. Almost everything here is already decided by current records: the group's own slide under a touch pointer (spec:AST-094 DEC-1 and FR4), appearing at once under a mouse (AST-017 FR59), and the Reduce Motion fade (design:reduced-motion DR2). Two edits, please:

  1. OQ1 is decided by spec:AST-105 FR2: without an animated-layout handle, the rows after the group take their places at once. The UIKit-style follow happens only when the app passes the handle (FR3). Please resolve OQ1 that way.
  2. "Inside a clip that grows with them" animates a clip's size, which spec:AST-094 FR5 rules out (transform, translate, scale and opacity only). Please reword it as a compositor-only reveal, for example the rows translating under a fixed clip that counter-translates, and drop "grows".

With those, this can be approved. If it stays idle, we'll make the edits after about 30 minutes, keeping your authorship.

…nce without a handle; the slide is a compositor-only reveal

Per the owner's review: OQ1 is decided by spec:AST-105 FR2, so FR8 states
it, and the group's rows slide by transform only, clipped to the group's
box, with no clip that changes size (spec:AST-094 FR5).
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 49b7f12

@github-actions github-actions Bot added spec-auto-merge Auto-merge was enabled by the spec owner gate and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 27, 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: an engineering owner approved FR8 for this head, but its fine-pointer rule conflicts with spec:AST-105 once TreeList holds an animatedLayout handle. FR8 (line 109), AV5 and the FR8 verification row keep the group still under a mouse, while AST-105 FR4–FR5 make the group’s own animation and the rows after it one shared springs.settle motion under every pointer. Please say in FR8 what the group does while TreeList holds a handle, or amend AST-105 in this pull request to admit a group that changes at once under a fine pointer, and scope AV5’s reduced-motion fade to a coarse pointer as design:reduced-motion DR2–DR3 do. The new head then needs a fresh /approve-spec from an engineering owner.

[Automated review]

| FR5 | `TreeListItemData` MUST admit `className`, `style`, and `xstyle` as one per-item styling seam. Every supplied value MUST compose on the same Item row box; an implementation MUST NOT treat current support for only one mechanism as authority to exclude the other two. | Owner decision; `architecture:public-component-api` INV5–INV6; `spec:AST-002/DEC-1` | Settled intent; implementation may be staged |
| FR6 | The Item row box is the logical element that paints the row, owns its hover state, and contains Start content, Item label and description, and End content. The styling seam MUST NOT move to the semantic `<li>` or another element without a compatibility decision. | Owner decision and the caller-owned per-row interaction boundary | Settled intent |
| FR7 | A click on an Item row outside its Item label performs the row's action: an Item with `onClick` runs it; otherwise an Item with children toggles; otherwise an Item whose only action is its link follows that link as Enter does, with modified and middle clicks following the shared enlarged-surface rule in `family:navigation-destinations`. The Chevron and controls in Start content and End content keep their own activation, and a disabled Item does nothing. | Owner decision; `family:navigation-destinations` | Settled intent; implementation may be staged |
| FR8 | Expanding or collapsing an Item with children MUST play its group's own motion: under a coarse primary pointer its rows slide out from under the parent as one block, clipped to the group's box, and back on collapse, while the Chevron turns, by transform only (`spec:AST-094` FR4–FR5); under a fine pointer the group appears and leaves at once. Without an `animatedLayout` handle the rows after the group take their places at once (`spec:AST-105` FR2). | UIKit outline list (`UICollectionView`), iOS 26.2; `spec:AST-105` FR2 | Proposed; awaiting an engineering owner's approval |

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.

Under a fine pointer this keeps the group still even while TreeList holds an animatedLayout handle, but spec:AST-105 FR4–FR5 make the changed element’s own animation and the rows after it one shared springs.settle motion under every pointer. Please state the with-handle case here (and in AV5 and the FR8 verification row), or amend AST-105 in this pull request.

change while the same logical row remains the target of all three styling
inputs and keeps the observable boundary in FR6.
- **AV5 — Expansion motion.** Under a fine pointer a group appears and leaves at
once; under reduced motion nothing travels, and the group fades where it lands

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.

Unscoped, this fade also reads for a mouse with reduced motion, where design:reduced-motion DR3 requires an immediate change; “under reduced motion and a coarse primary pointer”, with the exit fading out where it is (DR2), removes the double reading.

@cixzhang

Copy link
Copy Markdown
Contributor

Posted by Cindy's agent on her behalf.

One more edit, based on CodeBunny's note. When the app passes an animated-layout handle, spec:AST-105 FR4–FR5 (current) give the group and the rows after it one shared motion under every pointer. Please have FR8 say that: with a handle, the group moves on that shared motion for any pointer; without a handle, the group's own slide is touch-only, as you've written, and a mouse sees it at once. That keeps FR8 consistent with the current records. If this stays idle, we'll make the edit after about 30 minutes, keeping your authorship.

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 49b7f12

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 9b43682

@github-actions

Copy link
Copy Markdown
Contributor

That /approve-spec comment did not change spec-owner-approval: it named 49b7f12, which is not the current head.

The gate only accepts the exact current head, so post this instead:

/approve-spec 9b4368267138426039031d917e1ae510e2e7e17a

A new commit invalidates the command, so repeat it after any push.

@github-actions github-actions Bot added needs:spec-owner-review Current knowledge records await owner approval spec-auto-merge Auto-merge was enabled by the spec owner gate and removed spec-auto-merge Auto-merge was enabled by the spec owner gate needs:spec-owner-review Current knowledge records await owner approval labels Oct 27, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 27, 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: an engineering owner approved FR8 on this head and its with-handle case now matches spec:AST-105, but two parts of the TreeList record still disagree with current specs. AV5's reduced-motion fade (lines 123–125) has no pointer condition, so it also tells a mouse user with Reduce Motion that the group fades, where design:reduced-motion DR3 requires an immediate change; please scope it to a coarse primary pointer (fading in where the group lands and out where it is) and list an animated property under a fine pointer among the FR8 verification row's failures. The Compatibility and migration section (lines 58–60) still says the released default is preserved, though FR8 changes it for every TreeList under a coarse pointer; please record that, as component:DropdownMenu does for its own touch default. The corrected head then needs a fresh /approve-spec from an engineering owner.

[Automated review]

Comment on lines +123 to +125
- **AV5 — Expansion motion.** Without an `animatedLayout` handle, under a fine
pointer a group appears and leaves at once; under reduced motion nothing travels, and the group fades where it lands
(`design:reduced-motion`).

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.

The fade here has no pointer condition, so it also reads for a mouse with Reduce Motion, where design:reduced-motion DR3 requires an immediate change with no animated property (and FR8 sends the with-handle case to spec:AST-105 FR4, "an immediate change otherwise"). Suggest: "under reduced motion nothing travels: under a coarse primary pointer the group fades in where it lands and out where it is (DR2); otherwise it changes at once (DR3)", plus an animated property under a fine pointer with reduced motion in the FR8 verification row's failures.

| FR5 | `TreeListItemData` MUST admit `className`, `style`, and `xstyle` as one per-item styling seam. Every supplied value MUST compose on the same Item row box; an implementation MUST NOT treat current support for only one mechanism as authority to exclude the other two. | Owner decision; `architecture:public-component-api` INV5–INV6; `spec:AST-002/DEC-1` | Settled intent; implementation may be staged |
| FR6 | The Item row box is the logical element that paints the row, owns its hover state, and contains Start content, Item label and description, and End content. The styling seam MUST NOT move to the semantic `<li>` or another element without a compatibility decision. | Owner decision and the caller-owned per-row interaction boundary | Settled intent |
| FR7 | A click on an Item row outside its Item label performs the row's action: an Item with `onClick` runs it; otherwise an Item with children toggles; otherwise an Item whose only action is its link follows that link as Enter does, with modified and middle clicks following the shared enlarged-surface rule in `family:navigation-destinations`. The Chevron and controls in Start content and End content keep their own activation, and a disabled Item does nothing. | Owner decision; `family:navigation-destinations` | Settled intent; implementation may be staged |
| FR8 | Expanding or collapsing an Item with children MUST play its group's own motion: under a coarse primary pointer its rows slide out from under the parent as one block, clipped to the group's box, and back on collapse, while the Chevron turns, by transform only (`spec:AST-094` FR4–FR5); under a fine pointer the group appears and leaves at once. With an `animatedLayout` handle, the group and the rows after it follow `spec:AST-105`'s shared motion under every pointer (FR4, FR5); without one, the group's own slide stays touch-only and the rows after the group take their places at once (`spec:AST-105` FR2). | UIKit outline list (`UICollectionView`), iOS 26.2; `spec:AST-105` FR2 | Proposed; awaiting an engineering owner's approval |

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.

FR8 changes the released default for every TreeList under a coarse primary pointer, but Compatibility and migration (lines 58–60) still says "Released default preserved: yes". Please record it there, for example "no under a coarse primary pointer, where a toggled group slides (FR8); fine pointers are unchanged without an animatedLayout handle", as component:DropdownMenu does for its touch default.

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec cfb05b3

@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: an engineering owner approved FR8 on this revision, and both earlier corrections (AV5's coarse-pointer fade and the compatibility entry) are in, but the record's Contract at a glance now contradicts its own body. Its Compatibility/readiness row (line 43) still says "The contract is additive and preserves default output", while Compatibility and migration (lines 58–60) records FR8's changed touch default; please make that row say the default output is preserved except FR8's coarse-pointer group motion, since architecture:knowledge-contracts does not let the projection contradict the body. While editing, consider also saying in FR8 whether a collapsing group's rows leave the accessibility tree when the slide starts, and failing a fade under a mouse without a handle in the FR8 verification row. The corrected revision then needs a fresh /approve-spec from an engineering owner.

[Automated review]

- Released default preserved: `yes`
- Compatibility class: additive optional public API; no default rendering, DOM,
styling, or interaction changes when the inputs are absent
- Released default preserved: `no` under a coarse primary pointer, where a

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 bullet now records FR8's touch default, but the Contract at a glance row at line 43 still reads "The contract is additive and preserves default output". architecture:knowledge-contracts has the projection state compatibility "without replacing or contradicting the authoritative body"; please make line 43 say the default output is preserved except FR8's coarse-pointer group motion.

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec ff21a66

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

Approval recommended: an engineering owner approved this exact revision, and FR8, AV5 and the compatibility entries now agree with the current touch-presentation, animated-layout, reduced-motion and compatibility specs, including the Contract at a glance row that the previous revision left behind. No further changes are needed. One optional follow-up: FR8's state cell still reads “Proposed; awaiting an engineering owner's approval”, which will look pending once the record is merged.

[Automated review]

| FR5 | `TreeListItemData` MUST admit `className`, `style`, and `xstyle` as one per-item styling seam. Every supplied value MUST compose on the same Item row box; an implementation MUST NOT treat current support for only one mechanism as authority to exclude the other two. | Owner decision; `architecture:public-component-api` INV5–INV6; `spec:AST-002/DEC-1` | Settled intent; implementation may be staged |
| FR6 | The Item row box is the logical element that paints the row, owns its hover state, and contains Start content, Item label and description, and End content. The styling seam MUST NOT move to the semantic `<li>` or another element without a compatibility decision. | Owner decision and the caller-owned per-row interaction boundary | Settled intent |
| FR7 | A click on an Item row outside its Item label performs the row's action: an Item with `onClick` runs it; otherwise an Item with children toggles; otherwise an Item whose only action is its link follows that link as Enter does, with modified and middle clicks following the shared enlarged-surface rule in `family:navigation-destinations`. The Chevron and controls in Start content and End content keep their own activation, and a disabled Item does nothing. | Owner decision; `family:navigation-destinations` | Settled intent; implementation may be staged |
| FR8 | Expanding or collapsing an Item with children MUST play its group's own motion: under a coarse primary pointer its rows slide out from under the parent as one block, clipped to the group's box, and back on collapse, a collapsing group's rows leaving the accessibility tree as the slide starts, while the Chevron turns, by transform only (`spec:AST-094` FR4–FR5); under a fine pointer the group appears and leaves at once. With an `animatedLayout` handle, the group and the rows after it follow `spec:AST-105`'s shared motion under every pointer (FR4, FR5); without one, the group's own slide stays touch-only and the rows after the group take their places at once (`spec:AST-105` FR2). | UIKit outline list (`UICollectionView`), iOS 26.2; `spec:AST-105` FR2 | Proposed; awaiting an engineering owner's approval |

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.

Optional, not needed for approval: this row's state still reads “Proposed; awaiting an engineering owner's approval” although an engineering owner approved this revision. “Settled intent; implementation may be staged”, as FR5 and FR7 read, would keep the merged record accurate; any new commit needs a fresh /approve-spec.

@cixzhang
cixzhang merged commit 9139918 into meta:main Oct 27, 2026
47 of 48 checks passed
@vjeux
vjeux deleted the uikit/c11-treelist-spec-amend branch October 27, 2026 17:08
cixzhang added a commit that referenced this pull request Oct 27, 2026
…dopters cite AST-108 FR4a

main gave component:TreeList FR8 to an expanding group's own motion
(#8691). The animatedLayout row becomes FR9 (its Verification row and the
interaction spec's references too), and 'without one' now defers to FR8.
AST-108 is on main, so Collapsible FR10 and TreeList FR9 cite its FR4a
(coordinated animations share one clock) for the chevron moving on the
same motion as the glide.

This branch had an error being deployed

1 failed deployment
Preview — ff21a660 Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants