Ayushrawatcy009 commented on code in PR #77455:
URL: https://github.com/apache/airflow/pull/77455#discussion_r4707558531


##########
airflow-core/src/airflow/ui/src/layouts/Details/Grid/GridTI.tsx:
##########
@@ -68,10 +72,29 @@ export const GridTI = ({
   const { groupId: selectedGroupId, runId: selectedRunId, taskId: 
selectedTaskId } = useParams();
   const { colorMode = "light" } = useColorMode();
   const location = useLocation();
+  const { t: translate } = useTranslation("components");
 
   const [searchParams] = useSearchParams();
+  const [isHovered, setIsHovered] = useState(false);
 
   const hasTaskInstance = instance.dag_version_number !== null && 
instance.dag_version_number !== undefined;
+  const tryNumberParam = searchParams.get(SearchParamsKeys.TRY_NUMBER);
+
+  const links = useTaskInstanceExtraLinks({
+    dagId,
+    dagRunId: runId,
+    enabled: isHovered && hasTaskInstance,

Review Comment:
   fixed in commit `7ab988f3bc`. 
   The comment is on the old `isHovered` version; the query is now enabled by 
`TaskInstanceTooltip`'s `onOpenChange`, so it runs only after the existing 
500ms tooltip delay and not for cells merely passed over. Tests use fake timers 
to verify the hook stays disabled until the tooltip opens.
   Changes made:
   - Replaced isHovered + onMouseEnter/onMouseLeave with isTooltipOpen.
   - Added onOpenChange={({ open }) => setIsTooltipOpen(open)} to 
TaskInstanceTooltip.
   - Applied the same gating in TaskNode.tsx.
   - Updated Grid/Graph tests to advance the 500ms tooltip delay before 
asserting the request is enabled.
   
   commit has `7ab988f3bc` been pushed to PR #77455. 



-- 
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