diff --git a/frontend/src/components/workflow/panels/PlaceholderPicker.jsx b/frontend/src/components/workflow/panels/PlaceholderPicker.jsx index 1f9b163..d40e983 100644 --- a/frontend/src/components/workflow/panels/PlaceholderPicker.jsx +++ b/frontend/src/components/workflow/panels/PlaceholderPicker.jsx @@ -375,13 +375,14 @@ function extractWorkflowPlaceholders(nodes) { // Signals und Fragen für Analysis Nodes if (node.type === 'analysis' && node.data.questions && node.data.questions.length > 0) { node.data.questions.forEach((q, qIdx) => { + const questionId = q.id || `q${qIdx + 1}` const questionType = q.type || `q${qIdx + 1}` const questionText = q.question || `Frage ${qIdx + 1}` // Signal-Platzhalter (Antwort) placeholders.push({ placeholder: `{{ ${nodeId}.signal_${questionType} }}`, - description: `${nodeLabel} - Signal: ${questionText.substring(0, 50)}${questionText.length > 50 ? '...' : ''}`, + description: `${nodeLabel} (${questionId}) - Signal ${questionType}: ${questionText.substring(0, 40)}${questionText.length > 40 ? '...' : ''}`, icon: '📊', category: 'Workflow - Signals' }) @@ -389,7 +390,7 @@ function extractWorkflowPlaceholders(nodes) { // Frage-Text-Platzhalter placeholders.push({ placeholder: `{{ ${nodeId}.question_${questionType} }}`, - description: `${nodeLabel} - Frage-Text: ${questionText.substring(0, 50)}${questionText.length > 50 ? '...' : ''}`, + description: `${nodeLabel} (${questionId}) - Frage ${questionType}: ${questionText.substring(0, 40)}${questionText.length > 40 ? '...' : ''}`, icon: '❓', category: 'Workflow - Questions' })