Skip to content

[pull] next from storybookjs:next#894

Merged
pull[bot] merged 19 commits into
GesuBackups:nextfrom
storybookjs:next
Jul 2, 2026
Merged

[pull] next from storybookjs:next#894
pull[bot] merged 19 commits into
GesuBackups:nextfrom
storybookjs:next

Conversation

@pull

@pull pull Bot commented Jul 2, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ghengeveld added 19 commits July 1, 2026 15:11
Bootstrap embed iframes at 2× viewport width before measurement, clip scaled previews inside grid cells, show a manager loader until resize settles, and re-measure on collapse/expand so spinners do not stick.
When freeze=finished is active, ignore iframe.resize.request from the
parent until onContentFrozen runs so pre-freeze measurements cannot
flash wrong thumbnail scales. Add broadcast cleanup for test isolation.
Replace three competing isPreviewLoading effects with one generation
counter so duplicate iframe.resize payloads still clear the loader
after paint instead of waiting for the fallback timeout.
Only hide the in-iframe preparing spinner when review thumbnails use
embed with freeze, keeping generic embed previews on default UI.
Delete computeThumbnailScale and unused content-height defaults so
Frame CSS is the single source of truth for thumbnail scale steps.
Simulate iframe.resize in play functions to assert loaders clear after
measurement, duplicate resize payloads do not stick, and story swaps remount cleanly.
Thumbnail embeds always use freeze=finished for measurement; remove the
ResizeObserver branch and test measurement through onContentFrozen instead.
Move shouldEmbed and shouldAutoplay into embedMode so measurement code
and play-function policy live in separate modules.
Keep freeze=finished thumbnails on onContentFrozen-only measurement while
reinstating ResizeObserver-driven sizing for generic embed=true consumers.
Drop progressbar override so the indeterminate spinner keeps correct
aria semantics without missing value attributes.
Use a FrameShell wrapper so aspect-ratio width comes from the cell, not
subgrid row height, and add story coverage for frame-fit-after-resize.
Cancel pending debounced RAF on embed resize teardown and assert review
grid frames exist before width checks in story play functions.
Cells now display the loading indicator as soon as they enter the preview
scheduler queue, instead of waiting until the iframe src is assigned.
Ignore identical DISPLAY_REVIEW payloads and only reset expanded
collections when createdAt changes, so opening a story in a new tab
does not collapse the summary the user left open.
… viewport.

Embed previews now report the active viewport name and dimensions alongside content size so CollectionGrid can horizontally scale fixed viewports within the 3:2 frame and clip overflow vertically.
…l-content-resize

Review: Improve review thumbnail scaling and loading UX
@pull pull Bot locked and limited conversation to collaborators Jul 2, 2026
@pull pull Bot added the ⤵️ pull label Jul 2, 2026
@pull pull Bot merged commit af10ec3 into GesuBackups:next Jul 2, 2026
2 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant