addFilling 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
addFilling(field: FormField)
Source Code
addFilling(field: FormField) {
const item = getOrCreateItem(field);
const label = escapeTextContent(getFieldLabel(field));
const method = field.detectionMethod ?? "html-fallback";
const methodIcon = METHOD_ICON[method] ?? "🔍";
item.className = "fa-progress-item filling";
item.innerHTML = `
<span class="fa-progress-icon"><span class="fa-spinner ai"></span></span>
<span class="fa-progress-label">${methodIcon} ${label}</span>
<span class="fa-progress-badge">${escapeTextContent(t("progressFilling"))}</span>
`;
},
Dependencies (Outgoing)
| Target | Type |
|---|---|
| getOrCreateItem | calls |
| escapeTextContent | calls |
| getFieldLabel | calls |
No incoming dependencies.