Watch
1
0
Fork
You've already forked RedFlag
0

fix: severity stats scoped to non-terminal statuses + consistent type icons (UI-DASHBOARD-AUDIT #2, #4)

This commit is contained in:
Fimeg 2026-06-11 08:45:27 -04:00
commit da455b77a5
2 changed files with 15 additions and 9 deletions

View file

@ -10,6 +10,7 @@ import {
Clock,
} from 'lucide-react';
import { useDashboardStats } from '@/hooks/useStats';
import { getPackageTypeIcon } from '@/lib/utils';
import { useServerKeySecurity } from '@/hooks/useSecurity';
import StackDriftPanel from '@/components/StackDriftPanel';
@ -63,7 +64,7 @@ const Dashboard: React.FC = () => {
const updateTypeBreakdown = Object.entries(stats?.updates_by_type ?? {}).map(([type, count]) => ({
type: type.charAt(0).toUpperCase() + type.slice(1),
value: count,
icon: type === 'apt' ? '📦' : type === 'docker' ? '🐳' : '📋',
icon: getPackageTypeIcon(type),
}));
return (