diff --git a/ui/src/components/health/health-priority-card.tsx b/ui/src/components/health/health-priority-card.tsx index e7ec29ac..83c600a5 100644 --- a/ui/src/components/health/health-priority-card.tsx +++ b/ui/src/components/health/health-priority-card.tsx @@ -1,4 +1,12 @@ -import { AlertCircle, AlertTriangle, Copy, Terminal, Wrench, ChevronRight } from 'lucide-react'; +import { + AlertCircle, + AlertTriangle, + Copy, + Terminal, + Wrench, + ChevronRight, + RefreshCw, +} from 'lucide-react'; import { Button } from '@/components/ui/button'; import { motion, AnimatePresence } from 'framer-motion'; import { useFixHealth, type HealthCheck } from '@/hooks/use-health'; @@ -14,7 +22,8 @@ interface HealthPriorityCardProps { export function HealthPriorityCard({ check }: HealthPriorityCardProps) { const { t } = useTranslation(); const fixMutation = useFixHealth(); - const [isExpanded, setIsExpanded] = useState(true); + const hasContent = !!(check.details || check.fix || check.fixable); + const [isExpanded, setIsExpanded] = useState(false); const isError = check.status === 'error'; const Icon = isError ? AlertCircle : AlertTriangle; @@ -44,7 +53,10 @@ export function HealthPriorityCard({ check }: HealthPriorityCardProps) {
{check.message}
++ {check.message} +