diff --git a/.env.development b/.env.development index b872f1f..06de1fc 100644 --- a/.env.development +++ b/.env.development @@ -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.502 +NEXT_PUBLIC_APP_VERSION=1.6.503 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index ed515ac..7debfe4 100644 --- a/.env.production +++ b/.env.production @@ -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.502 +NEXT_PUBLIC_APP_VERSION=1.6.503 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e154ab4..4cee2dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.503] – 2025-06-30 + +- feat: Redux-Integration für Meldungen, Anzeige von 'v' statt 's' in UI + +--- ## [1.6.502] – 2025-06-30 - feat: implement date in analog inputs chart diff --git a/package-lock.json b/package-lock.json index 89c959d..3b2a59c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.502", + "version": "1.6.503", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.502", + "version": "1.6.503", "dependencies": { "@fontsource/roboto": "^5.1.0", "@iconify-icons/ri": "^1.2.10", diff --git a/package.json b/package.json index cb33f59..b657c72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.502", + "version": "1.6.503", "private": true, "scripts": { "dev": "next dev", diff --git a/pages/meldungen.tsx b/pages/meldungen.tsx index 2301ff5..b61c858 100644 --- a/pages/meldungen.tsx +++ b/pages/meldungen.tsx @@ -4,6 +4,7 @@ import React, { useState, useEffect } from "react"; import DateRangePickerMeldungen from "@/components/main/reports/DateRangePickerMeldungen"; import { useSelector, useDispatch } from "react-redux"; import { getMessagesThunk } from "@/redux/thunks/getMessagesThunk"; +import type { AppDispatch } from "@/redux/store"; type Meldung = { t: string; @@ -11,14 +12,17 @@ type Meldung = { c: string; m: string; i: string; - v: string; // NEU: für Anzeige + v: string; }; - export default function Messages() { - const dispatch = useDispatch(); - const { data: messages, loading } = useSelector( - (state: any) => state.messages - ); + const dispatch = useDispatch(); + type RootState = { + messages: { + data: Meldung[]; + }; + // add other slices if needed + }; + const { data: messages } = useSelector((state: RootState) => state.messages); const [sourceFilter, setSourceFilter] = useState("Alle"); @@ -69,8 +73,8 @@ export default function Messages() { > {allSources.map((src) => ( - ))}