This is an automated email from the ASF dual-hosted git repository.

husseinawala pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new d0ae60f77e feat(ui/graph): enhance task status visibility (#34486)
d0ae60f77e is described below

commit d0ae60f77e1472585d62a3eb44d64d9da974a199
Author: Đỗ Trọng Hải <[email protected]>
AuthorDate: Tue Sep 26 01:06:41 2023 +0700

    feat(ui/graph): enhance task status visibility (#34486)
---
 airflow/www/static/js/dag/details/graph/Node.tsx |  11 ++++++++---
 docs/apache-airflow/img/demo_graph_view.png      | Bin 38016 -> 382210 bytes
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/airflow/www/static/js/dag/details/graph/Node.tsx 
b/airflow/www/static/js/dag/details/graph/Node.tsx
index 6ae8489f13..5d777b1673 100644
--- a/airflow/www/static/js/dag/details/graph/Node.tsx
+++ b/airflow/www/static/js/dag/details/graph/Node.tsx
@@ -93,6 +93,11 @@ export const BaseNode = ({
     [, operatorTextColor] = labelStyle.split(":");
   }
 
+  const nodeBorderColor =
+    instance?.state && stateColors[instance.state]
+      ? `${stateColors[instance.state]}.400`
+      : "gray.400";
+
   return (
     <Tooltip
       label={
@@ -107,8 +112,8 @@ export const BaseNode = ({
     >
       <Box
         borderRadius={5}
-        borderWidth={1}
-        borderColor={isSelected ? "blue.400" : "gray.400"}
+        borderWidth={isSelected ? 2.5 : 1.5}
+        borderColor={nodeBorderColor}
         bg={isSelected ? "blue.50" : bg}
         height={`${height}px`}
         width={`${width}px`}
@@ -150,7 +155,7 @@ export const BaseNode = ({
             {!!instance && instance.state && (
               <Flex alignItems="center">
                 <SimpleStatus state={instance.state} />
-                <Text ml={2} color="gray.500" fontSize="md">
+                <Text ml={2} color="gray.500" fontSize="lg">
                   {instance.state}
                 </Text>
               </Flex>
diff --git a/docs/apache-airflow/img/demo_graph_view.png 
b/docs/apache-airflow/img/demo_graph_view.png
index 001ecbe517..9dcbae88a8 100644
Binary files a/docs/apache-airflow/img/demo_graph_view.png and 
b/docs/apache-airflow/img/demo_graph_view.png differ

Reply via email to