updateFilled method ✓ 100.0%

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

Metrics

LOC: 16 Complexity: 3 Params: 2 Coverage: 100.0% (6/6 lines, 0x executed)

Signature

updateFilled(field: FormField, result: GenerationResult)

Source Code

    updateFilled(field: FormField, result: GenerationResult) {
      const item = getOrCreateItem(field);
      const label = escapeTextContent(getFieldLabel(field));
      const sourceIcon = SOURCE_ICON[result.source] ?? "✅";
      const valuePrev = escapeTextContent(
        result.value.length > 20
          ? result.value.slice(0, 20) + "…"
          : result.value,
      );
      item.className = "fa-progress-item filled";
      item.innerHTML = `
        <span class="fa-progress-icon">${sourceIcon}</span>
        <span class="fa-progress-label">${label}</span>
        <span class="fa-progress-badge">✓ ${valuePrev}</span>
      `;
    },

Dependencies (Outgoing)

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

No incoming dependencies.