Ayushrawatcy009 commented on issue #77405: URL: https://github.com/apache/airflow/issues/77405#issuecomment-7048122185
Hello @pedro-cf !!! I'm interested in working on this issue . **Proposed approach:** 1. **Fetch links lazily.** Reuse the existing `useTaskInstanceServiceGetExtraLinks` hook (already used by the task-instance Details `ExtraLinks` tab) with each cell's dag/run/task IDs. Call it only on hover/Alt-press rather than on initial render, and let the query cache avoid a request per cell. Filter out `null` URLs. 2. **One shared hook for both views.** Grid and Graph have separate click paths (`Grid.handleCellClick` → `GridTI`, and `TaskLink`/`TaskNode`), so I'd put the modifier-click logic in a small shared hook under `src/hooks/` and wire it into both. It would check `event.altKey`, call `preventDefault()`, and open via `window.open(url, "_blank", "noopener")` as suggested. Existing Shift/Ctrl/Cmd selection and middle-click behavior stays untouched. 3. **One vs. many links.** Single link opens directly. Multiple links show a small Chakra popover/menu to pick one. No links falls through to normal navigation. 4. **Safety + hint.** Validate URLs with `getSafeExternalUrl()` and honor `getLinkTarget()` instead of opening arbitrary values. Append a hint such as "Alt+click to open Triggered DAG" to the existing `TaskInstanceTooltip` only when links are available. 5. **Tests.** Cover the shared hook (one/many/none, null filtering, non-Alt passthrough, blocked URL schemes), plus rendering tests for the Grid and Graph click wiring. If this issue is still available, would you please assign it to me? I’ll work on this issue and open a focused PR. -- 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]
