MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / HealthIndicator

Function HealthIndicator

packages/react/src/pages/admin-users.tsx:132–147  ·  view source on GitHub ↗

The shared health vocabulary, rendered from a stored verdict. * * Deliberately NOT `IntegrationHealthSummary`: that component probes upstream * on mount through the product plane, which is both the wrong plane here (an * admin is not the credential's owner) and the wrong behavior (opening an

(props: { readonly status: HealthStatus })

Source from the content-addressed store, hash-verified

130 * admin view must not fire traffic at every user's provider). This reads the
131 * `lastHealth` the admin payload already carries. */
132function HealthIndicator(props: { readonly status: HealthStatus }) {
133 const label = HEALTH_STATUS_LABEL[props.status];
134 return (
135 <span className="flex shrink-0 items-center gap-1.5" title={`Status: ${label}`}>
136 <span
137 className={`font-mono text-[11px] font-medium uppercase tracking-[0.08em] ${HEALTH_TEXT_CLASS[props.status]}`}
138 >
139 {label}
140 </span>
141 <span
142 aria-label={`Status: ${label}`}
143 className={`size-2 rounded-full ${HEALTH_INDICATOR_COLOR[props.status].dot}`}
144 />
145 </span>
146 );
147}
148
149// ── Integration icons ───────────────────────────────────────────────────────
150

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected