Skip to content

Commit

Permalink
feat(ui/graph): enhance task status visibility (#34486)
Browse files Browse the repository at this point in the history
  • Loading branch information
hainenber committed Sep 25, 2023
1 parent 404666d commit d0ae60f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions airflow/www/static/js/dag/details/graph/Node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand All @@ -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`}
Expand Down Expand Up @@ -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>
Expand Down
Binary file modified docs/apache-airflow/img/demo_graph_view.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d0ae60f

Please sign in to comment.