From 75e5e6f97e1c2604233e88ba211e1e7d7f52a335 Mon Sep 17 00:00:00 2001 From: Md Afiq Iskandar Date: Mon, 7 Jul 2025 17:53:20 +0800 Subject: [PATCH] Refactor Variable Selection in Process Flow Components - Replaced select dropdowns with VariableBrowser component in ApiNodeConfiguration, BusinessRuleNodeConfiguration, FormNodeConfiguration, GatewayConditionManager, NotificationNodeConfiguration, and other relevant components for improved variable management. - Enhanced user experience by allowing variable creation directly within the VariableBrowser, streamlining the process of selecting and managing variables. - Updated related methods to ensure proper handling of variable selection and insertion across components, maintaining consistency in functionality. - Improved code clarity and maintainability by consolidating variable selection logic into the new VariableBrowser component. --- .../process-flow/ApiNodeConfiguration.vue | 95 +-- .../BusinessRuleNodeConfiguration.vue | 564 ++++++++++++++++-- .../process-flow/FormNodeConfiguration.vue | 50 +- .../process-flow/GatewayConditionManager.vue | 20 +- .../NotificationNodeConfiguration.vue | 97 ++- components/process-flow/VariableBrowser.vue | 468 +++++++++++++++ 6 files changed, 1114 insertions(+), 180 deletions(-) create mode 100644 components/process-flow/VariableBrowser.vue diff --git a/components/process-flow/ApiNodeConfiguration.vue b/components/process-flow/ApiNodeConfiguration.vue index 7a81592..2a87f85 100644 --- a/components/process-flow/ApiNodeConfiguration.vue +++ b/components/process-flow/ApiNodeConfiguration.vue @@ -62,19 +62,13 @@
- + Request Body
- +
- - - - Create - + />

API response will be stored in this global variable for use in later steps @@ -209,31 +178,12 @@

- - - - Create - + />

Any API errors will be stored in this variable for error handling @@ -325,6 +275,7 @@ \ No newline at end of file + \ No newline at end of file diff --git a/components/process-flow/FormNodeConfiguration.vue b/components/process-flow/FormNodeConfiguration.vue index 72f4df2..ebb8219 100644 --- a/components/process-flow/FormNodeConfiguration.vue +++ b/components/process-flow/FormNodeConfiguration.vue @@ -123,12 +123,12 @@

-

The source variable containing the data @@ -227,28 +227,13 @@

-
- - - - -
+

The target variable to store form data

@@ -330,12 +315,12 @@
-

Variable to check

@@ -609,6 +594,7 @@ import { ref, computed, watch, nextTick } from 'vue'; import { useProcessBuilderStore } from '@/stores/processBuilder'; import FormSelector from './FormSelector.vue'; +import VariableBrowser from './VariableBrowser.vue'; import { Icon } from '#components'; const props = defineProps({ diff --git a/components/process-flow/GatewayConditionManager.vue b/components/process-flow/GatewayConditionManager.vue index b6e2057..05c84d6 100644 --- a/components/process-flow/GatewayConditionManager.vue +++ b/components/process-flow/GatewayConditionManager.vue @@ -1,5 +1,7 @@ + + + + \ No newline at end of file