From 327d1de6212c2dd62b61f89f3f586bfbb774e216 Mon Sep 17 00:00:00 2001 From: JGerla Date: Tue, 20 Jan 2026 12:54:47 +0100 Subject: [PATCH] feat: Added visual separation between global and node or handle specific warnings ref: N25B-450 --- .../components/WarningSidebar.tsx | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/pages/VisProgPage/visualProgrammingUI/components/WarningSidebar.tsx b/src/pages/VisProgPage/visualProgrammingUI/components/WarningSidebar.tsx index da64e89..113467d 100644 --- a/src/pages/VisProgPage/visualProgrammingUI/components/WarningSidebar.tsx +++ b/src/pages/VisProgPage/visualProgrammingUI/components/WarningSidebar.tsx @@ -82,26 +82,6 @@ function WarningsList(props: { warnings: EditorWarning[] }) { ) } - if (splitWarnings.global.length === 0) { - return ( -
-
-
global:
-
- No global warnings! -
-
-
-
other:
-
- {splitWarnings.other.map((warning) => ( - - ))} -
-
-
- ); - } return (
@@ -110,6 +90,7 @@ function WarningsList(props: { warnings: EditorWarning[] }) { {splitWarnings.global.map((warning) => ( ))} + {splitWarnings.global.length === 0 && "No global warnings!"}
@@ -118,6 +99,7 @@ function WarningsList(props: { warnings: EditorWarning[] }) { {splitWarnings.other.map((warning) => ( ))} + {splitWarnings.other.length === 0 && "No other warnings!"}