FE-1500: add the example embed route - #9427
Open
kube wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 29, 2026 14:28
a48dcd5 to
3315bbb
Compare
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 29, 2026 20:03
3315bbb to
5afc088
Compare
kube
changed the base branch from
codex/fe-1500-viewer-simulation
to
codex/fe-1500-examples
August 30, 2026 01:09
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 30, 2026 01:09
5afc088 to
690195c
Compare
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 30, 2026 03:34
690195c to
2d06143
Compare
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 31, 2026 02:49
68b6c8f to
ec552ec
Compare
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 31, 2026 03:50
ec552ec to
7bf2020
Compare
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 31, 2026 04:24
7bf2020 to
b48ea84
Compare
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 31, 2026 11:13
b48ea84 to
f97741e
Compare
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 31, 2026 11:13
f97741e to
b42f4d0
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b42f4d0. Configure here.
kube
force-pushed
the
claude/fe-1500-embed
branch
from
August 31, 2026 12:01
b42f4d0 to
f021d85
Compare
3 tasks
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?
Adds the embed route
/embed/examples/<slug>, rendering the regular Petrinaut component read-only with embed options. This makes the embed URL contract available for oEmbed immediately; a compact preview surface replaces the component in a later PR without changing the contract. Stacked on #9362.🔗 Related links
🔍 What does this change?
vercel.json, in the oEmbed PR), not by client-side checks. Query params outside the contract are inert rather than redirected away:validateSearchdrops them, and rewriting the address bar would need a document reload, which an embed must avoid.EmbeddedExamplePagelazy-loads a read-onlyPetrinautwith all net-management controls hidden and a plain title in the top bar; navigation always uses replace-history inside the iframe. (Thereviewpresentation profile that hides authoring controls arrives later in the stack, in FE-1500: add editor presentation profiles #9425.)useSharedSearchNavigationfrom FE-1500: add versioned examples and read-only pages #9362 with a replace-only history policy, so the embed never grows the host page's history; controls that drive URL-unrepresentable state (the mode switcher, the viewport-settings overlay) work inside the embed instead of silently snapping back./embed/examples/*SPA rewrite tovercel.json.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:
🐾 Next steps
PetrinautPreviewsurface replaces the full component inside the embed later in this stack, keeping the URL contract property-tested identical.🛡 What tests cover this?
-index.test.tsx-style route coverage is not duplicated here.❓ How to test this?
yarn workspace @hashintel/petrinaut build:lib, thenyarn workspace @apps/petrinaut-website dev.http://localhost:5173/embed/examples/gases-1-pndirectly and confirm the read-only embed renders.?mode=simulate) is ignored.