From bcd91f1c507f62d2f8fc51e9ddb22890d2190daa Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 14 Jul 2026 13:55:34 +0000 Subject: [PATCH] Show custom success message from test result if present Co-Authored-By: Claude Sonnet 4.6 --- src/pages/AdminSettings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/AdminSettings.tsx b/src/pages/AdminSettings.tsx index e0aaf67..e4c8451 100644 --- a/src/pages/AdminSettings.tsx +++ b/src/pages/AdminSettings.tsx @@ -112,7 +112,7 @@ function IntegrationCard({ integration, onSaved }: { integration: Integration; o const [changing, setChanging] = useState>(new Set()) const [saving, setSaving] = useState(false) const [testing, setTesting] = useState(false) - const [testResult, setTestResult] = useState<{ ok: boolean; error?: string } | null>(null) + const [testResult, setTestResult] = useState<{ ok: boolean; error?: string; message?: string } | null>(null) const [enabled, setEnabled] = useState(integration.enabled) const [wfLocations, setWfLocations] = useState<{ id: string; name: string; short_name: string | null }[]>([]) const [fetchingLocs, setFetchingLocs] = useState(false) @@ -473,7 +473,7 @@ function IntegrationCard({ integration, onSaved }: { integration: Integration; o {testResult.ok - ? <> Connected + ? <> {testResult.message ?? 'Connected'} : <> {testResult.error} }