* Enrich click data with choice group info if detected
(clickData, clickedElement)
| 9 | * Enrich click data with choice group info if detected |
| 10 | */ |
| 11 | enrichClick(clickData, clickedElement) { |
| 12 | const choiceInfo = this.detectChoiceGroup(clickedElement); |
| 13 | if (choiceInfo) { |
| 14 | clickData.selection = choiceInfo; |
| 15 | console.log('🔘 Button group detected:', choiceInfo.question || '(no question)', '→', choiceInfo.value); |
| 16 | } |
| 17 | return clickData; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Detect if clicked element is part of a choice group (Yes/No, etc.) |
nothing calls this directly
no test coverage detected