From c59622fabdeefadf041924418476376c474ce21b Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Sat, 25 Apr 2026 13:18:44 -0400 Subject: [PATCH] fix(ui): restore click-through navigation on home KPI cards PR-Agent caught a regression: pre-migration the four home stats had onClick handlers navigating to /providers, /cliproxy, /accounts, and /health. The Phase 2 migration dropped those handlers, removing the shortcuts for all users. Add an optional onClick prop to KpiCard. When supplied, the tile promotes from a static
to a + ); + } + + return
{content}
; } diff --git a/ui/src/pages/home.tsx b/ui/src/pages/home.tsx index 17e87ed3..cd055a5b 100644 --- a/ui/src/pages/home.tsx +++ b/ui/src/pages/home.tsx @@ -67,22 +67,26 @@ export function HomePage() { label={t('home.profiles')} value={overview?.profiles ?? 0} icon={} + onClick={() => navigate('/providers')} /> } + onClick={() => navigate('/cliproxy')} /> } + onClick={() => navigate('/accounts')} /> } + onClick={() => navigate('/health')} /> }