-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
-
-
- Add
-
-
+
+
+
+ Add
+
@@ -87,20 +101,29 @@
components: {Editor, Drawer},
emits: ["update:modelValue"],
props: {
+ modelValue: {
+ type: Object,
+ default: () => {},
+ },
variables: {
- type: Array,
- default: () => []
- }
+ type: Object,
+ default: () => {},
+ },
+ label: {type: String, required: true},
+ required: {type: Boolean, default: false},
+ disabled: {type: Boolean, default: false},
},
created() {
- this.newVariables = this.variables ? this.variables : this.newVariables
+ this.newVariables = this.variables
+ ? Object.entries(this.variables)
+ : this.newVariables;
},
data() {
return {
- newVariables: ["",undefined],
+ newVariables: ["", undefined],
selectedIndex: undefined,
- isEditOpen: false
- }
+ isEditOpen: false,
+ };
},
methods: {
selectVariable(index) {
@@ -109,7 +132,10 @@
},
update() {
this.isEditOpen = false;
- this.$emit("update:modelValue", this.newVariables);
+ this.$emit(
+ "update:modelValue",
+ Object.fromEntries(this.newVariables),
+ );
},
updateIndex(event, index, edited) {
if (edited === "key") {
@@ -123,8 +149,11 @@
},
addVariable() {
this.newVariables.push(["", undefined]);
-
- }
+ },
},
};
+
+
diff --git a/ui/src/components/inputs/EditorView.vue b/ui/src/components/inputs/EditorView.vue
index 3051da293a1..3424d2f57e7 100644
--- a/ui/src/components/inputs/EditorView.vue
+++ b/ui/src/components/inputs/EditorView.vue
@@ -68,6 +68,9 @@
+
+ {{ isYamlEditorShown ? $t("no_code.labels.no_code") : $t("no_code.labels.yaml") }}
+
- persistViewType(editorViewTypes.SOURCE)"
- :read-only="isReadOnly"
- :navbar="false"
- />
-
-
-
- {{ $t("namespace_editor.empty.title") }}
- {{ $t("namespace_editor.empty.message") }}
-
-
+
+
+
+ {{ $t("namespace_editor.empty.title") }}
+ {{ $t("namespace_editor.empty.message") }}
+
+
+
+
+ onUpdateMetadata(e, true)"
+ @update-task="(e) => editorUpdate(e)"
+ />
@@ -173,6 +184,7 @@
@loading="loadingState"
@expand-subflow="onExpandSubflow"
@swapped-task="onSwappedTask"
+ @open-no-code="(params) => handleTopologyEditClick(params)"
:flow-graph="flowGraph"
:flow-id="flowId"
:namespace="namespace"
@@ -296,7 +308,7 @@
-
\ No newline at end of file
+.vueflow {
+ height: 100%;
+ width: 100%;
+ position: relative;
+}
+
diff --git a/ui/src/components/namespace/Namespace.vue b/ui/src/components/namespace/Namespace.vue
index 0dc37944be2..c5866cd4128 100644
--- a/ui/src/components/namespace/Namespace.vue
+++ b/ui/src/components/namespace/Namespace.vue
@@ -125,7 +125,7 @@
component: EditorView,
title: this.$t("editor"),
props: {
- tab: "editor",
+ tab: "edit",
isNamespace: true,
namespace: this.$route.params.id,
isReadOnly: false,
diff --git a/ui/src/components/onboarding/VueTour.vue b/ui/src/components/onboarding/VueTour.vue
index ba93738d562..27040c80105 100644
--- a/ui/src/components/onboarding/VueTour.vue
+++ b/ui/src/components/onboarding/VueTour.vue
@@ -299,7 +299,7 @@
params: {
namespace: "tutorial",
id: flows.value[activeFlow.value]?.id,
- tab: "editor",
+ tab: "edit",
},
});
store.commit("core/setGuidedProperties", {
diff --git a/ui/src/components/plugins/PluginSelect.vue b/ui/src/components/plugins/PluginSelect.vue
index 7e983ea1a52..85acbca433e 100644
--- a/ui/src/components/plugins/PluginSelect.vue
+++ b/ui/src/components/plugins/PluginSelect.vue
@@ -1,9 +1,9 @@
-
-
- {{ $t("search filters.filters") }}
-
-
-
-
- {{ $t("search filters.filters") }}
-
-
-
-
-
- {{ label }}
-
-
-
-
-
-
-
- isDrawerOpen = false"
- @deleted="removeSavedFilter"
- />
-
-
-
-
-
-
-
-
-
-
- {{ $t("search filters.save filter") }}
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ui/src/components/saved-filters/SavedFilter.vue b/ui/src/components/saved-filters/SavedFilter.vue
deleted file mode 100644
index 2c7d8627972..00000000000
--- a/ui/src/components/saved-filters/SavedFilter.vue
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
- {{ queryPart }}
-
-
-
- {{ label }}
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ui/src/components/settings/BasicSettings.vue b/ui/src/components/settings/BasicSettings.vue
index e4028032eb5..68a35cb88d4 100644
--- a/ui/src/components/settings/BasicSettings.vue
+++ b/ui/src/components/settings/BasicSettings.vue
@@ -30,6 +30,26 @@
+
+
+
+
+
+
{
- return JSON.parse(localStorage.getItem(storageKey)) ?? {}
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ui/src/stores/plugins.js b/ui/src/stores/plugins.js
index cebd1039f62..52e4ae6df65 100644
--- a/ui/src/stores/plugins.js
+++ b/ui/src/stores/plugins.js
@@ -94,7 +94,7 @@ export default {
return response.data;
})
},
- loadSchemaType(_, options) {
+ loadSchemaType(_, options = {type: "flow"}) {
return this.$http.get(`${apiUrlWithoutTenants()}/plugins/schemas/${options.type}`, {}).then(response => {
return response.data;
})
diff --git a/ui/src/stores/store.js b/ui/src/stores/store.js
index ae17325b8a9..3064c024b88 100644
--- a/ui/src/stores/store.js
+++ b/ui/src/stores/store.js
@@ -2,7 +2,6 @@ import api from "./api"
import auth from "./auth"
import core from "./core"
import execution from "./executions"
-import filters from "./filters";
import flow from "./flow"
import graph from "./graph"
import layout from "./layout"
@@ -23,7 +22,6 @@ export default {
modules: {
api,
core,
- filters,
flow,
template,
execution,
diff --git a/ui/src/translations/en.json b/ui/src/translations/en.json
index 62615a6fa00..1988132b960 100644
--- a/ui/src/translations/en.json
+++ b/ui/src/translations/en.json
@@ -744,6 +744,7 @@
"default_namespace": "Default Namespace",
"log_level": "Default Log Level",
"log_display": "Default Log Display",
+ "editor_type": "Defailt Editor Type",
"execute_flow": "Execute the Flow",
"execute_default_tab": "Default Execution Tab"
}
@@ -942,10 +943,10 @@
"behavior": "Behavior",
"concurrency": "Concurrency",
"no-executions-view": {
- "title": "Start automating with ",
- "sub_title": "Click on the Execute button to start your first workflow execution.",
- "guidance_desc": "Need guidance to execute your flow?",
- "guidance_sub_desc": "Follow the documentation for all the info you need."
+ "title": "Start automating with ",
+ "sub_title": "Click on the Execute button to start your first workflow execution.",
+ "guidance_desc": "Need guidance to execute your flow?",
+ "guidance_sub_desc": "Follow the documentation for all the info you need."
},
"execution_guide": {
"get_started": {
@@ -1058,6 +1059,47 @@
},
"custom value": "Custom value",
"chart": "Chart",
- "chart preview": "Chart preview"
+ "chart preview": "Chart preview",
+ "no_code": {
+ "adding": "+ Add a {what}",
+ "labels": {
+ "yaml": "YAML Editor",
+ "no_code": "No Code Editor"
+ },
+ "sections": {
+ "main": "Main properties",
+ "general": "General properties",
+ "tasks": "Tasks",
+ "triggers": "Triggers",
+ "error_handlers": "Error Handlers"
+ },
+ "fields": {
+ "main": {
+ "flow_id": "Flow ID",
+ "namespace": "Namespace",
+ "description": "Description"
+ },
+ "general": {
+ "retry": "Retry",
+ "labels": "Labels",
+ "inputs": "Inputs",
+ "outputs": "Outputs",
+ "variables": "Variables",
+ "concurrency": "Concurrency",
+ "plugin_defaults": "Plugin Defaults",
+ "disabled": "Disabled"
+ }
+ },
+ "creation": {
+ "tasks": "Add a task",
+ "triggers": "Add a trigger",
+ "error handlers": "Add an error handler",
+ "select": "Select a {section}"
+ },
+ "save": {
+ "tasks": "Save task",
+ "triggers": "Save trigger"
+ }
+ }
}
}
\ No newline at end of file
diff --git a/ui/src/translations/es.json b/ui/src/translations/es.json
index 835cd9e3175..46c00486b84 100644
--- a/ui/src/translations/es.json
+++ b/ui/src/translations/es.json
@@ -873,7 +873,7 @@
"see_all": "Ver todo",
"success_ratio_tooltip": "La Tasa de Éxito es la suma de ejecuciones en estado SUCCESS, CANCELLED y WARNING dividida por el número total de ejecuciones en un estado terminado.",
"failure_ratio_tooltip": "La proporción de Failed es la suma de ejecuciones FAILED, KILLED y RETRIED dividida por el número total de ejecuciones en un estado terminado.",
- "preview": "Vista previa del Dashboard"
+ "preview": "Vista previa del dashboard"
},
"delete_log": "¿Está seguro de que desea eliminar el log?",
"docs": "Documentos",
diff --git a/ui/src/translations/hi.json b/ui/src/translations/hi.json
index b89a8ff3f63..8962cb99ade 100644
--- a/ui/src/translations/hi.json
+++ b/ui/src/translations/hi.json
@@ -1043,6 +1043,6 @@
"source only": "केवल स्रोत",
"chart preview": "चार्ट पूर्वावलोकन",
"execution replayed": "इस execution को पुनः चलाया गया है।",
- "execution replay": "यह execution {originalId}
का पुनरावर्तन है।"
+ "execution replay": "यह निष्पादन {originalId}
का पुन: प्ले है।"
}
}
\ No newline at end of file
diff --git a/ui/src/translations/it.json b/ui/src/translations/it.json
index aa3562ed877..39a36abb954 100644
--- a/ui/src/translations/it.json
+++ b/ui/src/translations/it.json
@@ -873,7 +873,7 @@
"see_all": "Vedi tutto",
"success_ratio_tooltip": "Il Rapporto di Successo è la somma delle esecuzioni in stato SUCCESS, CANCELLED e WARNING divisa per il numero totale di esecuzioni in uno stato terminato.",
"failure_ratio_tooltip": "Il rapporto di errore è la somma delle esecuzioni FAILED, KILLED e RETRIED divisa per il numero totale di esecuzioni in uno stato terminato.",
- "preview": "Anteprima Dashboard"
+ "preview": "Anteprima dashboard"
},
"delete_log": "Sei sicuro di voler eliminare il log?",
"docs": "Documenti",
@@ -1041,7 +1041,7 @@
"execution restarted": "Questa esecuzione è stata riavviata {nbRestart} volta(e).",
"chart": "Grafico",
"source only": "Solo sorgente",
- "chart preview": "Anteprima del grafico",
+ "chart preview": "Anteprima grafico",
"execution replayed": "Questa esecuzione è stata ripetuta.",
"execution replay": "Questa esecuzione è una ripetizione di {originalId}
."
}
diff --git a/ui/src/translations/ko.json b/ui/src/translations/ko.json
index 9b5e9a6ce63..85049dfb861 100644
--- a/ui/src/translations/ko.json
+++ b/ui/src/translations/ko.json
@@ -1042,7 +1042,7 @@
"chart": "차트",
"source only": "소스 전용",
"chart preview": "차트 미리보기",
- "execution replayed": "이 실행은 재생되었습니다.",
+ "execution replayed": "이 실행은 재실행되었습니다.",
"execution replay": "이 실행은 {originalId}
의 재실행입니다."
}
}
\ No newline at end of file
diff --git a/ui/src/translations/pl.json b/ui/src/translations/pl.json
index a177d57074e..47d05723698 100644
--- a/ui/src/translations/pl.json
+++ b/ui/src/translations/pl.json
@@ -873,7 +873,7 @@
"see_all": "Zobacz wszystkie",
"success_ratio_tooltip": "Wskaźnik Sukcesu to suma wykonań w stanach SUCCESS, CANCELLED i WARNING podzielona przez całkowitą liczbę wykonań w stanie zakończonym.",
"failure_ratio_tooltip": "Stosunek niepowodzeń to suma wykonań w stanach FAILED, KILLED i RETRIED podzielona przez całkowitą liczbę wykonań w stanie zakończonym.",
- "preview": "Podgląd dashboardu"
+ "preview": "Podgląd Dashboardu"
},
"delete_log": "Czy na pewno chcesz usunąć log?",
"docs": "Dokumentacja",
diff --git a/ui/src/translations/ru.json b/ui/src/translations/ru.json
index 4b0a53b085d..22659a0f104 100644
--- a/ui/src/translations/ru.json
+++ b/ui/src/translations/ru.json
@@ -1039,8 +1039,8 @@
},
"custom value": "Пользовательское значение",
"execution restarted": "Это выполнение было перезапущено {nbRestart} раз(а).",
- "chart": "Диаграмма",
- "source only": "Только источник",
+ "chart": "График",
+ "source only": "Источник только",
"chart preview": "Предварительный просмотр диаграммы",
"execution replayed": "Это выполнение было воспроизведено.",
"execution replay": "Это выполнение является повтором {originalId}
."
diff --git a/ui/src/translations/zh_CN.json b/ui/src/translations/zh_CN.json
index bb23499d86b..389baa92315 100644
--- a/ui/src/translations/zh_CN.json
+++ b/ui/src/translations/zh_CN.json
@@ -1043,6 +1043,6 @@
"source only": "仅限来源",
"chart preview": "图表预览",
"execution replayed": "此执行已被重放。",
- "execution replay": "此执行是 {originalId}
的重放。"
+ "execution replay": "此执行是对{originalId}
的重放。"
}
}
\ No newline at end of file
diff --git a/ui/src/utils/constants.js b/ui/src/utils/constants.js
index 7bbd1dfbff0..6d437e8a544 100644
--- a/ui/src/utils/constants.js
+++ b/ui/src/utils/constants.js
@@ -36,10 +36,8 @@ export const storageKeys = {
DEFAULT_NAMESPACE: "defaultNamespace",
LATEST_NAMESPACE: "latestNamespace",
PAGINATION_SIZE: "paginationSize",
- EXECUTIONS_FILTERS: "executionsSavedFilters",
- FLOWS_FILTERS: "flowsSavedFilters",
- LOGS_FILTERS: "logsSavedFilters",
- IMPERSONATE: "impersonate"
+ IMPERSONATE: "impersonate",
+ EDITOR_VIEW_TYPE: "editorViewType",
}
export const executeFlowBehaviours = {