@@ -110,13 +129,13 @@ export function BlockSettingsTopToolbar() {
onClick={handleEllipsisClick}
/>
- {sections.map((section) => (
+ {visibleSections.map((section) => (
);
diff --git a/gui/src/components/mainInput/Lump/sections/ErrorSection.tsx b/gui/src/components/mainInput/Lump/sections/ErrorSection.tsx
new file mode 100644
index 000000000..4b4e84f9b
--- /dev/null
+++ b/gui/src/components/mainInput/Lump/sections/ErrorSection.tsx
@@ -0,0 +1,54 @@
+import {
+ ExclamationCircleIcon,
+ ExclamationTriangleIcon,
+} from "@heroicons/react/24/outline";
+import { useAppSelector } from "../../../../redux/hooks";
+
+export function ErrorSection() {
+ const configError = useAppSelector((state) => state.config.configError);
+
+ const sortedErrors = configError
+ ? [...configError].sort((a, b) => (b.fatal ? 1 : 0) - (a.fatal ? 1 : 0))
+ : [];
+
+ return (
+
+
+
Config Errors
+
+ Please resolve the following errors in your assistant configuration.
+
+
+ {sortedErrors.length > 0 ? (
+
+ ) : (
+
+ No configuration errors found.
+
+ )}
+
+
+
+ );
+}
diff --git a/gui/src/components/mainInput/Lump/sections/SelectedSection.tsx b/gui/src/components/mainInput/Lump/sections/SelectedSection.tsx
index 0465e1f74..85f72078f 100644
--- a/gui/src/components/mainInput/Lump/sections/SelectedSection.tsx
+++ b/gui/src/components/mainInput/Lump/sections/SelectedSection.tsx
@@ -1,6 +1,7 @@
import { useLump } from "../LumpContext";
import { ContextSection } from "./ContextSection";
import DocsSection from "./docs/DocsSection";
+import { ErrorSection } from "./ErrorSection";
import { MCPSection } from "./MCPSection";
import { ModelsSection } from "./ModelsSection";
import { PromptsSection } from "./PromptsSection";
@@ -28,6 +29,8 @@ export function SelectedSection() {
return
;
case "mcp":
return
;
+ case "error":
+ return
;
default:
return null;
}
diff --git a/gui/src/pages/config-error/index.tsx b/gui/src/pages/config-error/index.tsx
deleted file mode 100644
index 7bd3a3050..000000000
--- a/gui/src/pages/config-error/index.tsx
+++ /dev/null
@@ -1,74 +0,0 @@
-import {
- ArrowLeftIcon,
- ExclamationCircleIcon,
- ExclamationTriangleIcon,
-} from "@heroicons/react/24/outline";
-import { useNavigate } from "react-router-dom";
-import { vscBackground } from "../../components";
-import { useAppSelector } from "../../redux/hooks";
-import { ROUTES } from "../../util/navigation";
-
-export default function ConfigErrorPage() {
- const navigate = useNavigate();
- const configError = useAppSelector((state) => state.config.configError);
-
- const sortedErrors = configError
- ? [...configError].sort((a, b) => (b.fatal ? 1 : 0) - (a.fatal ? 1 : 0))
- : [];
-
- return (
-
-
navigate(ROUTES.HOME)}
- className="sticky top-0 m-0 flex cursor-pointer items-center border-0 border-b border-solid border-b-zinc-700 bg-inherit p-0"
- style={{
- backgroundColor: vscBackground,
- }}
- >
-
-
Chat
-
-
-
-
-
Config Errors
-
- Please resolve the following errors in your assistant configuration.
-
-
- {sortedErrors.length > 0 ? (
-
- ) : (
-
- No configuration errors found.
-
- )}
-
-
-
-
- );
-}
diff --git a/gui/src/pages/gui/ConfigError.tsx b/gui/src/pages/gui/ConfigError.tsx
index c1cd12629..ee85046f1 100644
--- a/gui/src/pages/gui/ConfigError.tsx
+++ b/gui/src/pages/gui/ConfigError.tsx
@@ -25,7 +25,7 @@ const ConfigErrorIndicator = () => {
text="Config error"
onClick={onClickError}
>
-
+
);
};
diff --git a/gui/tailwind.config.cjs b/gui/tailwind.config.cjs
index fe2b8c0e4..f376aa2bc 100644
--- a/gui/tailwind.config.cjs
+++ b/gui/tailwind.config.cjs
@@ -43,6 +43,7 @@ module.exports = {
"list-active": "var(--vscode-list-activeSelectionBackground, #1bbe84)",
"list-active-foreground":
"var(--vscode-quickInputList-focusForeground, var(--vscode-editor-foreground))",
+ badge: "var(--vscode-badge-background, #1bbe84)",
},
},
},