From 798a33495ee3a26c2e94afc85690307b34758b29 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sun, 14 Jun 2026 17:15:52 +0200 Subject: [PATCH] refactor: remove JMAP status from admin dashboard --- app/(main)/admin/_tabs/dashboard.tsx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/app/(main)/admin/_tabs/dashboard.tsx b/app/(main)/admin/_tabs/dashboard.tsx index 8c876a5c..9074e474 100644 --- a/app/(main)/admin/_tabs/dashboard.tsx +++ b/app/(main)/admin/_tabs/dashboard.tsx @@ -32,7 +32,6 @@ export function DashboardTab() { const [themeCount, setThemeCount] = useState(0); const [policyRuleCount, setPolicyRuleCount] = useState(0); const [accountCounts, setAccountCounts] = useState<{ total: number; active7d: number } | null>(null); - const [jmapHealth, setJmapHealth] = useState<'unknown' | 'ok' | 'error'>('unknown'); useEffect(() => { fetchDashboardData(); @@ -82,15 +81,6 @@ export function DashboardTab() { } } - if (configData?.jmapServerUrl) { - try { - const jmapRes = await apiFetch('/api/config'); - setJmapHealth(jmapRes.ok ? 'ok' : 'error'); - } catch { - setJmapHealth('error'); - } - } - const w: string[] = []; if (adminConfigRes.ok) { const sources = await adminConfigRes.json(); @@ -128,16 +118,6 @@ export function DashboardTab() { {jmapHostname} - - - - {jmapHealth === 'ok' ? 'Connected' : jmapHealth === 'error' ? 'Error' : 'Unknown'} - - {status?.lastLogin ? new Date(status.lastLogin).toLocaleString() : 'Never'}