Changed settings page to alert user that he has to disable lock flow
This commit is contained in:
parent
7768d4cef7
commit
1def1a1576
1 changed files with 1277 additions and 1269 deletions
|
|
@ -35,6 +35,7 @@ import {
|
||||||
UI_CONSTANTS,
|
UI_CONSTANTS,
|
||||||
} from "@/lib/constants";
|
} from "@/lib/constants";
|
||||||
import { useDebounce } from "@/lib/debounce";
|
import { useDebounce } from "@/lib/debounce";
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
import GoogleDriveIcon from "../../components/icons/google-drive-logo";
|
import GoogleDriveIcon from "../../components/icons/google-drive-logo";
|
||||||
import OneDriveIcon from "../../components/icons/one-drive-logo";
|
import OneDriveIcon from "../../components/icons/one-drive-logo";
|
||||||
import SharePointIcon from "../../components/icons/share-point-logo";
|
import SharePointIcon from "../../components/icons/share-point-logo";
|
||||||
|
|
@ -42,7 +43,6 @@ import { useUpdateSettingsMutation } from "../api/mutations/useUpdateSettingsMut
|
||||||
import { ModelSelector } from "../onboarding/_components/model-selector";
|
import { ModelSelector } from "../onboarding/_components/model-selector";
|
||||||
import ModelProviders from "./_components/model-providers";
|
import ModelProviders from "./_components/model-providers";
|
||||||
import { getModelLogo, type ModelProvider } from "./_helpers/model-helpers";
|
import { getModelLogo, type ModelProvider } from "./_helpers/model-helpers";
|
||||||
import { cn } from "@/lib/utils";
|
|
||||||
|
|
||||||
const { MAX_SYSTEM_PROMPT_CHARS } = UI_CONSTANTS;
|
const { MAX_SYSTEM_PROMPT_CHARS } = UI_CONSTANTS;
|
||||||
|
|
||||||
|
|
@ -974,6 +974,10 @@ function KnowledgeSourcesPage() {
|
||||||
changes to components, wiring, or I/O can break this
|
changes to components, wiring, or I/O can break this
|
||||||
experience.
|
experience.
|
||||||
</p>
|
</p>
|
||||||
|
<p className="mb-2">
|
||||||
|
To enable editing, you need to unlock the flow by clicking
|
||||||
|
on its name and disabling the <b>Lock flow</b> option.
|
||||||
|
</p>
|
||||||
<p>You can restore this flow from Settings.</p>
|
<p>You can restore this flow from Settings.</p>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|
@ -1118,6 +1122,10 @@ function KnowledgeSourcesPage() {
|
||||||
changes to components, wiring, or I/O can break this
|
changes to components, wiring, or I/O can break this
|
||||||
experience.
|
experience.
|
||||||
</p>
|
</p>
|
||||||
|
<p className="mb-2">
|
||||||
|
To enable editing, you need to unlock the flow by clicking
|
||||||
|
on its name and disabling the <b>Lock flow</b> option.
|
||||||
|
</p>
|
||||||
<p>You can restore this flow from Settings.</p>
|
<p>You can restore this flow from Settings.</p>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue