From 4a3e3107c2c62c641a7b0c4bb6020afada3fe39d Mon Sep 17 00:00:00 2001 From: SaelixCode Date: Sun, 5 Jul 2026 23:38:35 -0400 Subject: [PATCH] fix: style Trivy row as badge and link to Security scanner setup --- .../components/dashboard/ConfigurationStatus.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/dashboard/ConfigurationStatus.tsx b/frontend/src/components/dashboard/ConfigurationStatus.tsx index 98b59ca6..a0856acf 100644 --- a/frontend/src/components/dashboard/ConfigurationStatus.tsx +++ b/frontend/src/components/dashboard/ConfigurationStatus.tsx @@ -11,17 +11,17 @@ interface ConfigurationStatusProps { function StatusBadge({ value }: { value: string }) { const lower = value.toLowerCase(); - if (lower === 'on' || lower === 'enabled') { + if (lower === 'on' || lower === 'enabled' || lower === 'installed') { return ( - ON + {lower === 'installed' ? 'INSTALLED' : 'ON'} ); } - if (lower === 'off' || lower === 'disabled') { + if (lower === 'off' || lower === 'disabled' || lower === 'not installed') { return ( - OFF + {lower === 'not installed' ? 'NOT INSTALLED' : 'OFF'} ); } @@ -195,7 +195,10 @@ export function ConfigurationStatus({ onOpenSection }: ConfigurationStatusProps window.dispatchEvent( + new CustomEvent(SENCHO_NAVIGATE_EVENT, { detail: { view: 'security', tab: 'scanner' } }), + )} /> {!security.scanPolicies.locked && (