renderMethodBadge function presentation exported ✓ 100.0%
Last updated: 2026-03-04T23:21:38.426Z
Location
Metrics
LOC: 4
Complexity: 2
Params: 2
Coverage: 100.0% (2/2 lines, 7x executed)
Signature
renderMethodBadge(method: string, prefix = ""): : string
Summary
Renders a colored badge for a detection method.
Source Code
export function renderMethodBadge(method: string, prefix = ""): string {
const color = METHOD_COLORS[method] ?? "#334155";
return `<span class="${prefix}method-badge" style="background:${color};color:#fff">${escapeHtml(method)}</span>`;
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| escapeHtml | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| renderFieldRow | calls |