Repository navigation
Conversation
createOvershootDrawing reads animatorFor from the shared touch runtime at draw time, so Resizable no longer imports the animator statically. Before the runtime loads, a Handle pulled past a limit stops at the limit, with no overshoot and no spring-back; the resize itself works as always. INV13 and Resizable FR8 state it; the gap line drops Resizable.
# Conflicts: # docs/architecture/react-component-runtime.md
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 61c97f4 |
…load importers; useSnapPaging is an opt-in entry
|
/approve-spec 5c6e7b4 |
There was a problem hiding this comment.
Changes requested: the Resizable and Layout entries no longer import the animator, and the INV13 and FR8 edits are owner-approved for this head, but nothing on the Resizable path starts the touch runtime load.
createOvershootDrawingonly readsgetTouchRuntime()(packages/core/src/Resizable/resizablePane.ts:557-561) and nothing the Resizable or Layout entries import callsscheduleTouchRuntimeLoad()oruseTouchRuntime(), so a page whose only touch-runtime user is a resizableLayoutPanelnever loads the runtime and never shows the FR8 overshoot or spring-back; schedule the load when the drawing attaches (increateOvershootDrawing's body or insetPaneincreateResizable.ts, not indraw, since a gesture must not start the load) and add a test that renders the panel without__loadTouchRuntimeForTestand expects the runtime to load.
With that fix, the description's "first paint, then idle, at most 2 s" window holds on every page, and the overshoot cases in paneSlide.interaction.browser.spec.ts should wait for the load before they pull. The description could also say that the INV13 gap line is corrected for SnapPaging, the date wheels, Calendar and the components that import them, not only for Resizable.
Claims and files checked
- Claims:
- Resizable's overshoot drawing reads the animator from the touch runtime at draw time instead of importing it: verified (
resizablePane.ts:23-24,:557-561). - No static path from the Resizable or Layout entries reaches the animator or the gesture host: verified (the boundary test fails on the base and passes on the head).
- Nothing changes after the load, and there is no API change: verified (the drawing path is unchanged once loaded; the API surface comparison has no rows).
- Pages with a resizable LayoutPanel or a ResizeHandle download less JavaScript before first paint: verified for the static graph; bytes not measured.
- Before the runtime loads, at most 2 s after first paint, a pull past a limit stops at the limit: false on a page with no other touch-runtime user, where the runtime never loads (the blocking finding).
- Resize, collapse and open, and the keyboard work as always: verified in the resize controller and the passing Resizable and Layout suites.
- The old drawing put the animator in every Resizable page's static graph: verified (the base's import graph).
- Every caller already handles the drawing's no-animator path: verified (
resizablePane.ts:563-613,createResizable.ts:1297-1300). - INV13 adds the Resizable before-load clause, FR8 carries the same line, and the gap line drops Resizable: verified; the gap line also changes for other components.
- The two new tests fail first on the base: verified (three expectations fail on the base and pass on the head).
paneReveal.test.tsxloads the runtime before its tests: verified (paneReveal.test.tsx:40-42).- The Resizable, Layout and touch runtime suites, the Core typecheck and the knowledge check pass: verified.
- One primary intent, and no internal context in public text: verified. Independently removable deltas were removed: the other components' gap-line corrections could be split; non-blocking.
- The record edits are in the present tense: verified.
- Resizable's overshoot drawing reads the animator from the touch runtime at draw time instead of importing it: verified (
- Files:
docs/architecture/react-component-runtime.md: clear.docs/specs/components/Resizable/Resizable.spec.md: clear.packages/core/src/Resizable/paneReveal.test.tsx: finding (its manual load hides the unscheduled path).packages/core/src/Resizable/resizablePane.overshoot.test.ts: clear.packages/core/src/Resizable/resizablePane.ts: blocking finding.packages/core/src/utils/touchRuntime.boundary.test.ts: clear.
| const animator = () => { | ||
| const handle = geometry?.handle; | ||
| return handle == null ? null : animatorFor(handle); | ||
| const animatorFor = getTouchRuntime()?.animatorFor; |
There was a problem hiding this comment.
This only reads the runtime. Nothing the Resizable or Layout entries import calls scheduleTouchRuntimeLoad() or useTouchRuntime(), so on a page whose only touch-runtime user is a resizable LayoutPanel the runtime never loads and the FR8 overshoot and spring-back never return. Every other getTouchRuntime() reader pairs it with useTouchRuntime(). Scheduling the load here (or in setPane in createResizable.ts, where the pane attaches) fixes it; scheduleTouchRuntimeLoad() is idempotent and does nothing on the server.
|
/approve-spec 4381718 |
|
Decision: D-20261113-276 Records the owner's answer that the touch runtime loads once per page after first paint, never on demand, at 4381718. Until it loads, a handle pulled past a limit stops at the limit with no overshoot or spring-back, and the resize itself works. It waives nothing. |
There was a problem hiding this comment.
Changes requested: the Resizable and Layout entries no longer import the animator, and the INV13 and FR8 edits are owner-approved for this head, but nothing on the Resizable path starts the touch runtime load.
createOvershootDrawingonly readsgetTouchRuntime()(packages/core/src/Resizable/resizablePane.ts:557-561), and nothing the Resizable or Layout entries import callsscheduleTouchRuntimeLoad()oruseTouchRuntime(), so on a page whose only touch-runtime user is a resizableLayoutPanelthe runtime never loads and the FR8 overshoot and spring-back never return; schedule the load when the drawing attaches (increateOvershootDrawingor insetPaneincreateResizable.ts, not indraw, since an input must not start the load) and add a test that renders the panel without__loadTouchRuntimeForTestand expects the runtime to load.
On this head the SlidingStartPanel story draws no band at all in Chromium, so the two overshoot cases in paneSlide.interaction.browser.spec.ts cannot pass; with the fix they should wait for the load before they pull. The description could also say that the INV13 gap line is corrected for SnapPaging, the date wheels, Calendar and the components that import them, not only for Resizable.
Claims and files checked
- Claims:
- The overshoot drawing reads the animator from the touch runtime at draw time instead of importing it: verified (
resizablePane.ts:23-24,:557-561). - No static path from the Resizable or Layout entries reaches the animator or the gesture host: verified (the boundary test fails on the base and passes on the head).
- Nothing changes after the load, and there is no API change: verified (the drawing path is unchanged once loaded; the API surface comparison has no rows).
- Pages with a resizable LayoutPanel or a ResizeHandle download less JavaScript before first paint: verified for the static graph; bytes not measured.
- Before the runtime loads, at most 2 s after first paint, a pull past a limit stops at the limit: false on a page with no other touch-runtime user, where the runtime never loads (the blocking finding).
- Resize, collapse and open, and the keyboard work as always: verified (the Resizable and Layout suites pass).
- The old drawing put the animator in every Resizable page's static graph: verified (the base's import graph).
- Every caller already handles the drawing's no-animator path: verified (
resizablePane.ts:563-613,createResizable.ts:1273-1300). - INV13 adds the Resizable before-load clause, FR8 carries the same line, and the gap line drops Resizable: verified; the gap line also changes for other components.
- The change sits on the Lightbox zoom pull request's branch: verified.
- The two new tests fail first on the base: verified (three expectations fail on the base and pass on the head).
paneReveal.test.tsxloads the runtime before its tests: verified (paneReveal.test.tsx:40-42).- The Resizable, Layout and touch runtime suites, the Core typecheck and the knowledge check pass: verified.
- One primary intent, and no internal context in public text: verified; the other components' gap-line corrections could be split (non-blocking).
- The record edits are in the present tense: verified.
- The overshoot drawing reads the animator from the touch runtime at draw time instead of importing it: verified (
- Files:
docs/architecture/react-component-runtime.md: clear.docs/specs/components/Resizable/Resizable.spec.md: clear.packages/core/src/Resizable/paneReveal.test.tsx: finding (its manual load hides the unscheduled path).packages/core/src/Resizable/resizablePane.overshoot.test.ts: clear.packages/core/src/Resizable/resizablePane.ts: blocking finding.packages/core/src/utils/touchRuntime.boundary.test.ts: clear.
# Conflicts: # docs/architecture/react-component-runtime.md
There was a problem hiding this comment.
Waiting on an engineering owner: the before-load stop for Resizable changes component:Resizable FR8 and architecture:react-component-runtime INV13 as they stand on main, and the earlier /approve-spec covered only the previous head, before the base branch was merged in. An engineering owner, the author included, records the decision by commenting /approve-spec with this pull request's full head commit SHA; what has to be settled is FR8's new sentence that a handle stops at the limit until the touch runtime loads, the matching INV13 before-load clause, and INV13's rewritten gap line. Two fixes are needed whatever that decision is:
createOvershootDrawingonly readsgetTouchRuntime()(packages/core/src/Resizable/resizablePane.ts:557-561) and nothing the Resizable or Layout entries import callsscheduleTouchRuntimeLoad()oruseTouchRuntime(), so on a page whose only touch-runtime user is a resizableLayoutPanelthe runtime never loads and the FR8 overshoot and spring-back never return; schedule the load when the drawing attaches (increateOvershootDrawingor insetPaneincreateResizable.ts, not indraw, since an input must not start the load) and add a test that renders the panel without__loadTouchRuntimeForTestand expects the runtime to load.- The merge of the base branch turned INV13's sentence on Item's deprecated swipe path back to "the loaded layer fills, the click guard, and the event forwarders into that bridge" (
docs/architecture/react-component-runtime.md:395-396), whilemainandpackages/core/src/Item/Item.tsx:971-979have only the key forwarder; keep the base's wording, "the loaded layer fills and the key forwarder into that bridge".
With the first fix, the two overshoot cases in paneSlide.interaction.browser.spec.ts should wait for the load before they pull.
Claims and files checked
- Claims:
- The overshoot drawing reads the animator from the touch runtime at draw time instead of importing it: verified (
resizablePane.ts:23-24,:557-561). - No static path from the Resizable or Layout entries reaches the animator or the gesture host: verified (the two new boundary entries fail on the base and pass on the head).
- Nothing changes after the load, and there is no API change: verified (the drawing path is unchanged once loaded; the built API surfaces of base and head are identical).
- Pages with a resizable LayoutPanel or a ResizeHandle download less JavaScript before first paint: verified for the static graph; bytes not measured.
- Before the runtime loads, at most 2 s after first paint, a pull past a limit stops at the limit: false on a page with no other touch-runtime user, where the runtime never loads (the first finding above).
- Resize, collapse and open, and the keyboard work as always: verified (the Resizable and Layout suites pass).
- The old drawing put the animator in every Resizable page's static graph: verified (the base's import graph).
- Every caller already handles the drawing's no-animator path: verified (
resizablePane.ts:563-613,createResizable.ts:1273-1300). - INV13 adds the Resizable before-load clause, FR8 carries the same line, and the gap line drops Resizable: verified; the gap line also changes for other components, and INV13's Item sentence changes too (the second finding above).
- The change sits on the Lightbox zoom pull request's branch: verified.
- The two new tests fail first on the base: verified (three expectations fail on the base and pass on the head).
paneReveal.test.tsxloads the runtime before its tests: verified (paneReveal.test.tsx:40-42).- The Resizable, Layout and touch runtime suites, the Core typecheck and the knowledge check pass: verified (496 tests; the typecheck and the knowledge check pass at this head).
- One primary intent, and no internal context in public text: verified.
- The record edits are in the present tense: verified.
- The overshoot drawing reads the animator from the touch runtime at draw time instead of importing it: verified (
- Files:
docs/architecture/react-component-runtime.md: blocking finding (the Item sentence); the Resizable clause and gap line wait on the owner decision.docs/specs/components/Resizable/Resizable.spec.md: clear apart from the owner decision on FR8's new sentence.packages/core/src/Resizable/paneReveal.test.tsx: finding (its manual load hides the unscheduled path).packages/core/src/Resizable/resizablePane.overshoot.test.ts: clear.packages/core/src/Resizable/resizablePane.ts: blocking finding.packages/core/src/utils/touchRuntime.boundary.test.ts: clear.
| the loaded layer fills, the click guard, and the event forwarders into that | ||
| bridge; and the coexistence diagnostic. There is no install call, no public |
There was a problem hiding this comment.
The merge of the base branch put back the older wording here. On main (and on this pull request's base) this sentence reads "the loaded layer fills and the key forwarder into that bridge; and the coexistence diagnostic", because Item's click guard and event forwarders were removed; packages/core/src/Item/Item.tsx:971-979 forwards only onKeyDown into the bridge. Please keep the base's wording:
the loaded layer fills and the key forwarder into that bridge; and the
coexistence diagnostic. There is no install call, no public
|
/approve-spec 7fd9f2c |
There was a problem hiding this comment.
Changes requested at this head. The engineering-owner /approve-spec for this head settles the before-load sentences in component:Resizable FR8 and architecture:react-component-runtime INV13, so the spec question is closed and two fixes remain.
- Nothing on the Resizable path schedules the touch-runtime load:
createOvershootDrawingonly readsgetTouchRuntime()(packages/core/src/Resizable/resizablePane.ts:555-561), and no module theResizableorLayoutentries import callsscheduleTouchRuntimeLoad()oruseTouchRuntime(), so on a page whose only touch-runtime user is a resizableLayoutPanelthe runtime never loads and FR8's band and spring-back never return; schedule it where the pane attaches (useTouchRuntime()inResizeHandle, orscheduleTouchRuntimeLoad()insetPane,packages/core/src/Resizable/createResizable.ts:830-841), never indraw, since an input must not start the load, and add a test that renders the panel without the test loader and expects the runtime to load. architecture:react-component-runtimeINV13's sentence onItem's deprecated swipe path reads "the loaded layer fills, the click guard, and the event forwarders into that bridge" (docs/architecture/react-component-runtime.md:393-396), whilemain, this pull request's base andpackages/core/src/Item/Item.tsx:969-979have only the key forwarder; restore the base's wording.
With the first fix the three expectations that pull past the maximum in packages/core/src/Resizable/__tests__/paneSlide.interaction.browser.spec.ts have a runtime to draw with: the story they open uses no other touch component, so nothing there loads one today.
Claims and files checked
- Claims:
- The overshoot drawing reads the animator from the touch runtime at draw time instead of importing it: verified (
resizablePane.ts:22-24,:555-561). - No static path from the Resizable or Layout entries reaches the animator or the gesture host: verified (both new boundary entries fail on the base and pass on the head).
- Nothing changes after the load and there is no API change: verified for the drawing path; no exported signature, variable, attribute, event or default moves.
- A page with a resizable LayoutPanel or a ResizeHandle downloads less JavaScript before first paint: verified for the static graph; the bytes are not measured here.
- Before the runtime loads, for at most about 2 s after first paint, a pull past a limit stops at the limit: false on a page with no other touch-runtime user, where the runtime never loads (first finding).
- The resize itself, collapse and open, and the keyboard work as always: verified (the Resizable and Layout suites pass at this head).
- Every caller already handles the drawing's no-animator path: verified (
resizablePane.ts:563-612,createResizable.ts:1273-1300). - INV13 adds the Resizable before-load clause, FR8 carries the same line, and the gap line drops Resizable: verified, and the rewritten gap line matches the head's import graph; INV13's Item sentence also changed (second finding).
- The two new tests fail first on the base: verified (three expectations fail there and pass on the head).
paneReveal.test.tsxloads the runtime before its cases: verified (paneReveal.test.tsx:36-42).- The Resizable, Layout and touch-runtime suites, the Core typecheck and the knowledge check pass: verified at this head (496 tests).
- One primary intent, and no internal context in public text: verified.
- The overshoot drawing reads the animator from the touch runtime at draw time instead of importing it: verified (
- Files:
docs/architecture/react-component-runtime.md: blocking finding (the Item sentence); the Resizable clause and the rewritten gap line are owner-approved at this head and match the import graph.docs/specs/components/Resizable/Resizable.spec.md: clear (one added FR8 sentence, owner-approved; the other changed lines are table re-padding).packages/core/src/Resizable/resizablePane.ts: blocking finding (no scheduled load).packages/core/src/Resizable/paneReveal.test.tsx: finding (its manual load hides the unscheduled path).packages/core/src/Resizable/resizablePane.overshoot.test.ts: clear.packages/core/src/utils/touchRuntime.boundary.test.ts: clear.
# Conflicts: # docs/architecture/react-component-runtime.md
There was a problem hiding this comment.
Not ready to approve yet. Approval waits on an engineering owner's decision on the proposed before-load spec text, and two fixes are needed either way.
Owner decision needed
This pull request adds requirements that the specs on main do not state. The new last sentence of the Resizable spec's FR8 says that until the shared touch runtime loads, a handle pulled past a limit stops at the limit with no overshoot or spring-back. INV13 in the runtime architecture record gains the matching before-load clause and a rewritten gap line. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The stop also applies to mouse and trackpad drags, so the description should cite the owner decision that covers that desktop behavior.
Blocking findings
- Nothing on the Resizable or Layout path schedules the touch-runtime load (
packages/core/src/Resizable/resizablePane.ts:555-561), so on a page whose only touch-runtime user is a resizable panel the band and spring-back never come back; schedule the load where the pane attaches (for examplescheduleTouchRuntimeLoad()insetPaneincreateResizable.ts, oruseTouchRuntime()inResizeHandle), and add a test that renders the panel without preloading the runtime. - INV13's sentence on
Item's deprecated swipe path (docs/architecture/react-component-runtime.md:395-396) again names "the click guard, and the event forwarders", whilemain, the base branch andItem.tsxhave only the key forwarder, so restore the base wording.
Smaller point: before the load, createResizable.ts still computes an overshoot it cannot draw, so a closing lift under the minimum starts its slide up to 8 px from where the edge shows.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: no static path from the Resizable or Layout entries reaches the animator or the gesture host. Verified by the new boundary entries and an import-graph walk.
- Claim: nothing changes after the load, and there is no API change. Verified: the runtime exposes the same animator lookup, and a built API surface comparison shows no changed rows.
- Claim: before the runtime loads (at most 2 s), a pulled handle stops at the limit. False on a page with no other touch-runtime user, where the load never starts (first blocking finding).
- Claim: resizing, collapse, open and the keyboard work as always before the load. Verified by the Resizable and Layout suites and a browser readout of the value at the limit.
- Claim: every caller already handles the existing no-animator path. Verified in
resizablePane.ts:564-626. - Claim: the gap line drops Resizable. Verified; it also drops SnapPaging and names further first-load importers, which an import walk confirms.
- Claim: the two new tests fail before this change and pass with it. Verified by a red-first run.
- Claim: the Resizable, Layout and touch-runtime suites, the Core typecheck and the knowledge check pass. Verified.
- Claim: land order and owner. Process statements, not checked against code.
- File
docs/architecture/react-component-runtime.md: Item-sentence finding; the new text waits on the owner decision. - File
docs/specs/components/Resizable/Resizable.spec.md: waits on the owner decision; otherwise clear. - File
packages/core/src/Resizable/resizablePane.ts: load-scheduling finding. - File
packages/core/src/Resizable/resizablePane.overshoot.test.ts: clear. - File
packages/core/src/Resizable/paneReveal.test.tsx: clear. - File
packages/core/src/utils/touchRuntime.boundary.test.ts: clear.
There was a problem hiding this comment.
Not ready to approve yet. The exact-head /approve-spec settles the before-load sentences in component:Resizable FR8 and architecture:react-component-runtime INV13, but approval still waits on an owner decision, cited in the description, for the desktop part of that stop (a mouse or trackpad drag past a pane's limit losing the band and spring-back until the touch runtime loads), and two fixes are needed either way:
- Nothing on the Resizable path schedules the touch-runtime load (
packages/core/src/Resizable/resizablePane.ts:555-561), so on a page whose only touch-runtime user is a resizable panel the band and spring-back never return, against FR8, INV13's "loads them once on every page after first paint" and the description's "at most 2 s"; calluseTouchRuntime()inResizeHandle, orscheduleTouchRuntimeLoad()where the pane attaches (createResizable.ts:830-841), and add a test that renders the panel without the test loader. - INV13's sentence on
Item's deprecated swipe path (docs/architecture/react-component-runtime.md:395-396) is back to "the click guard, and the event forwarders", whichmaincorrected to "the key forwarder" becauseItem.tsx:971-979forwards onlyonKeyDown; restore the base wording.
Non-blocking: before the load, createResizable.ts:1055-1059 still computes an overshoot it cannot draw, so a lift that closes the pane starts its slide up to 8 px from where the edge shows.
Claims and files checked
Review mode: same-head; reason: none
Claims:
- The pane drawing stops importing the animator and reads it from the touch runtime at draw time: verified (
resizablePane.ts:23-24,:557-561). - No static path from the Resizable or Layout entries reaches the animator or the gesture host: verified (both new boundary entries fail on the base and pass on the head).
- Nothing changes after the load and no API changes: verified (the runtime carries the same
animatorFor; no public surface row changes). - Pages with a resizable panel load less JavaScript before first paint: verified for the static graph; bytes are not measured, as the description says.
- Before the load the stop lasts at most 2 s: false (a resizable
LayoutPanelrendered alone still has no runtime after 2.6 s). - Resizing, collapse and open, and the keyboard work as always before the load: verified (
paneReveal.test.tsxand the Resizable suite pass). - Every caller already handles the no-animator path: verified (
resizablePane.ts:564-612). - INV13 adds the Resizable clause, FR8 carries the same line and the gap line drops Resizable: verified; the gap line also drops SnapPaging and names more importers, and the
Itemsentence changed too. - The new tests fail first: verified (three cases fail on the base).
paneReveal.test.tsxloads the runtime inbeforeAll: verified.- The Resizable, Layout and touch-runtime suites and the knowledge check pass: verified.
- The Core typecheck passes: verified.
Files:
docs/architecture/react-component-runtime.md: finding (theItemsentence).docs/specs/components/Resizable/Resizable.spec.md: clear (the new FR8 sentence; the rest of the table is re-padding).packages/core/src/Resizable/resizablePane.ts: finding (the load is never scheduled).packages/core/src/Resizable/resizablePane.overshoot.test.ts: clear.packages/core/src/Resizable/paneReveal.test.tsx: clear.packages/core/src/utils/touchRuntime.boundary.test.ts: clear.
|
/approve-spec bdd7a75 |
Primary intent
Performance, stacked on #11478 (then #11476, #11466, #11463 and #11450): Resizable's pane drawing (
Resizable/resizablePane.ts) stops importing the animator statically. It reads the animator from the shared touch runtime when it draws an overshoot. With this, no static path from the Resizable or Layout entries reaches the animator or the gesture host. It is not a bug fix or a feature: nothing changes after the load, and there's no API change.User or maintainer impact
Problem and solution fit
createOvershootDrawingbuilt the Handle's animator withanimatorFor, which mademotion/animatorpart of every Resizable page's static graph.animatorForfrom the runtime at draw time. Its existing "no animator" path, which every caller already handles (drawwrites nothing,springBackreturns false,shownreports the drawn amount), is the before-load behavior.Authority
architecture:react-component-runtimeINV13 andspec:AST-080DEC-5 (amended in #11450). INV13's before-load sentence adds the Resizable clause, Resizable FR8 carries the same line, and the gap line drops Resizable.Change and evidence
Resizable/resizablePane.ts, INV13, and Resizable FR8.Scope
Components: Resizable (resizablePane)
Testing
Red first, each failing on #11478's head:
utils/touchRuntime.boundary.test.ts: the Resizable and Layout entries reach no touch module statically.Resizable/resizablePane.overshoot.test.ts: before the load, a pull past a limit writes nothing to the Handle and springs nothing back; after it, the overshoot is drawn.Also:
paneReveal.test.tsxloads the runtime inbeforeAll.check:knowledgepass.Writing rubric results
Owner and land path
Owner: the Astryx fix loop, lane 3. Lands after #8690 merges, in stack order (#11450, #11463, #11466, #11476, #11478, #11508, #11518, #11525, #11530, #11536, #11540, #11544), each after Specs, CodeBunny at its head and green CI; the drain merges.