diff --git a/apps/web/src/components/lookup/lookup-matches-grid.tsx b/apps/web/src/components/lookup/lookup-matches-grid.tsx index e8c0754..f4094e8 100644 --- a/apps/web/src/components/lookup/lookup-matches-grid.tsx +++ b/apps/web/src/components/lookup/lookup-matches-grid.tsx @@ -57,7 +57,11 @@ export function LookupMatchesGrid({ cell: ({ row }) => ( ), diff --git a/apps/web/src/components/lookup/lookup-summary-kpi.tsx b/apps/web/src/components/lookup/lookup-summary-kpi.tsx index b2839ed..4e74028 100644 --- a/apps/web/src/components/lookup/lookup-summary-kpi.tsx +++ b/apps/web/src/components/lookup/lookup-summary-kpi.tsx @@ -1,4 +1,4 @@ -import { Layers, ListChecks, Radar } from 'lucide-react' +import { Globe, Layers, ListChecks, Radar } from 'lucide-react' import { KpiStatGrid, type KpiStatItem } from '@/components/reui-kit' import type { LookupResponse } from '@/types/api' @@ -10,6 +10,7 @@ import type { LookupResponse } from '@/types/api' export function LookupSummaryKpi({ data }: { data: LookupResponse }) { const entryCount = data.matches.filter((m) => m.layer === 'entry').length const snapshotCount = data.matches.filter((m) => m.layer === 'snapshot').length + const resolvedCount = data.resolved_ips?.length ?? 0 const items: KpiStatItem[] = [ { @@ -41,6 +42,17 @@ export function LookupSummaryKpi({ data }: { data: LookupResponse }) { }, ] + if (data.query_kind === 'domain') { + items.push({ + id: 'resolved', + label: 'DNS IP', + value: resolvedCount, + hint: resolvedCount > 0 ? data.resolved_ips?.slice(0, 3).join(', ') : 'нет A/AAAA', + icon: , + iconClassName: 'bg-primary text-primary-foreground [&_svg]:text-primary-foreground', + }) + } + return (