-
Notifications
You must be signed in to change notification settings - Fork 118
FE-588: Add basic Scenario support #8609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
7ac84b2
Add vertical orientation and icon-only mode to SegmentGroup
kube f4a6d54
Add basic simulate mode view and enable mode switching
kube eb5c06e
Add Scenario type, Drawer component, and Create Scenario UI
kube d80f035
Add showAsInitialState property to Place
kube 49ee066
Extract shared scenario form and add View Scenario drawer
kube adbb0b0
Add LSP support for scenario expression editors
kube bdbfa5f
Move simulation error display from Settings to Diagnostics tab
kube ba91af4
Make parameters list scrollable in simulation settings
kube c58c320
Add scenario picker and Metrics section to Simulation Settings
kube 46ff8f6
Prevent scrolling in single-line CodeEditor
kube 16c4b02
Expose scenario parameters via `scenario` object in LSP
kube b333f9a
Wire scenario form to TanStack Form with LSP-gated submit
kube bc4adfa
Lint scenario expressions only when relevant
kube 87260f6
Validate scenario name and parameter identifiers
kube 3f2c6d3
Widen drawer with viewport-aware max width
kube a4011e3
Persist scenarios via Create/Save with Zod validation
kube 339e763
Store selected scenario in SimulationContext
kube 8506982
Add scenario expression compiler and wire into SimulationContext
kube 39cc172
Add Create Scenario button to Simulation Settings
kube 65b6688
Add Edit Scenario button and remove icon button gap
kube 50cdd2a
Reduce gap
kube 4de5e57
Override context params/marking from compiled scenario and polish picker
kube 8656ec7
Remove Metrics section from Simulation Settings
kube 1327ca1
Add Metrics tab and disable Metrics/Experiments in Simulate view
kube de07794
Update Positioner zIndex
kube 08152ea
Refactor initialState to discriminated union, support colored places
kube d13a212
Rename Earth to Planet in satellite examples and simplify scenarios
kube 4ccd2d9
Flag RawMaterial and AvailableMachines as initial state in Productionβ¦
kube 37a72f8
Add ratio param type, code-mode compilation, and UI polish
kube e8db409
Show read-only spreadsheet for colored places when scenario is active
kube 1325374
Add "All Around the World" scenario to Satellites example
kube ae12462
Fix satellite velocity arrow disappearing for negative velocities
kube d15b23f
Reduce parameter label weight in scenario form
kube 893323b
Add changeset
kube 9c45baa
Replace initial-state switch with checkbox in place properties
kube 8ba40ab
Clarify default-starting-place hint text
kube b1fa3e5
Add inline validation and empty-state hints to scenario form
kube 1224c70
Cap simulation-settings parameter row width
kube eeef0e5
Fix petrinaut lint and typecheck errors
kube 7621ec1
Externalise use-sync-external-store in petrinaut lib build
kube b43a945
Rework Satellites Launcher scenarios around user-tweakable params
kube 183e681
Rename satellites scenario params and put launch_rate first
kube c7bdaa0
Fix stale scenario param refs in satellite parameterOverrides
kube b420fa8
Close .constructor-chain escape in scenario expression sandbox
kube 00d7c3b
Add Default Production scenario to Production Machines
kube f1560c4
Disable scenario picker while simulation is active
kube 8199aa8
Auto-snakify scenario parameter identifier on blur
kube 265f689
Use Switch for boolean scenario param default, fix NumberInput steps
kube File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@hashintel/petrinaut": patch | ||
| --- | ||
|
|
||
| Add Scenarios: reusable simulation configurations with parameter overrides and initial state expressions |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.