diff --git a/.env.development b/.env.development index a18fdde..2ac661d 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.689 +NEXT_PUBLIC_APP_VERSION=1.6.690 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 2560032..78633ce 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.689 +NEXT_PUBLIC_APP_VERSION=1.6.690 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e84ab0..f04e820 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.690] – 2025-08-11 + +- Globales Auto-Highlight wurde eingefügt + +--- ## [1.6.689] – 2025-08-11 - playwright recording and testing diff --git a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx index b49f10e..89b9a81 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx @@ -1,6 +1,6 @@ "use client"; // /components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopChartActionBar.tsx -import React from "react"; +import React, { useEffect, useState } from "react"; import DateRangePicker from "@/components/common/DateRangePicker"; import { useDispatch, useSelector } from "react-redux"; import { RootState } from "@/redux/store"; @@ -93,6 +93,34 @@ export const useLoopChartLoader = () => { //-----------------------------------------------------------------------------------LoopChartActionBar const LoopChartActionBar: React.FC = () => { const dispatch = useDispatch(); + // RSL Progress State (120s künstlicher Countdown) + const TOTAL_DURATION = 120; // Sekunden + const [rslRunning, setRslRunning] = useState(false); + const [rslProgress, setRslProgress] = useState(0); + + // Fortschritt aktualisieren + useEffect(() => { + if (!rslRunning) return; + setRslProgress(0); + const startedAt = Date.now(); + const interval = setInterval(() => { + const elapsed = Math.floor((Date.now() - startedAt) / 1000); + if (elapsed >= TOTAL_DURATION) { + setRslProgress(TOTAL_DURATION); + setRslRunning(false); + clearInterval(interval); + // Optional automatische Daten-Nachladung anstoßen + } else { + setRslProgress(elapsed); + } + }, 1000); + return () => clearInterval(interval); + }, [rslRunning]); + + const startRslProgress = () => { + setRslRunning(true); + setRslProgress(0); + }; const { vonDatum, @@ -147,7 +175,8 @@ const LoopChartActionBar: React.FC = () => { } console.log("✅ RSL Messung gestartet für Slot", slotNumber); - alert(`✅ RSL Messung für Slot ${slotNumber + 1} gestartet`); + // Start der lokalen Progress-Anzeige (ca. 120s) + startRslProgress(); } catch (err) { console.error("❌ Fehler beim Starten der RSL Messung:", err); alert("❌ Fehler beim Starten der RSL Messung."); @@ -306,18 +335,35 @@ const LoopChartActionBar: React.FC = () => { + {rslRunning && ( +
RSL Messung läuft
++ Bitte warten… (noch {TOTAL_DURATION - rslProgress}s) +
+