LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
[FIX] Disabling Setting buttons for Public share (#520)
harini-venkataraman574e12b22221
diff --git a/frontend/src/components/custom-tools/highlight-metadata/HighLightMetaData.jsx b/frontend/src/components/custom-tools/highlight-metadata/HighLightMetaData.jsxindex c8d7cae65..6cafd4887 100644--- a/frontend/src/components/custom-tools/highlight-metadata/HighLightMetaData.jsx+++ b/frontend/src/components/custom-tools/highlight-metadata/HighLightMetaData.jsx@@ -13,7 +13,7 @@ function HighLightMetaData({ handleUpdateTool }) {const [enableHighlighting, setEnableHighlighting] = useState(false);const [isLoading, setIsLoading] = useState(false);- const { details, updateCustomTool } = useCustomToolStore();+ const { details, updateCustomTool, isPublicSource } = useCustomToolStore();const { setAlertDetails } = useAlertStore();const handleException = useExceptionHandler();@@ -62,6 +62,7 @@ function HighLightMetaData({ handleUpdateTool }) {<Checkboxchecked={enableHighlighting}onChange={(e) => setEnableHighlighting(e.target.checked)}+ disabled={isPublicSource}/><Typography.Text>Enable Highlighting</Typography.Text></Space>@@ -90,7 +91,12 @@ function HighLightMetaData({ handleUpdateTool }) {</Space></Form.Item><Form.Item className="display-flex-right">- <CustomButton type="primary" htmlType="submit" loading={isLoading}>+ <CustomButton+ type="primary"+ htmlType="submit"+ loading={isLoading}+ disabled={isPublicSource}+ >Save</CustomButton></Form.Item>diff --git a/frontend/src/components/custom-tools/manage-llm-profiles/ManageLlmProfiles.jsx b/frontend/src/components/custom-tools/manage-llm-profiles/ManageLlmProfiles.jsxindex 31e9f5304..b57598594 100644--- a/frontend/src/components/custom-tools/manage-llm-profiles/ManageLlmProfiles.jsx+++ b/frontend/src/components/custom-tools/manage-llm-profiles/ManageLlmProfiles.jsx@@ -251,7 +251,7 @@ function ManageLlmProfiles() {<CustomButtontype="primary"onClick={handleAddNewLlmProfileBtnClick}- disabled={isMaxProfile}+ disabled={isMaxProfile || isPublicSource}>Add New LLM Profile</CustomButton>diff --git a/frontend/src/components/custom-tools/pre-and-post-amble-modal/PreAndPostAmbleModal.jsx b/frontend/src/components/custom-tools/pre-and-post-amble-modal/PreAndPostAmbleModal.jsxindex 4e86c641a..1f66e9992 100644--- a/frontend/src/components/custom-tools/pre-and-post-amble-modal/PreAndPostAmbleModal.jsx+++ b/frontend/src/components/custom-tools/pre-and-post-amble-modal/PreAndPostAmbleModal.jsx@@ -8,6 +8,7 @@ import { useCustomToolStore } from "../../../store/custom-tool-store";import { CustomButton } from "../../widgets/custom-button/CustomButton";import { useExceptionHandler } from "../../../hooks/useExceptionHandler";import SpaceWrapper from "../../widgets/space-wrapper/SpaceWrapper";+import DefaultPrompts from "./DefaultPrompts.json";const fieldNames = {@@ -92,6 +93,7 @@ function PreAndPostAmbleModal({ type, handleUpdateTool }) {rows={4}value={text}onChange={(e) => setText(e.target.value)}+ disabled={isPublicSource}/><Buttonsize="small"