diff --git a/backend/version.py b/backend/version.py index 14cd65c..d29eab6 100644 --- a/backend/version.py +++ b/backend/version.py @@ -7,7 +7,7 @@ Semantic Versioning: MAJOR.MINOR.PATCH - PATCH: Bugfix, kleine Änderung, Refactor """ -APP_VERSION = "0.9o" +APP_VERSION = "0.9p" BUILD_DATE = "2026-04-09" DB_SCHEMA_VERSION = "20260406e" # Migration 041 diff --git a/frontend/src/components/workflow/panels/EndNodeConfig.jsx b/frontend/src/components/workflow/panels/EndNodeConfig.jsx new file mode 100644 index 0000000..fcaedf6 --- /dev/null +++ b/frontend/src/components/workflow/panels/EndNodeConfig.jsx @@ -0,0 +1,162 @@ +/** + * EndNodeConfig - Konfiguration für End Nodes + * + * Props: + * - node: React Flow Node object (type='end') + * - onChange: (nodeId, updates) => void + * - onOpenPlaceholderPicker: () => void (optional, für späteren Placeholder Picker) + * + * Features: + * - Output Mode: AUTO (concatenate all analyses) vs. TEMPLATE (custom Jinja2 template) + * - Template Editor (Textarea für Jinja2 syntax) + */ +export function EndNodeConfig({ node, onChange, onOpenPlaceholderPicker }) { + const outputMode = node.data.output_mode || 'auto' + const template = node.data.template || '' + + const handleModeChange = (e) => { + const newMode = e.target.value + onChange(node.id, { output_mode: newMode }) + + // Wenn zu TEMPLATE gewechselt wird und kein Template vorhanden, Beispiel einfügen + if (newMode === 'template' && !template) { + onChange(node.id, { + output_mode: newMode, + template: '# Finale Analyse\n\n{{ analysis_core }}\n\n---\nGeneriert mit Workflow Engine' + }) + } + } + + const handleTemplateChange = (e) => { + onChange(node.id, { template: e.target.value }) + } + + return ( +
+

End Node Konfiguration

+ + + + +
+ {outputMode === 'auto' && ( + <> + AUTO-Modus: Alle analysis_core Werte werden automatisch + zusammengefasst (backward compatible). + + )} + {outputMode === 'template' && ( + <> + TEMPLATE-Modus: Verwende Jinja2-Syntax für eigenes Output-Format. + Verfügbare Variablen: Alle Node-IDs und deren Outputs. + + )} +
+ + {outputMode === 'template' && ( + <> + +