From 394be011459bd7adb020edf0f1b012dedc7134f9 Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Mon, 9 Mar 2026 21:57:10 -0500 Subject: [PATCH] fix(frontend): default ping/traceroute target to 8.8.8.8 The target input showed "8.8.8.8" as placeholder text but the actual value was empty. Clicking Ping/Traceroute silently returned because the empty target guard fired. Users saw the placeholder and assumed the tool was broken. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/config/PingTool.tsx | 2 +- frontend/src/components/config/TracerouteTool.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/config/PingTool.tsx b/frontend/src/components/config/PingTool.tsx index 802f28b..f3621a3 100644 --- a/frontend/src/components/config/PingTool.tsx +++ b/frontend/src/components/config/PingTool.tsx @@ -34,7 +34,7 @@ interface PingStats { } export function PingTool({ tenantId, deviceId }: ConfigPanelProps) { - const [target, setTarget] = useState('') + const [target, setTarget] = useState('8.8.8.8') const [count, setCount] = useState('4') const [size, setSize] = useState('64') const [srcAddress, setSrcAddress] = useState('') diff --git a/frontend/src/components/config/TracerouteTool.tsx b/frontend/src/components/config/TracerouteTool.tsx index b1204c3..ecfef2f 100644 --- a/frontend/src/components/config/TracerouteTool.tsx +++ b/frontend/src/components/config/TracerouteTool.tsx @@ -28,7 +28,7 @@ interface HopResult { } export function TracerouteTool({ tenantId, deviceId }: ConfigPanelProps) { - const [target, setTarget] = useState('') + const [target, setTarget] = useState('8.8.8.8') const [maxHops, setMaxHops] = useState('30') const [timeout, setTimeout] = useState('1000') const [protocol, setProtocol] = useState('icmp')