feat: TDR --> Messkurven TDR anzeigen und dort Schalter Messung aktivieren

This commit is contained in:
ISA
2025-07-31 14:45:40 +02:00
parent 46ba692af0
commit 638b7bf519
7 changed files with 36 additions and 26 deletions

View File

@@ -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.665
NEXT_PUBLIC_APP_VERSION=1.6.666
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -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.665
NEXT_PUBLIC_APP_VERSION=1.6.666
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.666] 2025-07-31
- feat: KVZ JSON Daten für mock auf CPL hochgeladen und getestet
---
## [1.6.665] 2025-07-31
- style: KVZ LEDs style

View File

@@ -152,7 +152,7 @@ const TDRChartActionBar: React.FC = () => {
className="px-4 py-1 bg-littwin-blue text-white rounded text-sm whitespace-nowrap "
disabled={selectedSlot === null}
>
TDR starten
Messung aktivieren
</button>
{/* 🔽 Dropdown für Messungen */}

View File

@@ -397,13 +397,13 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
<div className="flex space-x-2">
<button
onClick={openIsoModal}
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2 min-w-[2.5rem]"
>
ISO
</button>
<button
onClick={openRslModal}
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2 min-w-[2.5rem]"
>
RSL
</button>
@@ -411,24 +411,29 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
{/* TDR and KVz Buttons */}
<div className="flex space-x-2 p-1">
{/* TDR Button - nur anzeigen wenn TDR aktiv ist */}
{isTdrActiveForSlot && (
<button
onClick={openTdrModal}
className=" bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
>
TDR
</button>
)}
{/* KVz Button - nur anzeigen wenn KVz aktiv ist */}
{isKvzActiveForSlot && (
<button
onClick={openKvzModal}
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
>
KVz
</button>
)}
{/* TDR Button - blau mit Text wenn aktiv, grau ohne Text wenn inaktiv */}
<button
onClick={isTdrActiveForSlot ? openTdrModal : undefined}
className={`${
isTdrActiveForSlot
? "bg-littwin-blue text-white cursor-pointer"
: "bg-gray-400 cursor-default"
} text-[0.625rem] flex items-center justify-center p-2 min-w-[2.5rem]`}
>
{isTdrActiveForSlot ? "TDR" : "\u00A0\u00A0\u00A0"}
</button>
{/* KVz Button - blau mit Text wenn aktiv, grau ohne Text wenn inaktiv */}
<button
onClick={isKvzActiveForSlot ? openKvzModal : undefined}
className={`${
isKvzActiveForSlot
? "bg-littwin-blue text-white cursor-pointer"
: "bg-gray-400 cursor-default"
} text-[0.625rem] flex items-center justify-center p-2 min-w-[2.5rem]`}
>
{isKvzActiveForSlot ? "KVz" : "\u00A0\u00A0\u00A0"}
</button>
</div>
{/* Messkurve Button */}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "cpl-v4",
"version": "1.6.665",
"version": "1.6.666",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cpl-v4",
"version": "1.6.665",
"version": "1.6.666",
"dependencies": {
"@fontsource/roboto": "^5.1.0",
"@headlessui/react": "^2.2.4",

View File

@@ -1,6 +1,6 @@
{
"name": "cpl-v4",
"version": "1.6.665",
"version": "1.6.666",
"private": true,
"scripts": {
"dev": "next dev",