Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
840836d
Integrated Monaco Code Editor, Completing Issue #192
saksham-gera Mar 21, 2025
c55d9de
Fixing Issue #209, label must contain some text
saksham-gera Mar 21, 2025
2a60f4f
Fixing Issue #208, Unknown Property ‘directory’ in React File Input i…
saksham-gera Mar 21, 2025
c76910a
Merge pull request #212 from saksham-gera/issue209
pradeeban Mar 21, 2025
f35acd4
Merge pull request #211 from saksham-gera/issue208
pradeeban Mar 21, 2025
91cc8fe
Merge pull request #210 from saksham-gera/issue192
pradeeban Mar 21, 2025
804d55b
Update README.md
pradeeban Mar 21, 2025
0604c8e
fixed workflow failure
saksham-gera Mar 21, 2025
a45405e
Merge pull request #215 from saksham-gera/issue192
pradeeban Mar 21, 2025
96d109c
Workflow Issue Fixed
saksham-gera Mar 22, 2025
8e52f16
Alert Issue Fixed #217
saksham-gera Mar 22, 2025
655aef0
Prompt Issue Fixed #218
saksham-gera Mar 22, 2025
0898a3d
Import order fixed
saksham-gera Mar 22, 2025
767865e
Merge pull request #219 from saksham-gera/update_workflow
pradeeban Mar 22, 2025
b69af74
Merge pull request #221 from saksham-gera/alert_issue
pradeeban Mar 22, 2025
3b1dc24
Merge pull request #222 from saksham-gera/prompt_issue
pradeeban Mar 22, 2025
15bdf88
Fixed Order Of Imports in FileEdit.jsx
saksham-gera Mar 22, 2025
fad247a
Merge pull request #223 from saksham-gera/dev
pradeeban Mar 22, 2025
0b787f1
Merge pull request #224 from ControlCore-Project/dev
pradeeban Mar 22, 2025
f80c895
Bump the pip group across 1 directory with 5 updates
dependabot[bot] Mar 22, 2025
aa4bb34
Bump the npm_and_yarn group across 1 directory with 14 updates
dependabot[bot] Mar 22, 2025
18473f2
Update buildAndDeploy.yml
saksham-gera Mar 22, 2025
55f77a9
Merge pull request #226 from saksham-gera/dev
pradeeban Mar 22, 2025
626524b
Merge pull request #227 from ControlCore-Project/dev
pradeeban Mar 22, 2025
df0215d
Zoom Component Will now update zoom level on zooming through mouse co…
saksham-gera Apr 1, 2025
23eeb04
Merge pull request #229 from saksham-gera/dev
pradeeban Apr 1, 2025
0b4af00
Merge pull request #216 from ControlCore-Project/dependabot/pip/serve…
pradeeban Apr 1, 2025
54a16e1
Added FullScreen Functionality
saksham-gera Apr 4, 2025
d260a9c
Merge pull request #231 from saksham-gera/dev
pradeeban Apr 4, 2025
280b0f7
Functionality of loading graphs from previous sessions on hold
saksham-gera Apr 16, 2025
99bddc2
Merge pull request #234 from saksham-gera/dev
pradeeban Apr 16, 2025
53327b1
Added missing dotenv
saksham-gera Apr 17, 2025
a89b0f9
Merge pull request #236 from saksham-gera/dev
pradeeban Apr 19, 2025
650699d
Bump the pip group across 1 directory with 5 updates
dependabot[bot] May 17, 2025
f540d09
Merge branch 'dev' into dependabot/pip/server/pip-3510da4062
pradeeban Sep 29, 2025
164f439
Merge pull request #238 from ControlCore-Project/dependabot/pip/serve…
pradeeban Sep 29, 2025
0bf9eb4
Merge pull request #225 from ControlCore-Project/dependabot/npm_and_y…
pradeeban Oct 5, 2025
56e535e
Merge pull request #239 from ControlCore-Project/dev
pradeeban Oct 5, 2025
3f0f158
Bump the npm_and_yarn group across 1 directory with 5 updates
dependabot[bot] Oct 5, 2025
9e1f348
Bump the pip group across 1 directory with 5 updates
dependabot[bot] Oct 28, 2025
55b4405
Add util
pradeeban Oct 28, 2025
86803c9
Add timers-browserify.
pradeeban Oct 28, 2025
caf5063
Attempt to fix deployment
pradeeban Oct 28, 2025
f1d4ddb
Merge branch 'dev' into dependabot/pip/server/pip-d578abb6d7
pradeeban Dec 17, 2025
e77a3af
Merge pull request #241 from ControlCore-Project/dependabot/pip/serve…
pradeeban Dec 17, 2025
b0aec6d
Merge branch 'dev' into dependabot/npm_and_yarn/npm_and_yarn-0d75c3b79c
pradeeban Dec 17, 2025
41af9a7
Merge pull request #240 from ControlCore-Project/dependabot/npm_and_y…
pradeeban Dec 17, 2025
7fe23b3
fix: edges with same prefix(integer) allowed
GREENRAT-K405 Dec 18, 2025
780f9f2
Merge pull request #246 from GREENRAT-K405/dev
pradeeban Dec 18, 2025
460e1f6
fix: solve horizontal overflowing problem of text in node
GREENRAT-K405 Dec 22, 2025
bb1a501
fix: solve horizontal overflowing problem of text in node
GREENRAT-K405 Dec 22, 2025
554690a
Merge pull request #247 from GREENRAT-K405/dev
pradeeban Dec 23, 2025
d37a063
fix: Abort error in Open, Save, Save as on pressing cancel button
GREENRAT-K405 Dec 27, 2025
5eadbb8
Merge pull request #251 from GREENRAT-K405/dev
pradeeban Dec 28, 2025
3130fad
node aligns with the grids of graph
GREENRAT-K405 Dec 30, 2025
4962e05
stricter logic for snapping of nodes with grids
GREENRAT-K405 Dec 30, 2025
4e66b26
remove trailing space error
GREENRAT-K405 Dec 30, 2025
b0aaf16
remove logs from previous pull req used for testing
GREENRAT-K405 Dec 30, 2025
f2ce0ac
remove unimportant logs from fileBrowser.jsx , fileEdit.jsx , 5-load-…
GREENRAT-K405 Jan 3, 2026
222a775
Merge pull request #252 from GREENRAT-K405/dev
pradeeban Jan 7, 2026
9bc1dac
Improve the edges: add curve when nodes not aligned, improved visibility
GREENRAT-K405 Jan 11, 2026
d7d569f
fix: edges placement when nodes are closed, increased distance betwee…
GREENRAT-K405 Jan 11, 2026
8dc73af
Merge pull request #263 from GREENRAT-K405/dev
pradeeban Jan 12, 2026
d0c8982
add pop up
GREENRAT-K405 Jan 16, 2026
ec5c14a
add pop up to upload directory feature
GREENRAT-K405 Jan 16, 2026
e783b34
update close tab pop up logic
GREENRAT-K405 Jan 16, 2026
841905b
update upload directory pop-up
GREENRAT-K405 Jan 16, 2026
04a7711
update upload directory pop-up
GREENRAT-K405 Jan 16, 2026
8936f42
Merge pull request #268 from GREENRAT-K405/dev
pradeeban Jan 16, 2026
6175826
add darkmode to concore editor
GREENRAT-K405 Jan 19, 2026
a43387d
complete DARK MODE
GREENRAT-K405 Jan 20, 2026
0eb0bf9
update edges dark mode
GREENRAT-K405 Jan 21, 2026
7a87a02
update darkmode: removed unnecessary comments
GREENRAT-K405 Jan 21, 2026
b215d7c
complete dark mode UI
GREENRAT-K405 Jan 21, 2026
7fd3e5f
Merge pull request #269 from GREENRAT-K405/dev
pradeeban Jan 24, 2026
f4d8af2
add gemini ai pull request review
GREENRAT-K405 Feb 11, 2026
d885d21
Refactor: Replace UA sniffing with feature detection
avinxshKD Feb 11, 2026
fe18fd0
Merge branch 'origin/dev' into fix/ua-sniffing
avinxshKD Feb 11, 2026
9292dc7
Fix: Remove incorrect fallback that disabled feature detection
avinxshKD Feb 11, 2026
b21bc32
Style: Revert formatting to match upstream
avinxshKD Feb 11, 2026
fb62ad6
Cleanup: Remove accidental file and fix type
avinxshKD Feb 11, 2026
abb9ba0
add greeings bot
GREENRAT-K405 Feb 11, 2026
d007afe
Merge pull request #275 from GREENRAT-K405/dev
pradeeban Feb 11, 2026
59ce547
Merge pull request #276 from avinxshKD/fix/ua-sniffing
pradeeban Feb 11, 2026
35a95d9
update uppercase/lowercase
GREENRAT-K405 Feb 11, 2026
febb68d
Merge pull request #279 from GREENRAT-K405/feat/greetings-first-time
pradeeban Feb 11, 2026
8de285b
add missing pr-review.yaml file
GREENRAT-K405 Feb 11, 2026
5adc49d
Merge pull request #284 from GREENRAT-K405/dev
pradeeban Feb 12, 2026
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
44 changes: 17 additions & 27 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
module.exports = {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false, // allows using without a separate babel config
babelOptions: {
presets: ['@babel/preset-react'], // React JSX support
},
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
env: {
browser: true,
es2021: true,
Expand All @@ -8,29 +19,13 @@ module.exports = {
'plugin:react/recommended',
'airbnb',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
indent: [
'error',
4,
],
'react/jsx-indent': [
'error',
4,
],
'react/jsx-indent-props': [
'error',
4,
],
indent: ['error', 4],
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'max-len': [
'error',
{
Expand All @@ -54,14 +49,9 @@ module.exports = {
},
overrides: [
{
files: [
'*ML.js',
],
files: ['*ML.js'],
rules: {
indent: [
'error',
2,
],
indent: ['error', 2],
},
},
],
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/PR-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: AI Code Reviewer

on:
issue_comment:
types: [created]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
gemini-code-review:
runs-on: ubuntu-latest
if: |
github.event.issue.pull_request &&
contains(github.event.comment.body, '/gemini-review')
steps:
- name: PR Info
run: |
echo "Comment: ${{ github.event.comment.body }}"

Check failure

Code scanning / CodeQL

Code injection Critical

Potential code injection in
${ github.event.comment.body }
, which may be controlled by an external user (
issue_comment
).

Copilot Autofix

AI about 24 hours ago

General fix: Avoid using ${{ github.event.comment.body }} directly in a run step. Instead, assign it to an environment variable in the step’s env: block using expression syntax, and reference that variable using shell syntax ($VAR) inside the script.

Concrete best fix here:

  • In the PR Info step (lines 19–24), move github.event.comment.body, github.event.issue.number, and github.repository into environment variables via an env: block.
  • Update the run script to use $COMMENT_BODY, $ISSUE_NUMBER, and $REPOSITORY instead of ${{ ... }}.
  • This changes only how values are passed into the shell, not what is logged, so functionality remains the same.

Changes are limited to the PR Info step in .github/workflows/PR-review.yaml around lines 19–24. No new imports or external dependencies are needed.

Suggested changeset 1
.github/workflows/PR-review.yaml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/PR-review.yaml b/.github/workflows/PR-review.yaml
--- a/.github/workflows/PR-review.yaml
+++ b/.github/workflows/PR-review.yaml
@@ -17,10 +17,14 @@
       contains(github.event.comment.body, '/gemini-review')
     steps:
       - name: PR Info
+        env:
+          COMMENT_BODY: ${{ github.event.comment.body }}
+          ISSUE_NUMBER: ${{ github.event.issue.number }}
+          REPOSITORY: ${{ github.repository }}
         run: |
-          echo "Comment: ${{ github.event.comment.body }}"
-          echo "Issue Number: ${{ github.event.issue.number }}"
-          echo "Repository: ${{ github.repository }}"
+          echo "Comment: $COMMENT_BODY"
+          echo "Issue Number: $ISSUE_NUMBER"
+          echo "Repository: $REPOSITORY"
 
       - name: Checkout Repo
         uses: actions/checkout@v3
EOF
@@ -17,10 +17,14 @@
contains(github.event.comment.body, '/gemini-review')
steps:
- name: PR Info
env:
COMMENT_BODY: ${{ github.event.comment.body }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPOSITORY: ${{ github.repository }}
run: |
echo "Comment: ${{ github.event.comment.body }}"
echo "Issue Number: ${{ github.event.issue.number }}"
echo "Repository: ${{ github.repository }}"
echo "Comment: $COMMENT_BODY"
echo "Issue Number: $ISSUE_NUMBER"
echo "Repository: $REPOSITORY"

- name: Checkout Repo
uses: actions/checkout@v3
Copilot is powered by AI and may make mistakes. Always verify output.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GREENRAT-K405 see if this solution makes sense (and if it does, please use that in your fix.)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pradeeban I have made changes in PR-review.yaml and will raise PR soon in all three repos.

echo "Issue Number: ${{ github.event.issue.number }}"
echo "Repository: ${{ github.repository }}"

- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: refs/pull/${{ github.event.issue.number }}/head

- name: Get PR Details
Comment on lines +25 to +31

Check failure

Code scanning / CodeQL

Checkout of untrusted code in trusted context High

Potential execution of untrusted code on a privileged workflow (
issue_comment
)
id: pr
run: |
PR_JSON=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.issue.number }})
echo "head_sha=$(echo $PR_JSON | jq -r .head.sha)" >> $GITHUB_OUTPUT
echo "base_sha=$(echo $PR_JSON | jq -r .base.sha)" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: truongnh1992/gemini-ai-code-reviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GEMINI_MODEL: gemini-2.5-flash
EXCLUDE: "*.md,*.txt,package-lock.json"

4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
node-version: [14.x]
node-version: [18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

Expand All @@ -24,4 +24,4 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: NODE_OPTIONS=--openssl-legacy-provider npm run build --if-present
17 changes: 12 additions & 5 deletions .github/workflows/buildAndDeploy.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
name: Build and Deploy

on: workflow_dispatch

jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Clear npm cache
run: npm cache clean --force

- name: Install and Build 🔧
run: |
export NODE_OPTIONS=--openssl-legacy-provider
npm ci
npm run build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.3
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.
branch: gh-pages
folder: build
41 changes: 41 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Greetings

on:
pull_request_target:
types: [opened]
issues:
types: [opened]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v3
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}

issue_message: |
👋 Welcome to the CONTROL-CORE Project, @${{ github.actor }}! Thank you for opening your first issue in concore-editor.
We appreciate your contribution to the organization and will review it as soon as possible.

Before we get started, please check out these resources:
- 📚 [Project Documentation](https://control-core.readthedocs.io/)
- 📘 [Contribution Guidelines](https://github.com/ControlCore-Project/concore/blob/main/CONTRIBUTING.md)
- 📜 [Code of Conduct](https://github.com/ControlCore-Project/concore/blob/main/CODE_OF_CONDUCT.md)

pr_message: |
🎉 Welcome aboard, @${{ github.actor }}! Thank you for your first pull request in concore-editor.

Please ensure that you are contributing to the **dev** branch.

Your contribution means a lot to us. We'll review it shortly.

Please ensure you have reviewed our:
- 📚 [Project Documentation](https://control-core.readthedocs.io/)
- 📘 [Contribution Guidelines](https://github.com/ControlCore-Project/concore/blob/main/CONTRIBUTING.md)
- 📜 [Code of Conduct](https://github.com/ControlCore-Project/concore/blob/main/CODE_OF_CONDUCT.md)

If you have any questions, feel free to ask. Happy coding!
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The _concore_ Editor

This is a fork of DHGWorkflow, visual Directed Hypergraph Workflow Composer, finetuned to operate as a frontend for _concore_.
This is a Directed Hypergraph Workflow Composer, which operates as a visual frontend for _concore_.

Key Features of the _concore_ Editor:
* Export-import graph as a graphml file.
Expand All @@ -14,7 +14,7 @@ and many more!


## Installing it locally
This is a frontend tool built with React Js.
This is a tool built with React Js.
Steps to start it locally
1. Clone the repository
2. At the root of the repository, run the following commands:
Expand Down
31 changes: 31 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const webpack = require('webpack');

module.exports = {
webpack: {
configure: (webpackConfig) => {
const newConfig = { ...webpackConfig }; // copy the original config

newConfig.resolve = {
...newConfig.resolve,
fallback: {
...newConfig.resolve.fallback,
timers: require.resolve('timers-browserify'),
util: require.resolve('util/'),
stream: require.resolve('stream-browserify'),
buffer: require.resolve('buffer/'),
process: require.resolve('process/browser.js'),
},
};

newConfig.plugins = [
...newConfig.plugins,
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
process: 'process/browser.js',
}),
];

return newConfig;
},
},
};
Loading
Loading