OscarLigthart commented on code in PR #57237:
URL: https://github.com/apache/airflow/pull/57237#discussion_r2482654881
##########
airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.tsx:
##########
@@ -58,12 +59,29 @@ const nodeColor = (
return "";
};
-export const Graph = () => {
+type GraphProps = {
+ readonly filterMode: FilterMode;
+ readonly filterRoot: string | undefined;
+ readonly setFilterRoot: (root: string | undefined) => void;
+};
+
+export const Graph = ({ filterMode, filterRoot, setFilterRoot }: GraphProps)
=> {
const { colorMode = "light" } = useColorMode();
const { dagId = "", runId = "", taskId } = useParams();
const selectedVersion = useSelectedVersion();
+ const handleNodeClick = (_event: React.MouseEvent, node:
ReactFlowNode<CustomNodeProps>) => {
+ if (filterMode !== "none") {
+ return;
+ }
+ // Only set filter root for actual tasks, not DAGs or other node types
+ // This just stores which task was clicked - it doesn't activate the filter
+ if (!node.id.startsWith("dag:") && !node.id.startsWith("asset")) {
Review Comment:
Let me know 👍
--
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]