Repository navigation
feat(Layer): an entrance slides from the side its layer lands on - #10771
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 |
|---|---|---|---|
| Pagination | 112.1 kB (+570 B) · 17.8 kB CSS (+45 B) | — | — · — · — |
| BreadcrumbItem | 86.3 kB (+550 B) · 12.1 kB CSS (+43 B) | — | — · — · — |
| PowerSearch | 292.0 kB (+528 B) · 24.2 kB CSS (+47 B) | — | — · — · — |
115 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| lab/ChatReactionBar | 109.0 kB (+569 B) · 1.1 kB CSS (0) | — | — · — · — |
| DateRangeInput | 94.6 kB (+511 B) · 12.5 kB CSS (+47 B) | — | — · — · — |
| ChatComposer | 80.0 kB (+526 B) · 12.1 kB CSS (+31 B) | — | — · — · — |
| Selector | 102.0 kB (+504 B) · 17.4 kB CSS (+52 B) | — | — · — · — |
| DateInput | 189.0 kB (+502 B) · 17.1 kB CSS (+52 B) | — | — · — · — |
| BaseTypeahead | 73.4 kB (+514 B) · 11.0 kB CSS (+39 B) | — | — · — · — |
| NumberInput | 73.2 kB (+505 B) · 11.5 kB CSS (+48 B) | — | — · — · — |
| ListItem | 71.8 kB (+497 B) · 11.5 kB CSS (+55 B) | — | — · — · — |
| CheckboxListItem | 72.8 kB (+495 B) · 11.5 kB CSS (+55 B) | — | — · — · — |
| Slider | 110.6 kB (+501 B) · 8.8 kB CSS (+47 B) | — | — · — · — |
| richtext/RichTextEditorToolbar | 280.6 kB (+547 B) · 454 B CSS (0) | — | — · — · — |
| DateTimeInput | 210.6 kB (+490 B) · 18.7 kB CSS (+54 B) | — | — · — · — |
| MultiSelector | 96.7 kB (+494 B) · 16.9 kB CSS (+47 B) | — | — · — · — |
| TabMenu | 73.4 kB (+497 B) · 11.2 kB CSS (+44 B) | — | — · — · — |
| Typeahead | 82.2 kB (+493 B) · 12.5 kB CSS (+47 B) | — | — · — · — |
| ComplexSelector | 72.5 kB (+490 B) · 11.9 kB CSS (+48 B) | — | — · — · — |
| Popover · Storybook | 92.6 kB (+497 B) · 14.2 kB CSS (+40 B) | 1,552 (+3) | — · — · — |
| ChatComposerTokenElement | 77.6 kB (+497 B) · 11.3 kB CSS (+39 B) | — | — · — · — |
| ChatComposerInput | 77.6 kB (+496 B) · 11.3 kB CSS (+39 B) | — | — · — · — |
| SideNavItem | 72.0 kB (+490 B) · 11.2 kB CSS (+41 B) | — | — · — · — |
| TextInput | 69.2 kB (+483 B) · 11.2 kB CSS (+47 B) | — | — · — · — |
| Lightbox | 124.1 kB (+487 B) · 10.6 kB CSS (+42 B) | — | — · — · — |
| TimeInput | 164.2 kB (+476 B) · 16.1 kB CSS (+52 B) | — | — · — · — |
| RadioListItem | 68.9 kB (+469 B) · 10.2 kB CSS (+57 B) | — | — · — · — |
| Thumbnail | 66.0 kB (+484 B) · 11.6 kB CSS (+42 B) | — | — · — · — |
| TextArea | 63.8 kB (+469 B) · 9.4 kB CSS (+56 B) | — | — · — · — |
| FileInput | 70.6 kB (+475 B) · 11.0 kB CSS (+49 B) | — | — · — · — |
| TableHeaderCell | 111.2 kB (+472 B) · 17.7 kB CSS (+50 B) | — | — · — · — |
| CheckboxList | 69.9 kB (+473 B) · 7.8 kB CSS (+48 B) | — | — · — · — |
| TopNav | 73.8 kB (+477 B) · 11.0 kB CSS (+44 B) | — | — · — · — |
| FieldLabel | 52.5 kB (+483 B) · 5.7 kB CSS (+37 B) | — | — · — · — |
| Toast | 99.5 kB (+481 B) · 10.3 kB CSS (+38 B) | — | — · — · — |
| ContextMenu | 110.3 kB (+467 B) · 17.5 kB CSS (+51 B) | — | — · — · — |
| MobileNav | 72.1 kB (+473 B) · 10.6 kB CSS (+44 B) | — | — · — · — |
| SideNav | 116.1 kB (+472 B) · 11.4 kB CSS (+45 B) | — | — · — · — |
| Table | 127.2 kB (+469 B) · 18.4 kB CSS (+48 B) | — | — · — · — |
| TopNavMegaMenu | 71.2 kB (+478 B) · 11.9 kB CSS (+39 B) | — | — · — · — |
| Avatar | 44.7 kB (+483 B) · 5.6 kB CSS (+32 B) | — | — · — · — |
| TableCell | 111.6 kB (+464 B) · 17.9 kB CSS (+51 B) | — | — · — · — |
| InfoTip | 48.0 kB (+480 B) · 5.4 kB CSS (+34 B) | — | — · — · — |
| charts/Chart | 206.5 kB (+512 B) · 494 B CSS (0) | — | — · — · — |
| DropdownMenu | 98.7 kB (+460 B) · 17.6 kB CSS (+52 B) | — | — · — · — |
| Markdown | 190.1 kB (+462 B) · 20.8 kB CSS (+49 B) | — | — · — · — |
| SideNavHeading | 77.1 kB (+472 B) · 11.3 kB CSS (+39 B) | — | — · — · — |
| TopNavHeading | 76.7 kB (+473 B) · 11.3 kB CSS (+38 B) | — | — · — · — |
| Carousel | 71.4 kB (+472 B) · 11.0 kB CSS (+38 B) | — | — · — · — |
| AvatarGroup | 47.4 kB (+472 B) · 5.8 kB CSS (+37 B) | — | — · — · — |
| DropdownMenuSubMenu | 71.6 kB (+464 B) · 9.7 kB CSS (+45 B) | — | — · — · — |
| AlertDialog | 107.0 kB (+472 B) · 14.6 kB CSS (+35 B) | — | — · — · — |
| AppShell | 93.0 kB (+466 B) · 13.5 kB CSS (+39 B) | — | — · — · — |
| Switch | 105.1 kB (+453 B) · 10.0 kB CSS (+52 B) | — | — · — · — |
| Tokenizer | 94.0 kB (+462 B) · 18.8 kB CSS (+43 B) | — | — · — · — |
| Tooltip | 30.9 kB (+461 B) · 4.4 kB CSS (+42 B) | — | — · — · — |
| ChatLayout | 84.3 kB (+459 B) · 10.6 kB CSS (+40 B) | — | — · — · — |
| Field | 56.4 kB (+452 B) · 7.3 kB CSS (+47 B) | — | — · — · — |
| lab/TourStep | 98.9 kB (+498 B) · 590 B CSS (0) | — | — · — · — |
| Link | 54.5 kB (+458 B) · 7.1 kB CSS (+39 B) | — | — · — · — |
| CodeBlock | 76.7 kB (+459 B) · 11.3 kB CSS (+36 B) | — | — · — · — |
| RadioList | 57.7 kB (+449 B) · 7.3 kB CSS (+46 B) | — | — · — · — |
| Drawer | 52.2 kB (+450 B) · 8.3 kB CSS (+44 B) | — | — · — · — |
| MoreMenu | 99.0 kB (+442 B) · 17.6 kB CSS (+52 B) | — | — · — · — |
| Stepper | 63.2 kB (+452 B) · 10.2 kB CSS (+42 B) | — | — · — · — |
| InputGroup | 58.0 kB (+442 B) · 7.9 kB CSS (+50 B) | — | — · — · — |
| HoverCard | 29.1 kB (+444 B) · 4.4 kB CSS (+45 B) | — | — · — · — |
| charts/ChartTooltip | 183.6 kB (+488 B) · 422 B CSS (0) | — | — · — · — |
| lab/Comments | 354.5 kB (+488 B) · 2.5 kB CSS (0) | — | — · — · — |
| ToggleButton | 88.0 kB (+449 B) · 10.1 kB CSS (+38 B) | — | — · — · — |
| AvatarGroupOverflow | 50.3 kB (+452 B) · 5.7 kB CSS (+33 B) | — | — · — · — |
| CheckboxInput | 65.7 kB (+433 B) · 9.2 kB CSS (+52 B) | — | — · — · — |
| lab/DiffViewer | 88.8 kB (+483 B) · 2.1 kB CSS (0) | — | — · — · — |
| TopNavMenu | 76.1 kB (+440 B) · 11.3 kB CSS (+40 B) | — | — · — · — |
| lab/ChatEmojiPicker | 107.8 kB (+480 B) · 773 B CSS (0) | — | — · — · — |
| Calendar | 72.6 kB (+440 B) · 10.6 kB CSS (+38 B) | — | — · — · — |
| SegmentedControl | 97.6 kB (+451 B) · 6.9 kB CSS (+27 B) | — | — · — · — |
| Banner | 63.6 kB (+435 B) · 10.5 kB CSS (+42 B) | — | — · — · — |
| ChatSendButton | 62.0 kB (+436 B) · 10.0 kB CSS (+41 B) | — | — · — · — |
| StatusDot | 32.6 kB (+436 B) · 5.4 kB CSS (+41 B) | — | — · — · — |
| TableSelectionToolbar | 71.8 kB (+437 B) · 13.3 kB CSS (+40 B) | — | — · — · — |
| lab/TabBarMoreList | 93.7 kB (+476 B) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 111.3 kB (+476 B) · 1.4 kB CSS (0) | — | — · — · — |
| DialogHeader | 64.4 kB (+433 B) · 11.5 kB CSS (+41 B) | — | — · — · — |
| MobileNavToggle | 61.9 kB (+436 B) · 10.0 kB CSS (+38 B) | — | — · — · — |
| SideNavCollapseButton | 62.4 kB (+434 B) · 10.1 kB CSS (+40 B) | — | — · — · — |
| lab/CommentThread | 347.5 kB (+474 B) · 2.4 kB CSS (0) | — | — · — · — |
| Button | 61.6 kB (+435 B) · 10.0 kB CSS (+38 B) | — | — · — · — |
| ChatDictationButton | 62.2 kB (+435 B) · 10.1 kB CSS (+38 B) | — | — · — · — |
| ChatLayoutScrollButton | 62.1 kB (+431 B) · 10.2 kB CSS (+42 B) | — | — · — · — |
| lab/EmojiPicker | 88.4 kB (+473 B) · 751 B CSS (0) | — | — · — · — |
| IconButton | 61.6 kB (+433 B) · 10.0 kB CSS (+38 B) | — | — · — · — |
| lab/ListInput | 89.7 kB (+471 B) · 922 B CSS (0) | — | — · — · — |
| DrawerHeader | 64.6 kB (+425 B) · 13.0 kB CSS (+45 B) | — | — · — · — |
| lab/SelectableCardGroup | 65.8 kB (+468 B) · 162 B CSS (0) | — | — · — · — |
| lab/DialogHeroHeader | 84.6 kB (+463 B) · 372 B CSS (0) | — | — · — · — |
| lab/Schedule | 107.6 kB (+459 B) · 3.9 kB CSS (0) | — | — · — · — |
| lab/TransferList | 103.6 kB (+453 B) · 1.2 kB CSS (0) | — | — · — · — |
| lab/CommentPin | 58.6 kB (+452 B) · 1.2 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 299.9 kB (+444 B) · 2.6 kB CSS (0) | — | — · — · — |
| lab/CommentComposer | 154.0 kB (+443 B) · 1.9 kB CSS (0) | — | — · — · — |
| richtext/RichTextView | 278.0 kB (+441 B) · 2.3 kB CSS (0) | — | — · — · — |
| Toolbar | 45.0 kB (+404 B) · 8.1 kB CSS (0) | — | — · — · — |
| TabList | 45.0 kB (+387 B) · 6.5 kB CSS (0) | — | — · — · — |
| CommandPalette | 74.6 kB (+304 B) · 12.7 kB CSS (+38 B) | — | — · — · — |
| ChatToolCalls | 33.6 kB (0) · 8.4 kB CSS (+43 B) | — | — · — · — |
| Heading | 14.0 kB (0) · 5.5 kB CSS (+43 B) | — | — · — · — |
| Text | 13.4 kB (−1 B) · 5.5 kB CSS (+43 B) | — | — · — · — |
| ProgressBar | 11.9 kB (0) · 6.4 kB CSS (+41 B) | — | — · — · — |
| Timestamp | 34.6 kB (0) · 10.3 kB CSS (+41 B) | — | — · — · — |
| ChatMessageList | 29.8 kB (−1 B) · 7.1 kB CSS (+41 B) | — | — · — · — |
| CommandPaletteInput | 33.4 kB (0) · 7.6 kB CSS (+40 B) | — | — · — · — |
| Timer | 15.6 kB (−1 B) · 6.0 kB CSS (+41 B) | — | — · — · — |
| Spinner | 26.3 kB (0) · 6.2 kB CSS (+31 B) | — | — · — · — |
| LayerProvider | 4.4 kB (0) · 20 B CSS (0) | — | — · — · — |
| SelectorOption | 21.1 kB (0) · 6.1 kB CSS (0) | — | — · — · — |
| lab/LineClamp | 15.6 kB (0) · 168 B CSS (0) | — | — · — · — |
| charts/ChartLegend | 53.4 kB (−2 B) · 224 B CSS (0) | — | — · — · — |
Package size: @astryxdesign/core 7.29 MB packed (+6.1 kB); no new dependencies.
API changes: core +0 · ~1 · −0
Committed API report behind this build: cli 36 rows, core 36 rows; run pnpm api:report.
1 API change (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| ~ | core |
./Layer · Values · const layerAnimations |
const layerAnimations: Readonly<{ readonly below: Readonly<{ readonly animationDuration: stylex.StyleXClassNameFor<"animationDuration", string>; readonly animationTimingFunction: styl … #b637e434 → const layerAnimations: Readonly<{ readonly below: Readonly<{ readonly animationDuration: stylex.StyleXClassNameFor<"animationDuration", string>; readonly animationTimingFunction: styl … #3a6b9939 |
import {layerAnimations} from '@astryxdesign/core/Layer' |
Wide change (shared styles: packages/core/src/Layer/layerAnimations.stylex.ts): add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the new entrance rule, and two fixes are needed whichever way it goes.
Owner decision needed: INV20 in architecture:layer-runtime adds a new rule (an anchored layer's entrance slides from, and scales about, the side it lands on after a flip), and no current record covers entrance direction or origin today. An engineering owner records approval by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) or says where the rule should live instead; the same decision covers the new transformOrigin in the public layerAnimations styles.
Blocking:
- Desktop behavior change needs an owner decision: the entrance now changes for mouse and trackpad users of every anchored layer (
packages/core/src/Layer/useLayer.tsx:1568and the keyframes inlayerAnimations.stylex.ts), so either gate the written side and origin to touch input or cite the owner decision that covers this desktop motion. - The changeset tags an intentional visual change
[fix], but the release rules (AST-017 FR3) use[feat]for a change of visual direction that restores no current authority, so please retag.changeset/layer-entrance-lands-side.md.
[Automated review]
6fd0d73 to
ee68a34
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the new entrance rule, and one fix is still needed whichever way it goes. The [feat] changeset and the comment wording from the last review are fixed, thanks.
Owner decision needed: INV20 in architecture:layer-runtime adds a new rule (an anchored layer's entrance slides from, and scales about, the side it lands on after a flip, and a layer over its trigger scales about the trigger's center), and no current record covers entrance direction or origin today. An engineering owner records approval by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or says which record should own the rule instead; the same decision covers the new transformOrigin in the public layerAnimations styles.
Blocking:
- Desktop behavior change needs an owner decision: the entrance now changes for mouse and trackpad users of every anchored layer (
packages/core/src/Layer/useLayer.tsx:1568and the keyframes inlayerAnimations.stylex.ts), so either gate the written side and origin to touch input or cite the owner decision that covers this desktop motion in the description.
[Automated review]
ee68a34 to
a66ebf4
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the new entrance rule, and one fix is still needed whichever way it goes. The comment wording from the last review is fixed, thanks.
Owner decision needed: INV20 in architecture:layer-runtime adds a new rule (an anchored layer's entrance slides from, and scales about, the side it lands on after a flip, and a layer over its trigger scales about the trigger's center), and no current record covers entrance direction or origin today. An engineering owner records approval by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or says which record should own the rule instead; the same decision covers the new transformOrigin in the public layerAnimations styles.
Blocking:
- Desktop behavior change needs an owner decision: the entrance now changes for mouse and trackpad users of every anchored layer (
packages/core/src/Layer/useLayer.tsx:1568and the keyframes inlayerAnimations.stylex.ts), so either gate the written side and origin to touch input or cite the owner decision that covers this desktop motion in the description.
[Automated review]
|
/approve-spec a66ebf4 |
There was a problem hiding this comment.
Changes requested for one remaining item. The new entrance rule (INV20 in architecture:layer-runtime) now has an engineering owner's spec approval at this head, which also settles the new transformOrigin in the public layerAnimations styles.
Blocking:
- Desktop behavior change needs an owner decision: the entrance now changes for mouse and trackpad users of every anchored layer (
packages/core/src/Layer/useLayer.tsx:1568and the keyframes inlayerAnimations.stylex.ts), so either gate the written side and origin to touch input or cite the owner decision that covers this desktop motion in the description (a spec approval of the record does not by itself record it).
CI has not run on this draft head yet.
[Automated review]
a66ebf4 to
928c544
Compare
|
/approve-spec 928c544 |
There was a problem hiding this comment.
Changes requested for two fixes. The new entrance rule (INV20 in architecture:layer-runtime) has an engineering owner's spec approval at this head, which also covers the new transformOrigin in the public layerAnimations styles, and the owner's reply on this head records the owner decision for the desktop motion, so that item is settled.
Blocking:
- Miss:
writeLayerEntranceSide(packages/core/src/Layer/layerEntranceSide.ts:101) reads the layer throughsettledBoxand then the trigger afterkeepAnchorClearhas already read both, so a Tooltip open measures twice in its show task, overriding and restoring its transforms each time, and every other anchored open gains a measurement pass followed by writes, againstarchitecture:react-component-runtimeINV18; please measure once per show by reading the trigger beforesettledBox, reusingkeepAnchorClear's boxes when it did not place afresh, and skipping Selector's show-time pass. - Miss:
layerEntranceSide(packages/core/src/Layer/layerEntranceSide.ts:55-83) re-implements the side and meeting point thatpopoverCollapsedState(packages/core/src/Popover/popoverSurfaceFrame.ts:90-131) already computes for Popover's touch growth, and the two disagree on this pull request's own fixtures (a layer 4 px over its trigger's side, and a layer over its trigger's center), so please havepopoverCollapsedStatetake its side and meeting point from the new helper in this pull request.
Smaller notes: INV20's verification row has no failure signal, its "on the pointer path" is undefined while the side is written for every open, and the description could cite the owner's decision and add Components: Layer, Selector under ## Scope.
[Automated review]
| * (a list over its selected item) has no side. It does not move, and it | ||
| * scales about that center. `null` for a box without size. | ||
| */ | ||
| export function layerEntranceSide( |
There was a problem hiding this comment.
Blocking (Miss): popoverCollapsedState (packages/core/src/Popover/popoverSurfaceFrame.ts:90-131) already computes the side and the meeting point on the facing edge for Popover's touch growth, and the two rules disagree on the fixtures at layerEntranceSide.test.ts:41 (right here, below there) and :69 (the trigger's center here, the top edge there). Please have popoverCollapsedState take its side and meeting point from this helper in this pull request, so one rule serves both.
There was a problem hiding this comment.
(Posted by Cindy's agent, as spec owner.) Deferred to a follow-up: making popoverCollapsedState and layerEntranceSide share one side and meeting-point rule is tracked as its own issue, fixtures layerEntranceSide.test.ts:41 and :69 included. The owner's decision covers the pointer-path entrance this pull request changes. Popover's touch growth is a separate owner decision, and this pull request doesn't change that rule.
There was a problem hiding this comment.
I'll run a full review to re-check this with your note.
|
/approve-spec 62d571d |
There was a problem hiding this comment.
Approved pending CI: required checks are still running on this head (build-storybook, lint and the CLI smoke test among them), so this is not ready to merge until they pass.
The new entrance rule (INV20 in architecture:layer-runtime) has an engineering owner's spec approval for this head, and the description cites the owner's decision for the desktop motion. The rule's browser spec passes in Chromium on this head, and the settled position of every layer checked is unchanged.
Non-blocking:
layerEntranceSideand Popover's touchpopoverCollapsedStatestill hold two rules for where a layer meets its trigger; until the follow-up merges them, a fix to one misses the other.- INV20's verification row has no failure signal, and "on the pointer path" is not defined while the side is written for every open.
- The comment at
Selector.tsx:1520restates the hook's name and can go.
[Automated review]
|
/approve-spec 7d4eb0b |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because the pull request is still a draft; it runs once the pull request is marked ready for review.
The new entrance rule (INV20 in architecture:layer-runtime) has an engineering owner's spec approval for this head, and the description cites the owner's decision for the desktop motion. The merge of main keeps the new usePopover options beside writesEntranceSide, and the rule's browser spec passes in Chromium and WebKit on this head.
Non-blocking:
layerEntranceSideand Popover's touchpopoverCollapsedStatestill hold two rules for where a layer meets its trigger; until the follow-up merges them, a fix to one misses the other.- INV20's verification row has no failure signal, and "on the pointer path" is not defined while the side is written for every open.
- The comment at
Selector.tsx:1520restates the hook's name and can go.
[Automated review]
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new entrance rule at this revision; nothing else blocks.
Owner decision needed: INV20 in architecture:layer-runtime is a new rule: an anchored layer's entrance slides from, and scales about, the side it lands on after any flip, and a layer over its trigger scales about the trigger's center without sliding. It also vets the transformOrigin now set on each layerAnimations placement. The earlier /approve-spec covered the previous revision, and this one merges main again. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
The pull request's own changes match the previous revision, and its browser spec passes in Chromium and WebKit here. The non-blocking notes from the last review still stand: the restating comment at Selector.tsx:1520, INV20's empty failure-signal cell, and the deferred shared side rule with Popover's touch growth.
[Automated review]
|
/approve-spec 9a25834 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because the pull request is still a draft; it runs once the pull request is marked ready for review.
The new entrance rule (INV20 in architecture:layer-runtime) now has an engineering owner's spec approval for this exact revision, which also settles the new transformOrigin in the public layerAnimations styles, and the description cites the owner's decision for the desktop motion. The rule's browser spec passes in Chromium and WebKit here, and the Layer, Selector, Popover, menu and tooltip unit suites pass.
Non-blocking notes that still stand: the restating comment at Selector.tsx:1520, INV20's empty failure-signal cell in the verification table, and the follow-up that makes Popover's touch growth share this side rule.
[Automated review]
|
/approve-spec 50b0f53 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because the pull request is still a draft; it runs once the pull request is marked ready for review.
The new entrance rule (INV20 in architecture:layer-runtime) has an engineering owner's spec approval for this exact revision, which also settles the new transformOrigin in the public layerAnimations styles, and the description cites the owner's decision for the desktop motion. After the latest merge of main, the rule's browser spec passes in Chromium and WebKit beside main's new press-transform cases, and the Layer, Selector, Popover, menu and tooltip unit suites pass.
Non-blocking notes that still stand: the restating comment at Selector.tsx:1520, INV20's empty failure-signal cell in the verification table, and the follow-up that makes Popover's touch growth share this side rule.
[Automated review]
Resolves the one conflict by keeping the deletion of packages/core/api-report.md (main changed it in #10771; that change's API rows are in CI's generated delta).
… build (#10957) * docs(records): pull requests carry an API delta instead of a committed API report * Merge remote-tracking branch 'origin/main' into specs/api-delta-not-report # Conflicts: # docs/architecture/public-component-api.md * chore: remove the committed API reports; the API delta comes from the build * ci: the docsite data tests read a built API surface, and require one in CI * ci: the docsite hook coverage names the packages docsite-build skips, and fails on any other * Merge remote-tracking branch 'origin/main' into specs/api-delta-not-report # Conflicts: # docs/architecture/list-windowing.md * Merge branch 'specs/api-delta-not-report' into chore/remove-api-reports # Conflicts: # .github/workflows/ci.yml # package.json # packages/core/api-report.md # scripts/api-report/changes.mjs # scripts/api-report/cli.mjs * docs(architecture): limit the API artifact to pull requests that change a published package; INV28 reads public hooks from the built surface CodeBunny review of #10950: INV28 defined a public hook through the committed API report that INV24 removes; INV24 and DEC-6 failed closed on a missing artifact that CI never uploads for spec, docs or tooling pull requests (spec:AST-030 FR5). * ci: a merge base without Main's API surface builds one, and a delta with no base surface says it was not compared Without Main's API surface, a pull request that can change a published package builds the merge base for its surface, even when Main kept its component sizes (that record stays). When no surface exists, api-changes.json names each published package whose inputs changed as unknown, never an empty delta, and the report says the API changes were not compared. * Merge remote-tracking branch 'origin/specs/api-delta-not-report' into chore/remove-api-reports * docs(architecture): the merge gate reads the API artifact only for pull requests that change a published package CodeBunny review of #10950: broad CI can still upload the artifact for shared changes (spec:AST-030 FR2/FR5); what matters is that the gate reads none for a pull request that changes no published package. Scopes INV24's verification failure signal the same way. * Merge branch 'specs/api-delta-not-report' into chore/remove-api-reports * Merge branch 'main' into chore/remove-api-reports Resolves the one conflict by keeping the deletion of packages/core/api-report.md (main changed it in #10771; that change's API rows are in CI's generated delta).
User impact
When an anchored layer has no room on its requested side, it flips. Its entrance still slid from the requested side, so it slid onto its trigger. Every entrance also scaled about the center of its box.
Now the entrance slides from, and scales about, the side the layer lands on. It moves out of its trigger and grows from the point where it meets it. This covers every layer on the shared entrance: Popover, menus, selectors, Tooltip and HoverCard.
A Selector list that opens over its selected item has no side. It scales about the trigger's center and does not slide.
Visual authority
No current record decides this. The design owner approved this desktop motion on November 9. The owner's decision on the review thread reads:
INV20 in
architecture:layer-runtimecarries it in two sentences, plus one for a layer over its trigger.Reference, iOS 26.2 simulator: a popover above its source grows from its arrow tip, on the source's center line. A menu covering its button grows from the button's center.
How it works
As it shows an anchored layer, the runtime reads the anchor and the layer once, and writes the side for the shared keyframes. A Selector whose list moves over its trigger writes the side itself, after that move. Closing is unchanged.
Before and after
Normal speed, main left, this change right:
State matrix
popoverCollapsedState's side rule. A follow-up adoptslayerEntranceSidefor its side and meeting point, and decides theovercase.Scope
Components: Layer, Selector
Testing
Every result below is at 62d571d unless it says otherwise, and every browser run uses 1 worker, which is CI's profile. This head (50b0f53) brings main up to 4236e88 in three merges after it. Each conflict keeps both sides: new options in
usePopover.tsx, and new verification rows inlayer-runtime.md. This PR's own lines are unchanged.ce18103cbef76f2cb907aff2e0dc38001d6b43eaadds only the new spec on main (not for landing). It fails all 20 cases in Chromium and WebKit, each on an intended assertion. With room, the origin is the box center (9). With no room, the first frame moves the layer away from its trigger (9). A Selector over its trigger still steps (2).useLayer.test.tsxcases fail on the previous head (928c544) and pass here. A layer that keeps its anchor clear read its box twice per show; now it reads it once. A component that writes the side itself skips the runtime's read.layerEntranceSide.test.ts(8), and the Layer, Selector, MultiSelector, Popover, DropdownMenu, Tooltip, HoverCard, ContextMenu and Table suites (2811 tests). At e4f9e3c, two full runs of the unit suite (41,599 tests) each failed outside this PR's files under the shared runner's load. Run 1 failedNavigationStack.test.tsx"moves focus to the new title after a push, and back to the pushing control after the pop". Focus was on the title, not the button. Run 2 timed outsnap-paging-bundle.test.mjs"imports with no DOM: a server import does no DOM work" (30 s). It also timed outoutside-project.test.mjs"astryx --json theme targets" (60 s). Each passes alone.pnpm lint,pnpm check:knowledge, and the public-text check pass.pnpm lint:strict(CI's mode), core's typecheck andcheck:knowledgepass. So do the Layer, Selector, MultiSelector, Popover, DropdownMenu, Tooltip, HoverCard, ContextMenu, Typeahead, BaseTypeahead and Tokenizer suites (2507 tests).pnpm api:report --checkcalls the core report stale at 62d571d and at main 1f9217f alike. It is the same 57 lines on both, none of them this PR's. This PR's one report line equals the regenerated line.Writing rubric results
verified_bynames the two new tests.