bbovenzi commented on a change in pull request #22123:
URL: https://github.com/apache/airflow/pull/22123#discussion_r832449943



##########
File path: airflow/www/static/js/tree/StatusBox.jsx
##########
@@ -24,55 +24,76 @@ import { isEqual } from 'lodash';
 import {
   Box,
   Tooltip,
+  useTheme,
 } from '@chakra-ui/react';
 
-import { callModal } from '../dag';
 import InstanceTooltip from './InstanceTooltip';
+import { useContainerRef } from './providers/containerRef';
+import { useSelection } from './providers/selection';
 
 export const boxSize = 10;
 export const boxSizePx = `${boxSize}px`;
 
+export const SimpleStatus = ({ state, ...rest }) => (
+  <Box
+    width={boxSizePx}
+    height={boxSizePx}
+    backgroundColor={stateColors[state] || 'white'}
+    borderRadius="2px"
+    borderWidth={state ? 0 : 1}
+    {...rest}
+  />
+);
+
 const StatusBox = ({
-  group, instance, containerRef, extraLinks = [],
+  group, instance,
 }) => {
-  const {
-    executionDate, taskId, tryNumber = 0, operator, runId, mapIndex,
-  } = instance;
-  const onClick = () => executionDate && callModal(taskId, executionDate, 
extraLinks, tryNumber, operator === 'SubDagOperator', runId, mapIndex);
+  const containerRef = useContainerRef();
+  const { selected, onSelect } = useSelection();
+  const { runId, taskId } = instance;
+  const { colors } = useTheme();
+  const hoverBlue = `${colors.blue[100]}50`;

Review comment:
       Yes, the `50` is the transparency value like you were using `rgba()` 
instead of `rgb()`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to