From 99d2a3d4519e77cb868cb4f3513dfbdf292e8eab Mon Sep 17 00:00:00 2001 From: ISA Date: Mon, 7 Jul 2025 15:17:17 +0200 Subject: [PATCH] fix: TDR select List mouseover gray 200 --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 10 ++ .../Charts/TDRChart/TDRChartActionBar.tsx | 98 ++++++++++++++----- package-lock.json | 4 +- package.json | 2 +- 6 files changed, 89 insertions(+), 29 deletions(-) diff --git a/.env.development b/.env.development index d8ac331..6df49cb 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.548 +NEXT_PUBLIC_APP_VERSION=1.6.550 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 2ecc318..ed28cad 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.548 +NEXT_PUBLIC_APP_VERSION=1.6.550 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index cda39dc..dbfa5af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [1.6.550] – 2025-07-07 + +- fix: List mouseover -> hover:bg-gray-200 + +--- +## [1.6.549] – 2025-07-07 + +- fix: List mouseover -> hover:bg-gray-200 + +--- ## [1.6.548] – 2025-07-07 - fix: es soll dann nur wenn der Button Anziegen geklickt wird anzeigenund nicht automatisch nach ein Datumauswahl diff --git a/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChartActionBar.tsx b/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChartActionBar.tsx index 3348232..cd78cce 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChartActionBar.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/TDRChart/TDRChartActionBar.tsx @@ -7,6 +7,7 @@ import { RootState } from "@/redux/store"; import { fetchTDMDataBySlotThunk } from "@/redux/thunks/getTDMListBySlotThunk"; import { getTDRChartDataByIdThunk } from "@/redux/thunks/getTDRChartDataByIdThunk"; import { getReferenceCurveBySlotThunk } from "@/redux/thunks/getReferenceCurveBySlotThunk"; // ⬅ import ergänzen +import { Listbox } from "@headlessui/react"; const TDRChartActionBar: React.FC = () => { const dispatch = useAppDispatch(); @@ -121,7 +122,7 @@ const TDRChartActionBar: React.FC = () => { {selectedId !== null && ( @@ -129,31 +130,80 @@ const TDRChartActionBar: React.FC = () => { {/* 🔽 Dropdown für Messungen */}
- - +
+ + + {selectedId + ? (() => { + const selected = idsForSlot.find( + (e) => e.id === selectedId + ); + return selected + ? `${new Date(selected.t).toLocaleString("de-DE", { + day: "2-digit", + month: "2-digit", + year: "numeric", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + })} – Fehlerstelle: ${selected.d} m` + : "Wähle Messung"; + })() + : "Wähle Messung"} + + + + + {idsForSlot.map((entry) => ( + + `px-4 py-1 cursor-pointer ${ + selected + ? "bg-littwin-blue text-white" + : active + ? "bg-gray-200" + : "" + }` + } + > + {new Date(entry.t).toLocaleString("de-DE", { + day: "2-digit", + month: "2-digit", + year: "numeric", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + })}{" "} + – Fehlerstelle: {entry.d} m + + ))} + +
+
); diff --git a/package-lock.json b/package-lock.json index 9e568c6..a17e9aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.548", + "version": "1.6.550", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.548", + "version": "1.6.550", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index f058a97..70c1cb0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.548", + "version": "1.6.550", "private": true, "scripts": { "dev": "next dev",