FE-1647: Add Storybook stories for the embedded Preview - #9618
Draft
kube wants to merge 1 commit into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
kube
added this pull request to stack #9630
September 9, 2026 13:23
kube
force-pushed
the
claude/fe-1647-preview-stories
branch
from
September 10, 2026 22:54
05922dd to
c67fbf3
Compare
kube
force-pushed
the
claude/fe-1647-preview-stories
branch
from
September 11, 2026 00:32
c67fbf3 to
971cf7a
Compare
kube
force-pushed
the
claude/fe-1647-preview-stories
branch
from
September 11, 2026 00:43
971cf7a to
d2b880f
Compare
kube
force-pushed
the
claude/fe-1647-preview-stories
branch
from
September 11, 2026 00:49
d2b880f to
af21df0
Compare
kube
force-pushed
the
claude/fe-1647-preview-stories
branch
from
September 11, 2026 01:07
af21df0 to
cc4e1a9
Compare
kube
force-pushed
the
claude/fe-1647-preview-stories
branch
from
September 11, 2026 09:06
cc4e1a9 to
b9adfb6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Before this PR, the only way to look at the embedded Preview was the demo website's embed route. That route serves the built package, so every change to the Preview cost a package rebuild before it could be seen, and its states could not be put side by side. The editor has had a story since it was built; the Preview never did.
Five stories now cover the Preview's states, and they need no build step. Quick Simulation's artifacts come from the HIR compiler in petrinaut-core, which runs in the browser: the website precompiles them to JSON only to keep the compiler out of its own bundle. The stories compile them at module scope instead, from two core examples.
Links
Changes
Petrinaut / PreviewFramegives Preview the host it fillsKnown issues
Test coverage
@hashintel/petrinautunit suiteHow to test
yarn workspace @hashintel/petrinaut dev