()
| 31 | const [testStatus, setTestStatus] = useState<TestStatus>("idle"); |
| 32 | |
| 33 | async function testConnection() { |
| 34 | setTestStatus("testing"); |
| 35 | // Simulate connection test — in real impl this would call an API |
| 36 | await new Promise((r) => setTimeout(r, 800)); |
| 37 | setTestStatus(Math.random() > 0.3 ? "ok" : "error"); |
| 38 | } |
| 39 | |
| 40 | const statusDot = { |
| 41 | idle: <Circle className="w-2 h-2 text-surface-600" />, |
nothing calls this directly
no outgoing calls
no test coverage detected