MCPcopy Create free account
hub / github.com/InverseUI/InverseUI-Recorder / enrichClick

Method enrichClick

modules/action/context/choice.js:11–18  ·  view source on GitHub ↗

* Enrich click data with choice group info if detected

(clickData, clickedElement)

Source from the content-addressed store, hash-verified

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.)

Callers

nothing calls this directly

Calls 1

detectChoiceGroupMethod · 0.95

Tested by

no test coverage detected