FE-1500: switch the example embed to the Petrinaut preview - #9448
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
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 30, 2026 03:34
879319c to
ee83651
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 30, 2026 17:09
ee83651 to
1c805b2
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 30, 2026 17:24
1c805b2 to
7e9425b
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 01:03
7e9425b to
f5e9e25
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 02:14
f5e9e25 to
a3e8a69
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 11:13
caab6f3 to
7425768
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 11:13
7425768 to
1be5d59
Compare
|
Semgrep found 4
Detected a call to Semgrep found 1 Ensure that the regex used to compare with user supplied input is safe from regular expression denial of service. |
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 12:01
1be5d59 to
272d608
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 13:11
272d608 to
4438ee5
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 14:27
4438ee5 to
9d2da59
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 14:28
9d2da59 to
5de56fa
Compare
kube
force-pushed
the
claude/fe-1500-embed-preview
branch
from
August 31, 2026 14:42
5de56fa to
8e15929
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.
🌟 What is the purpose of this PR?
Switches the
/embed/examplesroute from the full read-only Petrinaut component toPetrinautPreviewwith Quick Simulation. This is an optimization of the already-shipped embed: the compact surface loads no Monaco/LSP and adds bounded in-embed simulation. The embed URL contract does not change. Stacked on #9361.🔗 Related links
🔍 What does this change?
EmbeddedExamplePagelazy-loadsPetrinautPreviewfrom@hashintel/petrinaut/previewand builds itsquickSimulationfrom the build-time HIR artifacts (loadExampleRuntime) plus the catalog's parameter bounds; step size and horizon use the simulation defaults.previewSearchToNavigationStateand friends) over the same shared search subset.normalizeEmbedSearchredirect is untouched; a fast-check property asserts the preview codec produces the same search as the shared codec on every generated input, so existing embed URLs keep working unchanged.Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
🛡 What tests cover this?
navigation-search.property.test.ts, including the codec-equivalence property that pins the URL contract across the switch.embed-route.test.tsand the shared codec laws pass unchanged.❓ How to test this?
yarn workspace @hashintel/petrinaut build:lib, thenyarn workspace @apps/petrinaut-website dev.http://localhost:5173/embed/examples/gases-1-pn(directly or inside an iframe).