FE-1500: add editor presentation profiles - #9425
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-presentation
branch
from
August 29, 2026 20:03
4266f7b to
bc5f034
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 30, 2026 17:24
bc5f034 to
e15aa00
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 01:03
e15aa00 to
dcdc3ff
Compare
kube
changed the base branch from
codex/fe-1500-router
to
codex/fe-1500-oembed
August 31, 2026 01:03
|
Semgrep found 4
Detected a call to |
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 02:14
dcdc3ff to
fbfaf65
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 04:24
a025c39 to
e54994a
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 11:13
e54994a to
be652ab
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 11:13
be652ab to
7035369
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 12:01
7035369 to
81fb77b
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 13:11
81fb77b to
b7fdbbf
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 14:27
b7fdbbf to
9f34a2b
Compare
kube
force-pushed
the
claude/fe-1500-presentation
branch
from
August 31, 2026 14:28
9f34a2b to
8dc576e
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?
Adds a
presentationProfileprop toPetrinaut(editororreview) that gates authoring-only controls, and extracts scenario and playback controls into shared components so later surfaces can compose them outside the full editor. Stacked on #9363.🔗 Related links
🔍 What does this change?
PetrinautPresentationProvidercontext maps a profile to capability booleans (showMutationActions,showSourceCode,showCustomVisualizers,showViewportSettings,showMinimap,compactControls). The defaulteditorprofile keeps every capability on, so existing hosts are unchanged;reviewsuppresses authoring actions for read-only pages.SelectedItemPropertiesfromPropertiesPanel/panel.tsx,SimulationScenarioControlsandsimulation-parameter-boundsfromsimulation-settings.tsx, and a compact variant of the bottom-barSimulationControlsandPlaybackSettingsMenu(with anallowedSpeedsallow-list).React.lazyboundaries (createDeferredSubView).reviewprofile on the website's full example page and embed page, which until this PR rely onreadonlyalone (authoring controls disabled instead of hidden).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?
simulation-parameter-bounds.test.ts.@hashintel/petrinautunit suite runs the editor with the default profile.❓ How to test this?
yarn workspace @hashintel/petrinaut build:lib, thenyarn workspace @apps/petrinaut-website dev./: property panels, scenario controls in Simulation Settings, playback bar, viewport controls./examples/gases-1-pn) and confirm add/delete/rename affordances and source-code fields are hidden rather than disabled.