diff --git a/AppImage/components/network-metrics.tsx b/AppImage/components/network-metrics.tsx index 1c2f3ca..21d0479 100644 --- a/AppImage/components/network-metrics.tsx +++ b/AppImage/components/network-metrics.tsx @@ -6,6 +6,8 @@ import { Badge } from "./ui/badge" import { Dialog, DialogContent, DialogHeader, DialogTitle } from "./ui/dialog" import { Wifi, Activity, Network, Router, AlertCircle, Zap } from "lucide-react" import useSWR from "swr" +import { NetworkTrafficChart } from "./network-traffic-chart" +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./ui/select" interface NetworkData { interfaces: NetworkInterface[] @@ -150,6 +152,7 @@ export function NetworkMetrics() { }) const [selectedInterface, setSelectedInterface] = useState(null) + const [timeframe, setTimeframe] = useState<"hour" | "day" | "week" | "month" | "year">("day") if (isLoading) { return ( @@ -289,6 +292,35 @@ export function NetworkMetrics() { + {/* Timeframe Selector */} +
+ +
+ + {/* Network Traffic Card with Chart */} + + + + + Network Traffic + + + + + + + {/* Physical Interfaces section */}