diff --git a/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingStatus.tsx b/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingStatus.tsx
index 7ddf3feb7..3b261cf89 100644
--- a/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingStatus.tsx
+++ b/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingStatus.tsx
@@ -2,10 +2,10 @@ import {
ArrowPathIcon,
ArrowTopRightOnSquareIcon,
StopIcon,
- TrashIcon,
} from "@heroicons/react/24/outline";
import { SiteIndexingConfig } from "core";
import { useContext, useMemo, useState } from "react";
+import { useAuth } from "../../../../../context/Auth";
import { IdeMessengerContext } from "../../../../../context/IdeMessenger";
import { useAppDispatch, useAppSelector } from "../../../../../redux/hooks";
import { updateIndexingStatus } from "../../../../../redux/slices/indexingSlice";
@@ -22,8 +22,8 @@ interface IndexingStatusViewerProps {
}
function DocsIndexingStatus({ docConfig }: IndexingStatusViewerProps) {
- const config = useAppSelector((store) => store.config.config);
const ideMessenger = useContext(IdeMessengerContext);
+ const { selectedProfile } = useAuth();
const dispatch = useAppDispatch();
const status = useAppSelector(
@@ -138,12 +138,14 @@ function DocsIndexingStatus({ docConfig }: IndexingStatusViewerProps) {
/>
)}
- {status?.status !== "indexing" ? (
+ {/* Commenting out until we have ability to edit local YAML for the user to remove the docs */}
+ {/* {selectedProfile?.profileType === "local" &&
+ status?.status !== "indexing" ? (
- ) : null}
+ ) : null} */}
diff --git a/gui/src/components/mainInput/Lump/sections/docs/DocsSection.tsx b/gui/src/components/mainInput/Lump/sections/docs/DocsSection.tsx
index e58ecb673..158e363a9 100644
--- a/gui/src/components/mainInput/Lump/sections/docs/DocsSection.tsx
+++ b/gui/src/components/mainInput/Lump/sections/docs/DocsSection.tsx
@@ -1,3 +1,4 @@
+import { PlusIcon } from "@heroicons/react/24/outline";
import { IndexingStatus } from "core";
import { useMemo } from "react";
import { useDispatch } from "react-redux";
@@ -6,6 +7,7 @@ import {
setDialogMessage,
setShowDialog,
} from "../../../../../redux/slices/uiSlice";
+import { getFontSize } from "../../../../../util";
import AddDocsDialog from "../../../../dialogs/AddDocsDialog";
import DocsIndexingStatus from "./DocsIndexingStatus";
@@ -69,17 +71,19 @@ function DocsIndexingStatuses() {
})}
{sortedConfigDocs.length > 0 && (
-
diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx
index 3bda3b95e..c6b6c798a 100644
--- a/gui/src/components/modelSelection/ModelSelect.tsx
+++ b/gui/src/components/modelSelection/ModelSelect.tsx
@@ -1,11 +1,11 @@
import { Listbox } from "@headlessui/react";
import {
+ CheckIcon,
ChevronDownIcon,
Cog6ToothIcon,
CubeIcon,
PlusIcon,
TrashIcon,
- CheckIcon,
} from "@heroicons/react/24/outline";
import { useContext, useEffect, useRef, useState } from "react";
import { useDispatch } from "react-redux";
@@ -29,7 +29,6 @@ interface ModelOptionProps {
option: Option;
idx: number;
showMissingApiKeyMsg: boolean;
- showDelete?: boolean;
isSelected?: boolean;
}
@@ -132,7 +131,6 @@ function modelSelectTitle(model: any): string {
function ModelOption({
option,
idx,
- showDelete,
showMissingApiKeyMsg,
isSelected,
}: ModelOptionProps) {
@@ -199,12 +197,7 @@ function ModelOption({
- {showDelete && (
-
- )}
- {isSelected && (
-
- )}
+ {isSelected && }
@@ -342,7 +335,6 @@ function ModelSelect() {
option={option}
idx={idx}
key={idx}
- showDelete={options.length > 1}
showMissingApiKeyMsg={option.apiKey === ""}
isSelected={option.value === defaultModel?.title}
/>