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_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # 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) 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_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.665 NEXT_PUBLIC_APP_VERSION=1.6.666
NEXT_PUBLIC_CPL_MODE=production 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 ## [1.6.665] 2025-07-31
- style: KVZ LEDs style - 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 " className="px-4 py-1 bg-littwin-blue text-white rounded text-sm whitespace-nowrap "
disabled={selectedSlot === null} disabled={selectedSlot === null}
> >
TDR starten Messung aktivieren
</button> </button>
{/* 🔽 Dropdown für Messungen */} {/* 🔽 Dropdown für Messungen */}

View File

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

4
package-lock.json generated
View File

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

View File

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