From b6e4c322879f50ff25396c9bea66a39ab31291cd Mon Sep 17 00:00:00 2001 From: Ismail Ali Date: Tue, 15 Jul 2025 09:24:52 +0200 Subject: [PATCH] feat(analogInputs): automatisches Laden der Chart-Daten bei Tabellenklick via Redux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - analogInputsHistorySlice um `autoLoad` erweitert, um automatisches Laden zu triggern - handleSelect in AnalogInputsTable dispatcht jetzt `setAutoLoad(true)` - AnalogInputsChart lauscht auf `autoLoad` + `selectedId` und lädt Daten automatisch - `autoLoad` wird nach dem Laden wieder auf false zurückgesetzt --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 10 ++++++++++ components/main/analogInputs/AnalogInputsView.tsx | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index 8804e9c..4222847 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.601 +NEXT_PUBLIC_APP_VERSION=1.6.602 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 1020994..6164a5d 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.601 +NEXT_PUBLIC_APP_VERSION=1.6.602 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 66a3141..e78ace5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [1.6.602] – 2025-07-15 + +- feat(analogInputs): automatisches Laden der Chart-Daten bei Tabellenklick via Redux + +- analogInputsHistorySlice um `autoLoad` erweitert, um automatisches Laden zu triggern +- handleSelect in AnalogInputsTable dispatcht jetzt `setAutoLoad(true)` +- AnalogInputsChart lauscht auf `autoLoad` + `selectedId` und lädt Daten automatisch +- `autoLoad` wird nach dem Laden wieder auf false zurückgesetzt + +--- ## [1.6.601] – 2025-07-15 - uninstall redux-persist, weil nimmt viel Performance weg diff --git a/components/main/analogInputs/AnalogInputsView.tsx b/components/main/analogInputs/AnalogInputsView.tsx index 091ef38..d3072c3 100644 --- a/components/main/analogInputs/AnalogInputsView.tsx +++ b/components/main/analogInputs/AnalogInputsView.tsx @@ -47,7 +47,7 @@ function AnalogInputsView() {

Messkurve Messwerteingang {selectedId ?? "–"}

- + diff --git a/package-lock.json b/package-lock.json index d062cc9..1f8f5ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.601", + "version": "1.6.602", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.601", + "version": "1.6.602", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 1bd83ea..3fbdd56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.601", + "version": "1.6.602", "private": true, "scripts": { "dev": "next dev",