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 })
| 130 | * admin view must not fire traffic at every user's provider). This reads the |
| 131 | * `lastHealth` the admin payload already carries. */ |
| 132 | function 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 |
nothing calls this directly
no outgoing calls
no test coverage detected