Skip to content

Conversation

Gyrych
Copy link
Owner

@Gyrych Gyrych commented Sep 9, 2025

Integrate a minimal Rete.js workflow editor into the Webview panel to allow users to visually design and generate code for hardware workflows.

This PR sets up the Webview with Rete.js v1 and its Vue render, Connection, and Area plugins, loaded as local UMD builds. It introduces four specified node types (GPIO In, GPIO Out, UART, Task) with basic drag-and-drop and connection capabilities. A "生成代码" (Generate Code) button is also added to send the current graph's JSON data to the extension backend for processing.


Open in Cursor Open in Web

This commit introduces the visual workflow editor using Rete.js. It includes:
- Rete.js and its plugins for node-based editing.
- Custom node components for GPIO, UART, and Task.
- Webview integration to display and interact with the editor.
- Functionality to add nodes, generate code, and handle messages from the webview.
- Styling for the editor and toolbar.

Co-authored-by: gyrych <gyrych@qq.com>
Copy link

cursor bot commented Sep 9, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants