diff --git a/src/app/(dashboard)/intelligence/page.tsx b/src/app/(dashboard)/intelligence/page.tsx index 5153634..3418107 100644 --- a/src/app/(dashboard)/intelligence/page.tsx +++ b/src/app/(dashboard)/intelligence/page.tsx @@ -9,6 +9,7 @@ import { } from "@/lib/api-advanced"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/Card"; import { DataTable, Column } from "@/components/ui/DataTable"; +import { IpDetails } from "@/components/ui/IpDetails"; import { Loader2, Bitcoin, Shield, Server, Lock, AlertTriangle, Key, Globe, Network, ShieldAlert } from "lucide-react"; export default function IntelligencePage() { @@ -123,7 +124,15 @@ export default function IntelligencePage() { columns={[ { header: "IP Address", accessor: (row: any) => row.ip_address }, { header: "VPN Type", accessor: (row: any) => row.vpn_type }, - { header: "Remote IP", accessor: (row: any) => row.remote_ip }, + { + header: "Remote IP", + accessor: (row: any) => row.remote_ip ? ( +
{row.mac_address} : '-' },
{ header: "App", accessor: (row) => row.app_label || '-' },
{ header: "Domain", accessor: (row) => row.domain || '-' },
diff --git a/src/components/ui/AgentDetailModal.tsx b/src/components/ui/AgentDetailModal.tsx
index 330b3e2..20bc773 100644
--- a/src/components/ui/AgentDetailModal.tsx
+++ b/src/components/ui/AgentDetailModal.tsx
@@ -4,6 +4,7 @@ import { useState, useEffect } from "react";
import { fetchAgentDetails, AgentDetails } from "@/lib/api";
import { fmtBytes } from "@/lib/utils";
import { DeviceDetailModal } from "@/components/ui/DeviceDetailModal";
+import { IpDetails } from "@/components/ui/IpDetails";
import {
Loader2, X, Server, Monitor, Activity, Globe, Shield,
Bell, Wifi, AlertTriangle, Lock, Unlock, ChevronRight,
@@ -242,8 +243,13 @@ export function AgentDetailModal({ agentUuid, agentLabel, onClose }: Props) {
{data.flows.map((f, i) => (
→ {v.remote_ip}
} + {v.remote_ip && ( +