From b2bcbe86bb550ca5bf35b174af7f440abb1dbd0b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 30 Nov 2025 21:35:34 +0000 Subject: [PATCH] feat: display CrowdSec status on Security page and add tests for start/stop functionality --- frontend/src/pages/Security.tsx | 3 ++ .../src/pages/__tests__/Security.spec.tsx | 39 +++++++++++++++++-- 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/Security.tsx b/frontend/src/pages/Security.tsx index d4dc389e..448cde13 100644 --- a/frontend/src/pages/Security.tsx +++ b/frontend/src/pages/Security.tsx @@ -149,6 +149,9 @@ export default function Security() { ? `Mode: ${status.crowdsec.mode}` : 'Intrusion Prevention System'}

+ {crowdsecStatus && ( +

{crowdsecStatus.running ? `Running (pid ${crowdsecStatus.pid})` : 'Stopped'}

+ )} {status.crowdsec.enabled && (