Elffuss BraidHub

kikocis/continue public

Merge pull request #7220 from continuedev/dallin/move-docs-indexing-to-settings

chore: move docs section from lump toolbar to settings
Changesetad58281a51c9312251f42ab56f167ffa2fdb9105c33ff04070fe3a39928f2420
AuthorDallin Romney <dallinromney@gmail.com> · 2025-08-18 16:27 -07:00
CommitterGitHub <noreply@github.com> · 2025-08-18 16:27 -07:00
Parents8252ee135ab4, c34792a46c3d

Browse the files at this changeset

3 files changed

modified gui/src/components/mainInput/Lump/LumpToolbar/BlockSettingsTopToolbar.tsx +0 −2
@@ -1,5 +1,4 @@
11 import {
2- BookOpenIcon,
32 ChatBubbleLeftIcon,
43 ChevronLeftIcon,
54 CubeIcon,
@@ -47,7 +46,6 @@
4746 const sections: Section[] = [
4847 { id: "models", title: "Models", tooltip: "Models", icon: CubeIcon },
4948 { id: "rules", title: "Rules", tooltip: "Rules", icon: PencilIcon },
50- { id: "docs", title: "Docs", tooltip: "Docs", icon: BookOpenIcon },
5149 {
5250 id: "prompts",
5351 title: "Prompts",
modified gui/src/components/mainInput/Lump/sections/SelectedSection.tsx +0 −3
@@ -1,6 +1,5 @@
11 import { useLump } from "../LumpContext";
22 import { ContextSection } from "./ContextSection";
3-import DocsSection from "./docs/DocsSection";
43 import { ErrorSection } from "./errors/ErrorSection";
54 import MCPSection from "./mcp/MCPSection";
65 import { ModelsSection } from "./ModelsSection";
@@ -19,8 +18,6 @@
1918 return <ModelsSection />;
2019 case "rules":
2120 return <RulesSection />;
22- case "docs":
23- return <DocsSection />;
2421 case "prompts":
2522 return <PromptsSection />;
2623 case "context":
modified gui/src/pages/config/IndexingSettingsSection.tsx +22 −11
@@ -1,26 +1,37 @@
1+import DocsIndexingStatuses from "../../components/mainInput/Lump/sections/docs/DocsSection";
12 import { useAppSelector } from "../../redux/hooks";
23 import IndexingProgress from "./IndexingProgress";
34
45 export function IndexingSettingsSection() {
56 const config = useAppSelector((state) => state.config.config);
67 return (
7- <div className="py-5">
8+ <div className="flex flex-col gap-3 py-5">
89 <div>
910 <h3 className="mx-auto mb-1 mt-0 text-xl">@codebase index</h3>
1011 <span className="text-lightgray w-3/4 text-xs">
1112 Local embeddings of your codebase
1213 </span>
14+ {config.disableIndexing ? (
15+ <div className="pb-2 pt-5">
16+ <p className="py-1 text-center font-semibold">
17+ Indexing is disabled
18+ </p>
19+ <p className="text-lightgray cursor-pointer text-center text-xs">
20+ Open settings and toggle <code>Enable Indexing</code> to re-enable
21+ </p>
22+ </div>
23+ ) : (
24+ <IndexingProgress />
25+ )}
1326 </div>
14- {config.disableIndexing ? (
15- <div className="pb-2 pt-5">
16- <p className="py-1 text-center font-semibold">Indexing is disabled</p>
17- <p className="text-lightgray cursor-pointer text-center text-xs">
18- Open settings and toggle <code>Enable Indexing</code> to re-enable
19- </p>
20- </div>
21- ) : (
22- <IndexingProgress />
23- )}
27+
28+ <div className="mt-5">
29+ <h3 className="mx-auto mb-1 mt-0 text-xl">@docs index</h3>
30+ <span className="text-lightgray w-3/4 text-xs">
31+ Local embeddings of your documentation sources
32+ </span>
33+ </div>
34+ <DocsIndexingStatuses />
2435 </div>
2536 );
2637 }