⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import { useTranslations } from 'next-intl';
import type { InitiativeHealth } from '@/lib/api/endpoints/initiatives';
import { healthColor } from '@/utils/initiativeMeta';
// A small health signal: a colored dot plus its label. null renders a muted
// "No update". Used in the list column and the detail header.
export default function HealthBadge({ health }: { health: InitiativeHealth | null }) {
const t = useTranslations('initiatives.health');
return (
<span className="inline-flex items-center gap-1.5 text-sm text-muted-foreground">
<span
className="inline-block size-2.5 rounded-full"
style={{ backgroundColor: healthColor(health) }}
/>
{t(health ?? 'unknown')}
</span>
);
}