updateDetected method ✓ 100.0%

Last updated: 2026-03-04T23:21:38.399Z

Metrics

LOC: 12 Complexity: 3 Params: 1 Coverage: 100.0% (4/4 lines, 0x executed)

Signature

updateDetected(field: FormField)

Source Code

    updateDetected(field: FormField) {
      const item = getOrCreateItem(field);
      const label = escapeTextContent(getFieldLabel(field));
      const method = field.detectionMethod ?? "html-fallback";
      const icon = METHOD_ICON[method] ?? "🔍";
      item.className = "fa-progress-item detected";
      item.innerHTML = `
        <span class="fa-progress-icon">${icon}</span>
        <span class="fa-progress-label">${label}</span>
        <span class="fa-progress-badge">${escapeTextContent(field.fieldType)} ${escapeTextContent(method)}</span>
      `;
    },

Dependencies (Outgoing)

graph LR updateDetected["updateDetected"] getOrCreateItem["getOrCreateItem"] escapeTextContent["escapeTextContent"] getFieldLabel["getFieldLabel"] updateDetected -->|calls| getOrCreateItem updateDetected -->|calls| escapeTextContent updateDetected -->|calls| getFieldLabel style updateDetected fill:#dbeafe,stroke:#2563eb,stroke-width:2px click updateDetected "9b49f309b5fbb5e7.html" click getOrCreateItem "be177131e457a774.html" click escapeTextContent "2d67e190a10f9002.html" click getFieldLabel "77b70ce74ccfd025.html"
TargetType
getOrCreateItem calls
escapeTextContent calls
getFieldLabel calls

No incoming dependencies.