- {/* Slot Badge */}
KÜ
@@ -175,98 +162,117 @@ const TDRChartActionBar: React.FC = () => {
{selectedSlot !== null ? selectedSlot + 1 : "-"}
- {/* Referenz speichern */}
- {selectedId !== null && (
+ {/* Date range always visible */}
+
+ {isMeldungen ? (
- )}
- {/* Start TDR */}
-
- {/* Messung Dropdown */}
-
-
{
- setSelectedId(id);
- if (id !== null) dispatch(getTDRChartDataByIdThunk(id));
- }}
- disabled={idsForSlot.length === 0}
- >
-
-
-
- {selectedId
- ? (() => {
- const selected = idsForSlot.find(
- (e) => e.id === selectedId
- );
- return selected
- ? `${new Date(selected.t).toLocaleString("de-DE", {
- day: "2-digit",
- month: "2-digit",
- year: "numeric",
- hour: "2-digit",
- minute: "2-digit",
- second: "2-digit",
- })} – Fehlerstelle: ${selected.d} m`
- : "Wähle Messung";
- })()
- : "Wähle Messung"}
-
-
-
-
- {idsForSlot.map((entry) => {
- const dateLabel = new Date(entry.t).toLocaleString("de-DE", {
- day: "2-digit",
- month: "2-digit",
- year: "numeric",
- hour: "2-digit",
- minute: "2-digit",
- second: "2-digit",
- });
- const fullText = `${dateLabel} – Fehlerstelle: ${entry.d} m`;
- return (
- {
- const base =
- "px-3 h-8 cursor-pointer rounded-sm m-0.5 flex items-center justify-start transition-colors text-[13px]";
- if (selected)
- return `${base} dropdown-option-active font-medium`;
- if (active) return `${base} dropdown-option-hover`;
- return `${base}`; // neutral text color comes from parent/theme
- }}
- >
- {fullText}
-
- );
- })}
-
+ ) : (
+ <>
+ {selectedId !== null && (
+
+ )}
+
+
+
{
+ setSelectedId(id);
+ if (id !== null) dispatch(getTDRChartDataByIdThunk(id));
+ }}
+ disabled={idsForSlot.length === 0}
+ >
+
+
+
+ {selectedId
+ ? (() => {
+ const selected = idsForSlot.find(
+ (e) => e.id === selectedId
+ );
+ return selected
+ ? `${new Date(selected.t).toLocaleString(
+ "de-DE",
+ {
+ day: "2-digit",
+ month: "2-digit",
+ year: "numeric",
+ hour: "2-digit",
+ minute: "2-digit",
+ second: "2-digit",
+ }
+ )} – Fehlerstelle: ${selected.d} m`
+ : "Wähle Messung";
+ })()
+ : "Wähle Messung"}
+
+
+
+
+ {idsForSlot.map((entry) => {
+ const dateLabel = new Date(entry.t).toLocaleString(
+ "de-DE",
+ {
+ day: "2-digit",
+ month: "2-digit",
+ year: "numeric",
+ hour: "2-digit",
+ minute: "2-digit",
+ second: "2-digit",
+ }
+ );
+ const fullText = `${dateLabel} – Fehlerstelle: ${entry.d} m`;
+ return (
+ {
+ const base =
+ "px-3 h-8 cursor-pointer rounded-sm m-0.5 flex items-center justify-start transition-colors text-[13px]";
+ if (selected)
+ return `${base} dropdown-option-active font-medium`;
+ if (active) return `${base} dropdown-option-hover`;
+ return `${base}`;
+ }}
+ >
+ {fullText}
+
+ );
+ })}
+
+
+
-
-
+ >
+ )}
{tdrRunning && (
diff --git a/package-lock.json b/package-lock.json
index 20a7a3b..326854e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "cpl-v4",
- "version": "1.6.884",
+ "version": "1.6.885",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cpl-v4",
- "version": "1.6.884",
+ "version": "1.6.885",
"dependencies": {
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
diff --git a/package.json b/package.json
index 466d897..f0fefc6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cpl-v4",
- "version": "1.6.884",
+ "version": "1.6.885",
"private": true,
"scripts": {
"dev": "next dev -p 3000",
diff --git a/playwright/tests/components/main/kabelueberwachung/isoModal.test.ts b/playwright/tests/components/main/kabelueberwachung/isoModal.test.ts
index 141e711..1862cbb 100644
--- a/playwright/tests/components/main/kabelueberwachung/isoModal.test.ts
+++ b/playwright/tests/components/main/kabelueberwachung/isoModal.test.ts
@@ -78,9 +78,12 @@ test.describe("ISO Modal", () => {
dialog.getByRole("cell", { name: header })
);
}
-
- await expect(dialog.getByText("Von")).not.toBeVisible();
- await expect(dialog.getByText("Bis")).not.toBeVisible();
+ // In Meldungen view only Von/Bis + Anzeigen (no mode dropdown)
+ await expect(dialog.getByText("Von")).toBeVisible();
+ await expect(dialog.getByText("Bis")).toBeVisible();
+ await expect(
+ dialog.getByRole("button", { name: "Anzeigen" })
+ ).toBeVisible();
await viewToggle.click();
await page.getByRole("option", { name: "Messkurve" }).click();