From 18551077b014da1a0cac25b7cc11cb4918566660 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Fri, 7 Jun 2024 12:14:18 -0300 Subject: [PATCH] Added triangle --- .../src/CustomNodes/GenericNode/index.tsx | 94 ++++++++++--------- src/frontend/src/utils/styleUtils.ts | 2 + 2 files changed, 54 insertions(+), 42 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 63b84a847..624189f11 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -437,54 +437,64 @@ export default function GenericNode({ {showNode && ( <> - {STATUS_BUILDING} - ) : !validationStatus ? ( - {STATUS_BUILD} - ) : ( -
-
- {lastRunTime && ( -
-
{RUN_TIMESTAMP_PREFIX}
-
- {lastRunTime} +
+ {isOutdated && ( + + )} + {STATUS_BUILDING} + ) : !validationStatus ? ( + {STATUS_BUILD} + ) : ( +
+
+ {lastRunTime && ( +
+
{RUN_TIMESTAMP_PREFIX}
+
+ {lastRunTime} +
+ )} +
+
+
Duration:
+
+ {validationStatus?.data.duration}
- )} -
-
-
Duration:
-
- {validationStatus?.data.duration}
-
- ) - } - side="bottom" - > - -
+
+ {renderIconStatus()} +
+ + +
)}
diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts index ece2e6539..28d0f9d7d 100644 --- a/src/frontend/src/utils/styleUtils.ts +++ b/src/frontend/src/utils/styleUtils.ts @@ -115,6 +115,7 @@ import { Settings, Settings2, Share, + AlertTriangle, Share2, Shield, Sliders, @@ -431,6 +432,7 @@ export const nodeIconsLucide: iconsType = { SunIcon, MoonIcon, Bell, + AlertTriangle, ChevronLeft, SlidersHorizontal, Palette,