diff --git a/app/pages/editor/index.vue b/app/pages/editor/index.vue index 6ed110c..8df6fee 100644 --- a/app/pages/editor/index.vue +++ b/app/pages/editor/index.vue @@ -169,86 +169,6 @@ > {{ flowsError }} -
-
- Nodes - - {{ nodeSelectorItems.length }} - -
-
- - - - - - - -

Kein Flow ausgewählt.

-
-
@@ -304,12 +224,31 @@ Node löschen - - Allgemein - Transitions - LLM Template - Metadata - +
+
+ +
+
@@ -705,6 +644,12 @@ const nodeFilter = reactive({ const selectedNodeId = ref(null) const inspectorTab = ref<'general' | 'transitions' | 'llm' | 'metadata'>('general') +const inspectorSections = [ + { value: 'general', label: 'Allgemein', icon: 'mdi-tune-variant' }, + { value: 'transitions', label: 'Transitions', icon: 'mdi-source-branch' }, + { value: 'llm', label: 'LLM Template', icon: 'mdi-robot-outline' }, + { value: 'metadata', label: 'Metadata', icon: 'mdi-text-box-search-outline' }, +] as const const nodeForm = ref(null) const nodeSnapshot = ref(null) const nodeSaving = ref(false) @@ -738,39 +683,6 @@ const phaseFilterOptions = computed(() => { return Array.from(phases) }) -const nodeSelectorItems = computed(() => { - if (!flowDetail.value) return [] - const query = nodeFilter.search.trim().toLowerCase() - const role = nodeFilter.role - const phase = nodeFilter.phase - const autopOnly = nodeFilter.autopOnly - return flowDetail.value.nodes - .slice() - .sort((a, b) => a.stateId.localeCompare(b.stateId)) - .map((node) => { - const autopCount = (node.transitions || []).filter((t) => t.autoTrigger).length - return { - id: node.stateId, - title: node.title, - summary: node.summary, - phase: node.phase, - role: node.role, - icon: node.layout?.icon, - autopCount, - matchesSearch: - !query || - [node.stateId, node.title, node.summary] - .filter(Boolean) - .some((entry) => entry!.toLowerCase().includes(query)), - matchesRole: role === 'all' || node.role === role, - matchesPhase: phase === 'all' || node.phase === phase, - matchesAuto: !autopOnly || autopCount > 0, - } - }) - .filter((node) => node.matchesSearch && node.matchesRole && node.matchesPhase && node.matchesAuto) - .map(({ matchesSearch, matchesRole, matchesPhase, matchesAuto, ...rest }) => rest) -}) - const canvasNodes = computed(() => { if (!flowDetail.value) return [] const flow = flowDetail.value.flow