Embed the new OWS Editor into the website - #10
Conversation
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
✅ Deploy Preview for openworkflow ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
8dd9945 to
2975cee
Compare
There was a problem hiding this comment.
Pull request overview
This PR integrates the Open Workflow Specification (OWS) Diagram Editor into the website’s landing-page examples section, rendering a visual workflow preview alongside each YAML example.
Changes:
- Added a React-based
OWSEditorcomponent that wraps@openworkflowspec/diagram-editor. - Updated the homepage examples tab UI to show YAML and the embedded editor side-by-side, plus a small tab-change script to trigger “fit view”.
- Added Astro React integration + React/ReactDOM dependencies and adjusted TS config for JSX.
Reviewed changes
Copilot reviewed 5 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
tsconfig.json |
Enables React JSX compilation settings needed for .tsx components. |
src/pages/index.astro |
Embeds the editor next to examples and adds a tab-change script; also includes large formatting/structural changes. |
src/components/OWSEditor.tsx |
Introduces the React wrapper around DiagramEditor. |
package.json |
Adds React + Astro React integration + diagram editor dependencies. |
astro.config.mjs |
Registers the @astrojs/react integration. |
.nvmrc |
Updates the Node version used for local/dev tooling. |
.gitignore |
Modifies JetBrains ignore behavior (currently in a problematic way). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@kumaradityaraj Thanks for the PR, it looks really nice and will be great to promote the editor as well. Co pilot has a few comments to address and I added a few more. Will wait to review the A few other things:
|
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
Signed-off-by: kumaradityaraj <sedulous.0007@gmail.com>
|
This PR is opened again here - #11 |
closes #5
Overview
This PR adds support for embedding the Workflow Editor directly into a webpage, allowing the editor to be integrated and rendered as part of an existing web application.
Screenshots