finish updating dialog design sweep items

This commit is contained in:
Brent O'Neill 2025-09-24 12:43:08 -06:00
parent f7882fe31d
commit 6f513df9f3
2 changed files with 26 additions and 8 deletions

View file

@ -738,8 +738,8 @@ function KnowledgeSourcesPage() {
Restore Flow Restore Flow
</Button> </Button>
} }
title="Restore default Agent flow" title="Restore default Retrieval flow"
description="This restores defaults and discards all custom settings and overrides. This can't be undone." description="This restores defaults and discards all custom settings and overrides. This cant be undone."
confirmText="Restore" confirmText="Restore"
variant="destructive" variant="destructive"
onConfirm={handleRestoreRetrievalFlow} onConfirm={handleRestoreRetrievalFlow}
@ -772,8 +772,18 @@ function KnowledgeSourcesPage() {
Edit in Langflow Edit in Langflow
</Button> </Button>
} }
title="Edit Agent flow in Langflow" title="Edit Retrieval flow in Langflow"
description="You're entering Langflow. You can edit the Agent flow and other underlying flows. Manual changes to components, wiring, or I/O can break this experience.\nYou can restore this flow from Settings." description={
<>
<p className="mb-2">
You're entering Langflow. You can edit the{" "}
<b>Retrieval flow</b> and other underlying flows. Manual
changes to components, wiring, or I/O can break this
experience.
</p>
<p>You can restore this flow from Settings.</p>
</>
}
confirmText="Proceed" confirmText="Proceed"
confirmIcon={<ArrowUpRight />} confirmIcon={<ArrowUpRight />}
onConfirm={(closeDialog) => onConfirm={(closeDialog) =>
@ -911,9 +921,17 @@ function KnowledgeSourcesPage() {
</Button> </Button>
} }
title="Edit Ingest flow in Langflow" title="Edit Ingest flow in Langflow"
description={` description={
You're entering Langflow. You can edit the Ingest flow and other underlying flows. Manual changes to components, wiring, or I/O can break this experience. <>
You can restore this flow from Settings.`} <p className="mb-2">
You're entering Langflow. You can edit the{" "}
<b>Ingest flow</b> and other underlying flows. Manual
changes to components, wiring, or I/O can break this
experience.
</p>
<p>You can restore this flow from Settings.</p>
</>
}
confirmText="Proceed" confirmText="Proceed"
confirmIcon={<ArrowUpRight />} confirmIcon={<ArrowUpRight />}
variant="warning" variant="warning"

View file

@ -15,7 +15,7 @@ import { Button } from "@/components/ui/button";
interface ConfirmationDialogProps { interface ConfirmationDialogProps {
trigger: ReactNode; trigger: ReactNode;
title: string; title: string;
description: string; description: ReactNode;
confirmText?: string; confirmText?: string;
cancelText?: string; cancelText?: string;
onConfirm: (closeDialog: () => void) => void; onConfirm: (closeDialog: () => void) => void;