FE-1500: Publish the core example models in the website catalog - #9492
FE-1500: Publish the core example models in the website catalog#9492kube wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
f717fd7 to
f477c49
Compare
f477c49 to
d636386
Compare
d636386 to
cccda61
Compare
cccda61 to
6eb6e8d
Compare
PR SummaryLow Risk Overview Catalog entries now declare an Each new slug gets simulation parameter min/max/step bounds; existing JSON-backed entries are tagged with Reviewed by Cursor Bugbot for commit 599aa46. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed changes have no unresolved approval-blocking issues.
Pull request overview
Publishes six Petrinaut core examples through the website catalog and embed routes.
Changes:
- Adds source-aware catalog metadata and core example entries.
- Loads core definitions and generates their HIR artifacts.
- Tests loading, bounds, titles, artifacts, and caching.
File summaries
| File | Description |
|---|---|
apps/petrinaut-website/src/examples/catalog.ts |
Loads definitions according to their catalog source. |
apps/petrinaut-website/src/examples/catalog.test.ts |
Tests core titles and catalog behavior. |
apps/petrinaut-website/src/examples/catalog-metadata.ts |
Defines sources, core metadata, and parameter bounds. |
apps/petrinaut-website/scripts/generate-example-artifacts.ts |
Generates artifacts from JSON files or core exports. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
6eb6e8d to
599aa46
Compare
Summary
Before this PR, the website catalog held the JSON model files kept next to the code. The models Petrinaut ships in
@hashintel/petrinaut-core/exampleswere reachable only through the editor's Load example menu, so petrinaut.org had no page to link for them.Those models join the catalog.
/examples/<slug>and/embed/examples/<slug>serve them with the same routes, loaders, generated artifacts, and oEmbed support as the JSON models.Links
Changes
Test coverage
catalog.test.ts:oembed-endpoint.test.ts,oembed-discovery.test.ts:How to test
/examples/sir-epidemic-model/embed/examples/deployment-pipeline?scenario=scenario__incident_surge