From a989cb827650bf9d11847e60d45ec1a0c37a7204 Mon Sep 17 00:00:00 2001 From: Ayush Date: Fri, 20 Mar 2026 00:11:24 +0530 Subject: [PATCH] feat: add java icon for the language support Signed-off-by: Ayush --- .../CustomNodes/Code/CodeNode.js | 3 +++ .../DependencyGraph/DependencyGraphEChart.js | 3 +++ app/images/java.svg | 22 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 app/images/java.svg diff --git a/app/components/Workflow/DependencyGraph/CustomNodes/Code/CodeNode.js b/app/components/Workflow/DependencyGraph/CustomNodes/Code/CodeNode.js index 29c44425..6b7262c1 100644 --- a/app/components/Workflow/DependencyGraph/CustomNodes/Code/CodeNode.js +++ b/app/components/Workflow/DependencyGraph/CustomNodes/Code/CodeNode.js @@ -13,6 +13,7 @@ const ICON_TYPES = { LIBRARY: `${ICON_PATH}library.svg`, DATA: `${ICON_PATH}data.svg`, FIGURE: `${ICON_PATH}figure.svg`, + JAVA: `${ICON_PATH}java.svg`, }; /** @@ -29,6 +30,8 @@ function CodeNode({ node, renderType }) { iconUrl = ICON_TYPES.SAS; } else if (node.assetType === 'stata') { iconUrl = ICON_TYPES.STATA; + } else if (node.assetType === 'java') { + iconUrl = ICON_TYPES.JAVA; } else if (node.assetType === 'dependency') { iconUrl = ICON_TYPES.LIBRARY; } else if (node.assetType === Constants.DependencyType.DATA) { diff --git a/app/components/Workflow/DependencyGraph/DependencyGraphEChart.js b/app/components/Workflow/DependencyGraph/DependencyGraphEChart.js index bfb87d46..014acb77 100644 --- a/app/components/Workflow/DependencyGraph/DependencyGraphEChart.js +++ b/app/components/Workflow/DependencyGraph/DependencyGraphEChart.js @@ -19,6 +19,7 @@ const ICON_TYPES = { LIBRARY: `${ICON_PATH}library.svg`, DATA: `${ICON_PATH}data.svg`, FIGURE: `${ICON_PATH}figure.svg`, + JAVA: `${ICON_PATH}java.svg`, }; /** @@ -36,6 +37,8 @@ function getIcon(node) { iconUrl = ICON_TYPES.SAS; } else if (node.value === 'stata') { iconUrl = ICON_TYPES.STATA; + } else if (node.value === 'java') { + iconUrl = ICON_TYPES.JAVA; } else if (node.value === 'dependency') { iconUrl = ICON_TYPES.LIBRARY; } else if (node.value === Constants.DependencyType.DATA) { diff --git a/app/images/java.svg b/app/images/java.svg new file mode 100644 index 00000000..0a1d2d52 --- /dev/null +++ b/app/images/java.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file