fix(detail-chart): X-Achse zeigt jetzt Datum und Uhrzeit ohne Sekunden (z. B. 10.07.2025 14:32)

This commit is contained in:
ISA
2025-07-10 13:28:16 +02:00
parent a8c027bd6e
commit eae69d4392
6 changed files with 21 additions and 6 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.573
NEXT_PUBLIC_APP_VERSION=1.6.574
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.573
NEXT_PUBLIC_APP_VERSION=1.6.574
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.574] 2025-07-10
- fix(system-charts): Zeitachse angepasst aktuelle Daten jetzt rechts wie bei Kabelüberwachung
---
## [1.6.573] 2025-07-10
- fix(system-charts): Y-Achse mit Einheiten ergänzt (V und °C) für bessere Lesbarkeit

View File

@@ -43,7 +43,17 @@ export const DetailModal = ({
});
const reversedData = [...reduxData].reverse();
const labels = reversedData.map((e) => e.t);
const labels = reversedData.map((e) =>
new Date(e.t).toLocaleString("de-DE", {
day: "2-digit",
month: "2-digit",
year: "numeric",
hour: "2-digit",
minute: "2-digit",
second: undefined, // Sekunden ausschließen
})
);
const values = reversedData.map((e) => e.i);
const baseOptions = {

4
package-lock.json generated
View File

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

View File

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