fix: KÜ Firmwareupdate
This commit is contained in:
@@ -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.526
|
NEXT_PUBLIC_APP_VERSION=1.6.527
|
||||||
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)
|
||||||
|
|
||||||
|
|||||||
@@ -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.526
|
NEXT_PUBLIC_APP_VERSION=1.6.527
|
||||||
NEXT_PUBLIC_CPL_MODE=production
|
NEXT_PUBLIC_CPL_MODE=production
|
||||||
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,3 +1,13 @@
|
|||||||
|
## [1.6.527] – 2025-07-03
|
||||||
|
|
||||||
|
- fix: Firmware-Update läuft nun exakt 5 Minuten bis 100 % Fortschritt
|
||||||
|
|
||||||
|
- Fehler behoben, bei dem das Firmware-Update nach wenigen Sekunden vorzeitig beendet wurde
|
||||||
|
- Fortschrittsanzeige über Redux-Slice `firmwareProgressSlice` korrekt umgesetzt
|
||||||
|
- Thunk `startFirmwareUpdateThunk` korrekt eingebunden und verwendet
|
||||||
|
- UI zeigt stabile 5-minütige Progressbar wie erwartet
|
||||||
|
|
||||||
|
---
|
||||||
## [1.6.526] – 2025-07-02
|
## [1.6.526] – 2025-07-02
|
||||||
|
|
||||||
- fix: Firmware-Update läuft nun exakt 5 Minuten bis 100 % Fortschritt
|
- fix: Firmware-Update läuft nun exakt 5 Minuten bis 100 % Fortschritt
|
||||||
|
|||||||
@@ -283,7 +283,11 @@ export default function KueEinstellung({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{isUpdating && (
|
{isUpdating && (
|
||||||
<ProgressModal visible={isUpdating} progress={progress} />
|
<ProgressModal
|
||||||
|
visible={isUpdating}
|
||||||
|
progress={progress}
|
||||||
|
slot={slot + 1}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
<button
|
<button
|
||||||
onClick={() => handleDisplayEinschalten(slot)}
|
onClick={() => handleDisplayEinschalten(slot)}
|
||||||
|
|||||||
@@ -1,18 +1,29 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
// @/components/main/settingsPageComponents/modals/ProgressModal.tsx
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
progress: number;
|
progress: number;
|
||||||
|
slot?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
const ProgressModal: React.FC<Props> = ({ visible, progress }) => {
|
const ProgressModal: React.FC<Props> = ({ visible, progress, slot }) => {
|
||||||
if (!visible) return null;
|
if (!visible) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
|
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 ">
|
||||||
<div className="bg-white p-6 rounded shadow-md text-center w-80">
|
<div className="bg-white p-6 rounded shadow-md text-center w-80">
|
||||||
<h2 className="text-lg font-bold mb-4">Firmwareupdate läuft...</h2>
|
{/*
|
||||||
|
<h2 className="text-lg font-bold mb-4">
|
||||||
|
Firmwareupdate
|
||||||
|
{typeof slot === "number" ? ` KÜ ${slot}` : ""} läuft ...
|
||||||
|
</h2>
|
||||||
|
*/}
|
||||||
|
<h2 className="text-lg font-bold mb-4">
|
||||||
|
Firmwareupdate läuft ...
|
||||||
|
{typeof slot === "number" ? ` ` : ""}
|
||||||
|
</h2>
|
||||||
<div className="w-full bg-gray-200 rounded-full h-4">
|
<div className="w-full bg-gray-200 rounded-full h-4">
|
||||||
<div
|
<div
|
||||||
className="bg-blue-500 h-4 rounded-full transition-all duration-100"
|
className="bg-blue-500 h-4 rounded-full transition-all duration-100"
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.526",
|
"version": "1.6.527",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.526",
|
"version": "1.6.527",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/roboto": "^5.1.0",
|
"@fontsource/roboto": "^5.1.0",
|
||||||
"@iconify-icons/ri": "^1.2.10",
|
"@iconify-icons/ri": "^1.2.10",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.526",
|
"version": "1.6.527",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// services/fetchAnalogInputsHistoryService.ts
|
// services/fetchAnalogInputsHistoryService.ts
|
||||||
|
|
||||||
export async function fetchAnalogInputsHistoryService(): Promise<
|
export async function fetchAnalogInputsHistoryService(): Promise<
|
||||||
Record<number, any[]>
|
Record<number, unknown[]>
|
||||||
> {
|
> {
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
const yesterday = new Date(today);
|
const yesterday = new Date(today);
|
||||||
@@ -16,7 +16,7 @@ export async function fetchAnalogInputsHistoryService(): Promise<
|
|||||||
const fromDate = formatDate(yesterday);
|
const fromDate = formatDate(yesterday);
|
||||||
const toDate = formatDate(today);
|
const toDate = formatDate(today);
|
||||||
|
|
||||||
const result: Record<number, any[]> = {};
|
const result: Record<number, unknown[]> = {};
|
||||||
|
|
||||||
const isDev = process.env.NODE_ENV === "development";
|
const isDev = process.env.NODE_ENV === "development";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user