MCPcopy
hub / github.com/ifandelse/machina.js / renderCheckCount

Function renderCheckCount

examples/connectivity/src/ui.ts:66–79  ·  view source on GitHub ↗
(checkCount: number, maxChecks: number)

Source from the content-addressed store, hash-verified

64 * Shows a message when max checks are reached.
65 */
66export function renderCheckCount(checkCount: number, maxChecks: number): void {
67 const el = document.getElementById("status-check");
68 if (!el) {
69 return;
70 }
71
72 if (checkCount >= maxChecks) {
73 el.textContent = `max checks reached (${maxChecks})`;
74 } else if (checkCount > 0) {
75 el.textContent = `check ${checkCount} of ${maxChecks}`;
76 } else {
77 el.textContent = "";
78 }
79}
80
81/**
82 * Clears the check count display. Called when the FSM returns to "online" so

Callers 1

main.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected