diff --git a/ui/src/components/health/health-audit-section.tsx b/ui/src/components/health/health-audit-section.tsx new file mode 100644 index 00000000..db4dfc8f --- /dev/null +++ b/ui/src/components/health/health-audit-section.tsx @@ -0,0 +1,93 @@ +import { type HealthGroup } from '@/hooks/use-health'; +import { HealthCheckItem } from './health-check-item'; +import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'; +import { ChevronRight, ShieldCheck, Info } from 'lucide-react'; +import { useState } from 'react'; +import { cn } from '@/lib/utils'; +import { useTranslation } from 'react-i18next'; + +interface HealthAuditSectionProps { + groups: HealthGroup[]; +} + +export function HealthAuditSection({ groups }: HealthAuditSectionProps) { + const { t } = useTranslation(); + + return ( +
{check.message}
+{check.fix}
+
+ Status
-- {overallStatus === 'ok' && 'All systems nominal'} - {overallStatus === 'warning' && 'Attention required'} - {overallStatus === 'error' && 'Errors detected'} -
-- {data.summary.passed}/{data.summary.total - data.summary.info} non-informational - checks passing -
++ {t('health.optimalStateDesc')} +
+