feat; in KÜ Chart RSL und ISO start button

This commit is contained in:
ISA
2025-07-28 14:36:03 +02:00
parent d4335960bf
commit e76c8d9bd2
7 changed files with 26 additions and 72 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.656
NEXT_PUBLIC_APP_VERSION=1.6.657
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.656
NEXT_PUBLIC_APP_VERSION=1.6.657
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.657] 2025-07-28
- deat: KVz anzeigen
---
## [1.6.656] 2025-07-28
- fix: Chart Titel Isolationsmessung zu schleifenmessung

View File

@@ -237,10 +237,14 @@ const IsoChartActionBar: React.FC = () => {
</div>
</Listbox>
{/* Label für Isolationswiderstand - kein Dropdown mehr nötig */}
<div className="px-3 py-1 bg-gray-50 border rounded text-sm text-gray-700">
Isolationswiderstand
</div>
{/* ISO starten button*/}
<button
onClick={handleFetchData}
className="px-4 py-1 bg-littwin-blue text-white rounded text-sm"
disabled={isLoading}
>
ISO starten
</button>
<button
onClick={handleFetchData}

View File

@@ -257,70 +257,15 @@ const LoopChartActionBar: React.FC = () => {
</div>
</Listbox>
<div className="relative w-48"> </div>
{/* Dropdown */}
{/*
<Listbox
value={selectedSlotType}
onChange={(value) => {
dispatch(setSelectedSlotType(value));
dispatch(
setChartTitle(
value === "isolationswiderstand"
? "Isolationsmessung"
: "Schleifenmessung"
)
);
}}
{/* Schleife starten button*/}
<button
onClick={handleFetchData}
className="px-4 py-1 bg-littwin-blue text-white rounded text-sm"
disabled={isLoading}
>
<div className="relative w-56">
<Listbox.Button className="w-full border px-3 py-1 rounded text-left bg-white flex justify-between items-center text-sm">
<span>
{
{
isolationswiderstand: "Isolationswiderstand",
schleifenwiderstand: "Schleifenwiderstand",
}[selectedSlotType]
}
</span>
<svg
className="w-5 h-5 text-gray-400"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fillRule="evenodd"
d="M5.23 7.21a.75.75 0 011.06.02L10 10.585l3.71-3.355a.75.75 0 111.02 1.1l-4.25 3.85a.75.75 0 01-1.02 0l-4.25-3.85a.75.75 0 01.02-1.06z"
clipRule="evenodd"
/>
</svg>
</Listbox.Button>
<Listbox.Options className="absolute z-50 mt-1 w-full border rounded bg-white shadow max-h-60 overflow-auto text-sm">
{["isolationswiderstand", "schleifenwiderstand"].map((type) => (
<Listbox.Option
key={type}
value={type}
className={({ selected, active }) =>
`px-4 py-1 cursor-pointer ${
selected
? "bg-littwin-blue text-white"
: active
? "bg-gray-200"
: ""
}`
}
>
{
{
isolationswiderstand: "Isolationswiderstand",
schleifenwiderstand: "Schleifenwiderstand",
}[type]
}
</Listbox.Option>
))}
</Listbox.Options>
</div>
</Listbox>
*/}
RSL starten
</button>
<button
onClick={handleFetchData}

4
package-lock.json generated
View File

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

View File

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