diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index b7b49a7618..df42f62ad8 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -187,6 +187,8 @@ services: image: unstract/runner:${VERSION} container_name: unstract-runner restart: unless-stopped + profiles: + - legacy-runner ports: - 5002:5002 env_file: diff --git a/frontend/src/components/agency/tool-info-card/ToolInfoCard.css b/frontend/src/components/agency/tool-info-card/ToolInfoCard.css index 95a3e2bafc..67c4cb4979 100644 --- a/frontend/src/components/agency/tool-info-card/ToolInfoCard.css +++ b/frontend/src/components/agency/tool-info-card/ToolInfoCard.css @@ -30,3 +30,8 @@ grid-auto-flow: column; justify-self: end; } + +.toolinfo-card-deprecated { + opacity: 0.6; + cursor: not-allowed; +} diff --git a/frontend/src/components/agency/tool-info-card/ToolInfoCard.jsx b/frontend/src/components/agency/tool-info-card/ToolInfoCard.jsx index e972d1f0a0..5325f31f4e 100644 --- a/frontend/src/components/agency/tool-info-card/ToolInfoCard.jsx +++ b/frontend/src/components/agency/tool-info-card/ToolInfoCard.jsx @@ -1,4 +1,4 @@ -import { Card, Col, Row, Typography } from "antd"; +import { Card, Col, Row, Tag, Tooltip, Typography } from "antd"; import PropTypes from "prop-types"; import { useDrag } from "react-dnd"; @@ -6,13 +6,19 @@ import "./ToolInfoCard.css"; import { ToolIcon } from "../tool-icon/ToolIcon"; function ToolInfoCard({ toolInfo }) { + const isDeprecated = toolInfo?.deprecated; + const [, ref] = useDrag({ type: "STEP", item: { function_name: toolInfo?.function_name }, + canDrag: !isDeprecated, }); return ( - + @@ -21,6 +27,13 @@ function ToolInfoCard({ toolInfo }) {
{toolInfo?.name} + {isDeprecated && ( + + + Deprecated + + + )}