Skip to content

Support Map zone #3

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 3 commits into from
Mar 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on: [push, pull_request]
jobs:
docs:
name: Documentation
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pip'
Expand All @@ -28,16 +28,16 @@ jobs:

python:
name: Python
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand All @@ -60,12 +60,12 @@ jobs:

ui-test:
name: Visual Regression
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
Expand Down Expand Up @@ -95,15 +95,15 @@ jobs:

- name: Upload Playwright Test assets
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-assets
path: |
tests/notebooks/test-results

- name: Upload Playwright Test report
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-report
path: |
Expand All @@ -117,7 +117,7 @@ jobs:

- name: Upload updated snapshots
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: updated-snapshots
path: tests/notebooks/tests
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ npm-debug.log
!.vscode/extensions.json

# do not upload static files
src/weas_widget/static/*
src/node_graph_widget/static/*

#
*.pdf
Expand Down
2 changes: 1 addition & 1 deletion js/rete_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export async function loadJSON(editor, area, layout, workgraphData) {
for (const nodeId in workgraphData.nodes) {
const nodeData = workgraphData.nodes[nodeId];
const node_type = nodeData['node_type'];
if (node_type === "WHILE" || node_type === "IF" || node_type === "ZONE") {
if (node_type === "WHILE" || node_type === "IF" || node_type === "ZONE" || node_type === "MAP") {
// find the node
const node = editor.nodeMap[nodeData.label];
const children = nodeData['children'];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scripts": {
"dev": "npm run build -- --sourcemap=inline --watch",
"build": "esbuild js/widget.tsx --minify --format=esm --bundle --outdir=src/widget/static",
"build": "esbuild js/widget.tsx --minify --format=esm --bundle --outdir=src/node_graph_widget/static",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion src/node_graph_widget/static/widget.css

This file was deleted.

450 changes: 0 additions & 450 deletions src/node_graph_widget/static/widget.js

This file was deleted.

1 change: 0 additions & 1 deletion src/widget/static/widget.css

This file was deleted.

450 changes: 0 additions & 450 deletions src/widget/static/widget.js

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading