From 4c9e0e3c98e32e49e93065e9838aee5cbc9b3cd1 Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 11 Apr 2026 12:30:10 +0200 Subject: [PATCH] refactor: Simplify StartNode component to improve clarity - Removed the trimming of the analysis title, now displaying only the node label or defaulting to 'Start'. - Updated documentation to clarify the purpose of properties, specifically distinguishing between display on the canvas and analysis metadata. These changes enhance the readability and maintainability of the StartNode component in the workflow editor. --- frontend/src/components/workflow/nodes/StartNode.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/workflow/nodes/StartNode.jsx b/frontend/src/components/workflow/nodes/StartNode.jsx index 3a4907f..5f31a5f 100644 --- a/frontend/src/components/workflow/nodes/StartNode.jsx +++ b/frontend/src/components/workflow/nodes/StartNode.jsx @@ -3,16 +3,14 @@ import { Handle, Position } from 'reactflow' /** * StartNode - Workflow Einstiegspunkt * - * Properties: - * - data.label: Node-Label (default: "Start") - * - selected: Boolean (Node ist ausgewählt) + * - data.label: Anzeige auf dem Canvas (Node-Name) + * - data.analysis_title: nur für KI-Analyse-UI, nicht auf dem Canvas */ export function StartNode({ data, selected }) { - const title = (data.analysis_title || '').trim() return (
🚀
-
{title || data.label || 'Start'}
+
{data.label || 'Start'}
{/* Nur Source Handle (kein Target, da Einstiegspunkt) */}