fix: severity stats scoped to non-terminal statuses + consistent type icons (UI-DASHBOARD-AUDIT #2, #4)
This commit is contained in:
parent
937b3a5b6d
commit
da455b77a5
2 changed files with 15 additions and 9 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue