diff --git a/.env.development b/.env.development index 241d8a9..98422f5 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.636 +NEXT_PUBLIC_APP_VERSION=1.6.637 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 1b8faf7..53c8910 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.636 +NEXT_PUBLIC_APP_VERSION=1.6.637 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d7eaa6..9e1496e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [1.6.637] – 2025-07-23 + +- feat: Add cursor wait during chart data loading + +- Implemented cursor wait state while chart data is being loaded in `AnalogInputsChart.tsx`. +- Fixed missing dependencies in `useEffect` and defined `loading` state. +- Updated `handleFetchData` to manage + +--- ## [1.6.636] – 2025-07-23 - Isolationsfehler in Display anzeigen -> aktuell Zahl ist rot ohne Beschrifftung , es soll Zahl ISO MOhm und Isolationsfehler diff --git a/components/main/analogInputs/AnalogInputsChart.tsx b/components/main/analogInputs/AnalogInputsChart.tsx index 340bcf0..17eedf1 100644 --- a/components/main/analogInputs/AnalogInputsChart.tsx +++ b/components/main/analogInputs/AnalogInputsChart.tsx @@ -28,6 +28,7 @@ import { } from "@/redux/slices/analogInputs/analogInputsHistorySlice"; import { getColor } from "@/utils/colors"; import AnalogInputsDatePicker from "./AnalogInputsDatePicker"; +import type { ChartJSOrUndefined } from "react-chartjs-2/dist/types"; // ✅ Nur die Basis-ChartJS-Module registrieren ChartJS.register( @@ -53,7 +54,11 @@ export default function AnalogInputsChart() { }, []); const dispatch = useDispatch(); - const chartRef = useRef(null); // Specify Line type for chartRef + + const chartRef = + useRef< + ChartJSOrUndefined<"line", { x: Date; y: number | undefined }[], unknown> + >(null); // Redux Werte für Chart-Daten const { zeitraum, vonDatum, bisDatum, data, autoLoad, selectedId } = diff --git a/package-lock.json b/package-lock.json index 1a17294..28b5b63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.636", + "version": "1.6.637", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.636", + "version": "1.6.637", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 850edb7..efe9ff4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.636", + "version": "1.6.637", "private": true, "scripts": { "dev": "next dev",