From ad931d0c41d52fdb716bcebacf3d973a36b365cb Mon Sep 17 00:00:00 2001 From: Zainab2604 Date: Sun, 15 Jun 2025 13:37:22 +0200 Subject: [PATCH 1/3] Add Tooltip for missing values --- .../src/components/KennzahlenTable.tsx | 114 ++++++++++-------- 1 file changed, 61 insertions(+), 53 deletions(-) diff --git a/project/frontend/src/components/KennzahlenTable.tsx b/project/frontend/src/components/KennzahlenTable.tsx index 5808a5f..5a94dff 100644 --- a/project/frontend/src/components/KennzahlenTable.tsx +++ b/project/frontend/src/components/KennzahlenTable.tsx @@ -225,61 +225,69 @@ export default function KennzahlenTable({ ) : ( - - - {hasNoValue && ( - - )} - {editingIndex === row.setting.name ? ( - setEditValue(e.target.value)} - onKeyDown={(e) => - handleKeyPress(e, row.setting.name) - } - onBlur={() => handleSave(row.setting.name)} - autoFocus - size="small" - fullWidth - variant="standard" - sx={{ margin: "-8px 0" }} + + + + {hasNoValue && ( + + )} + {editingIndex === row.setting.name ? ( + setEditValue(e.target.value)} + onKeyDown={(e) => + handleKeyPress(e, row.setting.name) + } + onBlur={() => handleSave(row.setting.name)} + autoFocus + size="small" + fullWidth + variant="standard" + sx={{ margin: "-8px 0" }} + /> + ) : ( + + {row.extractedValues.at(0)?.entity || "—"} + + )} + + { + e.stopPropagation(); + startEditing( + row.extractedValues.at(0)?.entity || "", + row.setting.name, + ); + }} /> - ) : ( - - {row.extractedValues.at(0)?.entity || "—"} - - )} - - { - e.stopPropagation(); - startEditing( - row.extractedValues.at(0)?.entity || "", - row.setting.name, - ); - }} - /> - + + + )} From e666db3f7dc1274716c4bc0adf4807492c7a040f Mon Sep 17 00:00:00 2001 From: Zainab2604 Date: Sun, 15 Jun 2025 13:38:20 +0200 Subject: [PATCH 2/3] Fix typo --- project/frontend/src/components/KennzahlenTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/frontend/src/components/KennzahlenTable.tsx b/project/frontend/src/components/KennzahlenTable.tsx index 5a94dff..efd613d 100644 --- a/project/frontend/src/components/KennzahlenTable.tsx +++ b/project/frontend/src/components/KennzahlenTable.tsx @@ -226,7 +226,7 @@ export default function KennzahlenTable({ ) : ( From a075a9bb3578ec7c4a24b5aaf0cb7a556d929cc3 Mon Sep 17 00:00:00 2001 From: Zainab2604 Date: Sun, 15 Jun 2025 14:38:41 +0200 Subject: [PATCH 3/3] Add Problem to title --- project/frontend/src/components/KennzahlenTable.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/project/frontend/src/components/KennzahlenTable.tsx b/project/frontend/src/components/KennzahlenTable.tsx index efd613d..db0a891 100644 --- a/project/frontend/src/components/KennzahlenTable.tsx +++ b/project/frontend/src/components/KennzahlenTable.tsx @@ -226,7 +226,13 @@ export default function KennzahlenTable({ ) : ( + Problem +
+ Es wurden keine Kennzahlen gefunden. Bitte ergänzen! + : "" + } placement="bottom" arrow >