Feat: Fenster nicht schließen für Firmware Update

This commit is contained in:
ISA
2025-07-24 12:15:50 +02:00
parent b7ff3b07cd
commit c1f6c19fdf
14 changed files with 27 additions and 28 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.643
NEXT_PUBLIC_APP_VERSION=1.6.644
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.643
NEXT_PUBLIC_APP_VERSION=1.6.644
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.644] 2025-07-24
- Firmware Update Bestätigung in Littwin blau
---
## [1.6.643] 2025-07-24
- feat Schleifeund TDR in sepaterate Bereiche in KÜ

View File

@@ -136,7 +136,7 @@ const LoopChartActionBar: React.FC = () => {
const type = selectedSlotType === "schleifenwiderstand" ? 4 : 3;
if (slotNumber === null) {
alert("⚠️ Bitte zuerst einen Steckplatz auswählen!");
alert("⚠️ Bitte zuerst einen auswählen!");
return;
}
@@ -193,9 +193,7 @@ const LoopChartActionBar: React.FC = () => {
return (
<div className="flex justify-between items-center p-2 bg-gray-100 rounded-lg space-x-2">
<div className="flex items-center">
<label className="text-sm font-semibold">
Steckplatz {slotNumber ?? "-"}
</label>
<label className="text-sm font-semibold"> {slotNumber ?? "-"}</label>
</div>
<div className="flex items-center space-x-2">

View File

@@ -106,9 +106,7 @@ const TDRChartActionBar: React.FC = () => {
<div className="flex justify-between items-center p-2 bg-gray-100 rounded-lg space-x-4">
{/* 🧩 Slot-Anzeige (1-basiert für Benutzer) */}
<div className="text-sm font-semibold">
{selectedSlot !== null
? `Steckplatz ${selectedSlot + 1}`
: "Kein Steckplatz gewählt"}
{selectedSlot !== null ? `${selectedSlot + 1}` : "Kein KÜ gewählt"}
</div>
{/* ✅ Referenz setzen */}

View File

@@ -67,9 +67,7 @@ export default function KueModal({ showModal, onClose, slot }: KueModalProps) {
}}
>
<div className="p-2 flex justify-between items-center rounded-t-md">
<h2 className="text-base font-bold">
Einstellungen Steckplatz {slot + 1}
</h2>
<h2 className="text-base font-bold">Einstellungen {slot + 1}</h2>
<button onClick={onClose} className="text-2xl hover:text-gray-200">
<i className="bi bi-x-circle-fill"></i>
</button>

View File

@@ -24,9 +24,11 @@ const ProgressModal: React.FC<Props> = ({ visible, progress, slot }) => {
Firmwareupdate läuft ...
{typeof slot === "number" ? ` ` : ""}
</h2>
Bitte Fenster nicht schließen
<h2></h2>
<div className="w-full bg-gray-200 rounded-full h-4">
<div
className="bg-blue-500 h-4 rounded-full transition-all duration-100"
className="bg-littwin-blue h-4 rounded-full transition-all duration-100"
style={{ width: `${progress}%` }}
></div>
</div>

View File

@@ -35,9 +35,9 @@
- [ ] TODO: Bei System Messkurven Cursor await bis die daten lädt
- [ ] TODO: in KÜ DISPLAY Fehler, ISO Wert und Schleifenwwert bei wechsel Zustand anzeigen während Schleifenmessung und Isowemmsung und kalibirirung
- [ ] TODO: Bug in DatePicker in KÜ
- [ ] TODO: KVz später
- [ ] TODO: Kurven für ISO, RSL und TDR
- [ ] TODO: in KÜ Steckplatz in KÜ umbenennen
- [ ] TODO: KÜ Kurve und letzte historische Meldungen anzeigen
- [x] TODO: Firmware Update Bestätigung in Littwin blau
- [ ] TODO: KÜ Firmware in progress Bitte Fenster nicht schließen
- [x] TODO: in KÜ Steckplatz in KÜ umbenennen
- [x] TODO: Firmware Update Bestätigung in Littwin blau auch progress in littwinblue
- [x] TODO: Firmware in progress Bitte Fenster nicht schließen
- [ ] TODO: KÜ Kurve und letzte historische Meldungen anzeigen -> später
- [ ] TODO: KVz später

View File

@@ -46,7 +46,7 @@ Sie ist **pro Slot aktivierbar** und bietet folgende Einstellungen:
### 🔁 Knotenpunkte-Anzeige
Der Reiter **Knotenpunkte** zeigt die konfigurierte Struktur eines Steckplatzes:
Der Reiter **Knotenpunkte** zeigt die konfigurierte Struktur eines es:
| Feld | Beschreibung |
| -------------- | -------------------------------------------------- |

View File

@@ -46,7 +46,7 @@ Sie ist **pro Slot aktivierbar** und bietet folgende Einstellungen:
### 🔁 Knotenpunkte-Anzeige
Der Reiter **Knotenpunkte** zeigt die konfigurierte Struktur eines Steckplatzes:
Der Reiter **Knotenpunkte** zeigt die konfigurierte Struktur eines es:
| Feld | Beschreibung |
| -------------- | -------------------------------------------------- |

View File

@@ -46,7 +46,7 @@ Sie ist **pro Slot aktivierbar** und bietet folgende Einstellungen:
### 🔁 Knotenpunkte-Anzeige
Der Reiter **Knotenpunkte** zeigt die konfigurierte Struktur eines Steckplatzes:
Der Reiter **Knotenpunkte** zeigt die konfigurierte Struktur eines es:
| Feld | Beschreibung |
| -------------- | -------------------------------------------------- |

4
package-lock.json generated
View File

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

View File

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

View File

@@ -38,10 +38,8 @@ export const goLoop = async (
);
if (response.ok) {
alert(
`Schleifenmessung erfolgreich gestartet für Steckplatz ${slotIndex + 1}`
);
console.log("Schleifenmessung gestartet für Steckplatz", slotIndex);
alert(`Schleifenmessung erfolgreich gestartet für KÜ ${slotIndex + 1}`);
console.log("Schleifenmessung gestartet für KÜ", slotIndex);
} else {
alert("Fehler beim Starten der Schleifenmessung.");
console.error("Fehler beim Senden der Schleifen-Anfrage");