Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

added warning message for mrq hightlight (#558)

vishnuszipstack0a4a1c103152
diff --git a/frontend/src/components/agency/ds-settings-card/DsSettingsCard.jsx b/frontend/src/components/agency/ds-settings-card/DsSettingsCard.jsx
index c968a4169..9958f52dd 100644
--- a/frontend/src/components/agency/ds-settings-card/DsSettingsCard.jsx
+++ b/frontend/src/components/agency/ds-settings-card/DsSettingsCard.jsx
@@ -14,6 +14,7 @@ import {
Space,
Tooltip,
Typography,
+ Modal,
} from "antd";
import PropTypes from "prop-types";
import { useEffect, useState } from "react";
@@ -311,7 +312,6 @@ function DsSettingsCard({ type, endpointDetails, message }) {
},
data: body,
};
-
axiosPrivate(requestOptions)
.then((res) => {
const data = res?.data || {};
@@ -321,6 +321,21 @@ function DsSettingsCard({ type, endpointDetails, message }) {
} else {
updatedData["destination"] = data;
}
+
+ // Remove the below code once new highlight feature implemented
+ // Show warning message to user when MRQ selected as destination to enable highlight
+ if (
+ type === "output" &&
+ updatedData?.destination?.connection_type === "MANUALREVIEW"
+ ) {
+ Modal.warning({
+ title: "Warning",
+ content:
+ "Please ensure that the tool in use is exported with Highlighting enabled.",
+ });
+ }
+ // Warning message section.
+
updateWorkflow(updatedData);
if (showSuccess) {
setAlertDetails({