diff --git a/.env.development b/.env.development index 4221072..f4ae242 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.506 +NEXT_PUBLIC_APP_VERSION=1.6.507 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 a14fc2d..4ae26fa 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.506 +NEXT_PUBLIC_APP_VERSION=1.6.507 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6655e65..062e10f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.507] – 2025-06-30 + +- feat: Dashboard Meldungen Status 1 oder 0 + +--- ## [1.6.506] – 2025-06-30 - feat: Redux-Integration für Meldungen, Anzeige von 'v' statt 's' in UI diff --git a/components/main/dashboard/Last20MessagesTable.tsx b/components/main/dashboard/Last20MessagesTable.tsx index 8bab080..9111578 100644 --- a/components/main/dashboard/Last20MessagesTable.tsx +++ b/components/main/dashboard/Last20MessagesTable.tsx @@ -1,5 +1,4 @@ "use client"; -// @/components/main/dashboard/Last20MessagesTable.tsx import React, { useState, useEffect } from "react"; import { useSelector, useDispatch } from "react-redux"; @@ -14,27 +13,28 @@ type Meldung = { i: string; v: string; }; -export default function Last20MessagesTable() { + +type Props = { + className?: string; +}; + +export default function Last20MessagesTable({ className }: Props) { 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"); + const [sourceFilter] = useState("Alle"); - // Datum initialisieren: von = heute - 30 Tage, bis = heute const today = new Date(); const prior30 = new Date(); prior30.setDate(today.getDate() - 30); - const formatDate = (d: Date) => d.toISOString().split("T")[0]; - - const [fromDate, setFromDate] = useState(formatDate(prior30)); - const [toDate, setToDate] = useState(formatDate(today)); + const [fromDate] = useState(formatDate(prior30)); + const [toDate] = useState(formatDate(today)); useEffect(() => { dispatch(getMessagesThunk({ fromDate, toDate })); @@ -46,11 +46,7 @@ export default function Last20MessagesTable() { : messages.filter((m: Meldung) => m.i === sourceFilter); return ( -
-

- -
- +
@@ -63,22 +59,20 @@ export default function Last20MessagesTable() { - {filteredMessages - .slice(0, 20) - .map((msg: Meldung, index: number) => ( - - - - - - {/* NEU */} - - ))} + {filteredMessages.slice(0, 20).map((msg, index) => ( + + + + + + + + ))}
-
-
{msg.t}{msg.i}{msg.m}{msg.v}
+
+
{msg.t}{msg.i}{msg.m}{msg.v}
{messages.length === 0 && ( diff --git a/package-lock.json b/package-lock.json index 2f8eb98..0eb7608 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.506", + "version": "1.6.507", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.506", + "version": "1.6.507", "dependencies": { "@fontsource/roboto": "^5.1.0", "@iconify-icons/ri": "^1.2.10", diff --git a/package.json b/package.json index ad419b6..3f2a73e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.506", + "version": "1.6.507", "private": true, "scripts": { "dev": "next dev",