From afdcb6b92f2a2d9f8fa043a222c5a19ae46a2f50 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 25 Jul 2025 11:56:46 +0200 Subject: [PATCH] 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 --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 11 +++ .../kabelueberwachung/kue705FO/Kue705FO.tsx | 72 +++++++++---------- package-lock.json | 4 +- package.json | 2 +- 6 files changed, 48 insertions(+), 45 deletions(-) diff --git a/.env.development b/.env.development index 87d11e8..611e9d0 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.649 +NEXT_PUBLIC_APP_VERSION=1.6.650 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 bbef8bc..8079cb0 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.649 +NEXT_PUBLIC_APP_VERSION=1.6.650 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index fa75871..a131ed6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## [1.6.650] – 2025-07-25 + +- feat(Kue705FO): replace switch buttons with direct chart access buttons + +- Remove Schleife/TDR switch buttons and separate Messkurve button +- Add "TDR Messkurve" and "Schleife Messkurve" buttons for direct chart access +- Each button opens the corresponding chart type directly +- Improve user experience by reducing clicks needed to access specific charts +- Clean up unused imports (handleButtonClick, tdrLocation, tdrActive) + +--- ## [1.6.649] – 2025-07-25 - TDR und Schleife Button in KÜs wieder für die Funktionen diff --git a/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx b/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx index 1f8f80d..a28a369 100644 --- a/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx +++ b/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx @@ -369,13 +369,33 @@ const Kue705FO: React.FC = ({ {/* ISO and RSL Buttons */}
- -
- - {/* Messkurve Button */} - - {/* TDR Messkurve und Schleife Messkurve Buttons */} -
+ + {/* Messkurve Button */} + + {/* TDR Messkurve und Schleife Messkurve Buttons */} +
{/* Modal für Messkurve */} diff --git a/package-lock.json b/package-lock.json index 6782cbe..dbf18a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.649", + "version": "1.6.650", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.649", + "version": "1.6.650", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 75cbe66..bc68601 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.649", + "version": "1.6.650", "private": true, "scripts": { "dev": "next dev",