Enrich all destination and remote IP address views with GeoIP details

This commit is contained in:
vanne committed 2026-07-01 15:15:49 +07:00
1 parent 448736bc03
commit 6c8874afdc
5 files changed
+100 -14

No files matched your search

@@ -9,6 +9,7 @@ import {
useIpVersions, useRemoteIps, useMacBandwidth,
useFlowTypes, useFlowOrigins
} from "@/lib/api-advanced";
import { IpDetails } from "@/components/ui/IpDetails";
export default function NetworkInfrastructurePage() {
// Routing & Geography Tab
@@ -135,7 +136,15 @@ export default function NetworkInfrastructurePage() {
data={remoteIps}
isLoading={loadingRemoteIps}
columns={[
{ header: "IP Address", accessor: (row: any) => row.remote_ip },
{
header: "IP Address",
accessor: (row: any) => row.remote_ip ? (
<div className="flex flex-col gap-0.5">
<span className="font-mono text-xs text-blue-400">{row.remote_ip}</span>
<IpDetails ip={row.remote_ip} />
</div>
) : "—"
},
{ header: "IP Version", accessor: (row) => `IPv${row.ip_version}` },
{ header: "Download", accessor: (row) => formatBytes(row.download) },
{ header: "Upload", accessor: (row) => formatBytes(row.upload) },