From f79c225b71d4866c1b71d4c259556d8b115febda Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 25 Jul 2025 13:45:16 +0200 Subject: [PATCH] fix(Kue705FO): maintain consistent 3-line display layout - Keep alarm status line with empty space when no alarm is present - Use non-breaking space (\u00A0) to preserve line height and layout - Remove green "Status: OK" text for cleaner display - Ensure consistent 3-line structure: Alarm/Empty, ISO, RSL --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 12 ++++++++++++ .../main/kabelueberwachung/kue705FO/Kue705FO.tsx | 14 ++++++++------ package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 25 insertions(+), 11 deletions(-) diff --git a/.env.development b/.env.development index 611e9d0..b405468 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_USE_CGI=false # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.650 +NEXT_PUBLIC_APP_VERSION=1.6.651 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index 8079cb0..c26c0c6 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.650 +NEXT_PUBLIC_APP_VERSION=1.6.651 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a131ed6..c3adc0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## [1.6.651] – 2025-07-25 + +- refactor(Kue705FO): integrate chart functionality into detail view buttons + +- Remove separate TDR/Schleife Messkurve buttons section +- Add direct chart opening to ISO, RSL, and TDR buttons in detail view +- ISO and RSL buttons now open Schleife chart with proper state setup +- TDR button opens TDR chart with distance calculation +- Remove unused button container but keep structure for future use +- Clean up unused imports and variables needed + +--- ## [1.6.650] – 2025-07-25 - feat(Kue705FO): replace switch buttons with direct chart access buttons diff --git a/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx b/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx index a28a369..d173933 100644 --- a/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx +++ b/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx @@ -168,7 +168,7 @@ const Kue705FO: React.FC = ({ return (
{kueOnline === 1 ? ( @@ -221,9 +221,9 @@ const Kue705FO: React.FC = ({
{/* Schwarzes Display mit drei Zeilen: Alarm, ISO, Schleife */} -
-
- {/* 1. Zeile: Alarmtext in Rot, sonst leer */} +
+
+ {/* 1. Zeile: Alarmtext in Rot, sonst "Status: OK" */} = ({ Number(kueAlarm1?.[slotIndex]) === 1 || Number(kueAlarm2?.[slotIndex]) === 1 ? "text-red-500" - : "" + : "text-green-500" }`} > {Number(kuePSTmMinus96V?.[slotIndex]) === 1 @@ -245,7 +245,9 @@ const Kue705FO: React.FC = ({ ? "Isolationsfehler" : Number(kueAlarm2?.[slotIndex]) === 1 ? "Schleifenfehler" - : ""} + : " "} + {"\u00A0"} + {/* Status: OK*/} {/* 2. Zeile: ISO-Wert, immer anzeigen */}