Skip to content

Fit a live sample's frame and hold its growth in the host - #6997

Merged
max-sixty merged 7 commits into
mainfrom
agent-a4c8eedb98b088c7a
Nov 24, 2026
Merged

max-sixty merged 7 commits into
mainfrom
agent-a4c8eedb98b088c7a

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

One step of the package-interface redesign (step six, the sample-host trial). The host mountSample returns now gives a block's frame its child's height and holds a resize the reader did not ask for while it would move what they see, the rule lf-sample kept in about seventy-five lines. heldGrowth, whenNone and the host's height notice leave the package API (114 exported names to 112), for independent packages too. The two examples that mount a sample themselves drop their own sizing and gain the hold.

For review: no option carries lf-sample's state. The host learns Full view from setWindow, and whether the reader asked from where the frame stood as it mounted, reset() and the child's input notices. growthIsSeen stays: lf-sample still asks it to choose between starting at once and whenNear. whenNear drops the landing its callback returned; the host declares it with pending-task. A user could see two changes, both where the host cannot tell the reader asked: Reset on a never-started sample out of sight, and a dynamic-widgets preview staged out of sight, hold later growth once scrolled to.

Ran every live-sample test in Chromium, 22 in Firefox, leaf-dev probe --base in both, and pnpm run check.

This was written by Claude Code on behalf of max-sixty

@max-sixty
max-sixty merged commit 6c44d46 into main Nov 24, 2026
6 checks passed
@max-sixty
max-sixty deleted the agent-a4c8eedb98b088c7a branch November 24, 2026 09:50
max-sixty added a commit that referenced this pull request Nov 24, 2026
Brings in main's six newer commits, through e7d5808 (#6998).

One conflict, in the imports of
browser/runtime/annotation-overlay/margin-projection.js. This branch
imports `focusByKey` and `focusKey` from carry.js, so that Back returns
the user to where they were in a card. #6998 moved `rove` out of
focus.js into lib/roving.js and imports it from there. The resolution
keeps both imports. The rest of the file merged cleanly, as main plus
this branch's card changes.

None of the incoming commits touches history.js, version.js,
prepaint.js, bootstrap.js, carry.js, document-inputs.js or leaf.js.
Their thread changes are these:

- #6995 changes how a widget says its seats changed (`lf-layout`) and
  releases an outlet through the surface handle.
- #6997 changes how a live sample's growth is held.
- #6998 moves `el` and `rove` into the library.

None of them changes thread destinations, the entry's record or the
handoff.

> _This was written by Claude Code on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants