diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index e8f7b966b..f1b847bfa 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.13", + "version": "1.1.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.13", + "version": "1.1.14", "license": "Apache-2.0", "dependencies": { "@continuedev/fetch": "^1.0.3", diff --git a/gui/src/components/PageHeader.tsx b/gui/src/components/PageHeader.tsx index c6f55e67e..ceb9bd64a 100644 --- a/gui/src/components/PageHeader.tsx +++ b/gui/src/components/PageHeader.tsx @@ -8,7 +8,7 @@ export interface PageHeaderProps { showBorder?: boolean; } -export default function PageHeader({ +export function PageHeader({ onTitleClick, title, rightContent, @@ -22,27 +22,26 @@ export default function PageHeader({ : "" }`} > -
- {title && ( - <> -
- - - {title} - -
- - )} -
-
{rightContent}
+ {title ? ( +
+ + + {title} + +
+ ) : ( +
+ )} + + {rightContent &&
{rightContent}
}
); } diff --git a/gui/src/components/StepContainer/ThinkingIndicator.tsx b/gui/src/components/StepContainer/ThinkingIndicator.tsx index 8757cae83..862351872 100644 --- a/gui/src/components/StepContainer/ThinkingIndicator.tsx +++ b/gui/src/components/StepContainer/ThinkingIndicator.tsx @@ -1,7 +1,7 @@ +import { ChatHistoryItem } from "core"; import { useEffect, useState } from "react"; import { useAppSelector } from "../../redux/hooks"; import { selectDefaultModel } from "../../redux/slices/configSlice"; -import { ChatHistoryItem } from "core"; interface ThinkingIndicatorProps { historyItem: ChatHistoryItem; @@ -37,7 +37,7 @@ const ThinkingIndicator = ({ historyItem }: ThinkingIndicatorProps) => { return (
- {`Thinking.${".".repeat(animation)}`} + {`Thinking.${".".repeat(animation)}`}
); }; diff --git a/gui/src/components/dialogs/AddDocsDialog.tsx b/gui/src/components/dialogs/AddDocsDialog.tsx index f8006cee7..cb7b02f41 100644 --- a/gui/src/components/dialogs/AddDocsDialog.tsx +++ b/gui/src/components/dialogs/AddDocsDialog.tsx @@ -84,7 +84,7 @@ function AddDocsDialog() {

Add documentation

Add docs

-

+

For the @docs context provider

@@ -160,7 +160,7 @@ function AddDocsDialog() {
-

+

Closing this dialog will not affect indexing progress

diff --git a/gui/src/components/indexing/ChatIndexingPeeks.tsx b/gui/src/components/indexing/ChatIndexingPeeks.tsx index a7eaed7fb..3c0856f45 100644 --- a/gui/src/components/indexing/ChatIndexingPeeks.tsx +++ b/gui/src/components/indexing/ChatIndexingPeeks.tsx @@ -35,7 +35,7 @@ function ChatIndexingPeek({ state }: ChatIndexingPeekProps) {
-

+

{state.displayName}

@@ -47,17 +47,17 @@ function ChatIndexingPeek({ state }: ChatIndexingPeekProps) { }} />
-
+
{state.progressPercentage.toFixed(0)}%
{ dispatch( setIndexingChatPeekHidden({ type: state.type, hidden: true }), diff --git a/gui/src/components/mainInput/Lump/sections/docs/DocsDetailsDialog.tsx b/gui/src/components/mainInput/Lump/sections/docs/DocsDetailsDialog.tsx index 2aa0698f0..df07aafee 100644 --- a/gui/src/components/mainInput/Lump/sections/docs/DocsDetailsDialog.tsx +++ b/gui/src/components/mainInput/Lump/sections/docs/DocsDetailsDialog.tsx @@ -65,8 +65,8 @@ function DocsDetailsDialog({ startUrl }: DocsDetailsDialogProps) { if (data) { comp = (
-

{`Title: ${data.config.title}`}

-

{`Pre-indexed doc: ${data.isPreIndexedDoc}`}

+

{`Title: ${data.config.title}`}

+

{`Pre-indexed doc: ${data.isPreIndexedDoc}`}

{!data.chunks?.length ? (
No article chunks
) : ( @@ -145,7 +145,7 @@ function DocsDetailsDialog({ startUrl }: DocsDetailsDialogProps) {

Docs index

{ e.stopPropagation(); ideMessenger.post("openUrl", startUrl); diff --git a/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingPeeks.tsx b/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingPeeks.tsx index bb2c75618..548cde046 100644 --- a/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingPeeks.tsx +++ b/gui/src/components/mainInput/Lump/sections/docs/DocsIndexingPeeks.tsx @@ -21,14 +21,14 @@ function DocsIndexingPeek({ status }: DocsIndexingPeekProps) { return (

{ // navigate("/more"); TODO dispatch(setShowDialog(false)); dispatch(setDialogMessage(undefined)); }} > -

+

{status.title}

@@ -39,12 +39,12 @@ function DocsIndexingPeek({ status }: DocsIndexingPeekProps) { }} />
-
+
{progressPercentage.toFixed(0)}% {/* */}
diff --git a/gui/src/pages/config/AccountButton.tsx b/gui/src/pages/config/AccountButton.tsx index 0eaf4e471..79f31fd7d 100644 --- a/gui/src/pages/config/AccountButton.tsx +++ b/gui/src/pages/config/AccountButton.tsx @@ -17,7 +17,7 @@ export function AccountButton() { return ( - + diff --git a/gui/src/pages/config/ConfigItemSelect.tsx b/gui/src/pages/config/ConfigItemSelect.tsx new file mode 100644 index 000000000..19d2556b9 --- /dev/null +++ b/gui/src/pages/config/ConfigItemSelect.tsx @@ -0,0 +1,87 @@ +/** + * A component that displays config items either as tabs (on large screens) or a popover select (on small screens) + */ +interface ConfigItemSelectProps { + items: { + id: string; + label: string; + icon: React.ReactNode; + }[]; + activeId: string; + onSelect: (id: string) => void; +} + +import { Popover } from "@headlessui/react"; +import { ChevronDownIcon } from "@heroicons/react/24/outline"; +import PopoverTransition from "../../components/mainInput/InputToolbar/bottom/PopoverTransition"; +import { fontSize } from "../../util"; + +export function ConfigItemSelect({ + items, + activeId, + onSelect, +}: ConfigItemSelectProps) { + const activeItem = items.find((item) => item.id === activeId); + + const tabContent = ( +
+ {items.map((item) => ( +
onSelect(item.id)} + > + {item.icon} + {item.label} +
+ ))} +
+ ); + + // Render popover on smaller screens + const popoverContent = ( +
+ + +
+ {activeItem?.icon} + {activeItem?.label} +
+ +
+ + + + {items.map((item) => ( +
{ + onSelect(item.id); + }} + > + {item.icon} + {item.label} +
+ ))} +
+
+
+
+ ); + + return ( + <> + {tabContent} + {popoverContent} + + ); +} diff --git a/gui/src/pages/config/IndexingProgress/IndexingProgressIndicator.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressIndicator.tsx index 2b271c837..c7c8602dc 100644 --- a/gui/src/pages/config/IndexingProgress/IndexingProgressIndicator.tsx +++ b/gui/src/pages/config/IndexingProgress/IndexingProgressIndicator.tsx @@ -1,10 +1,10 @@ -import { IndexingProgressUpdate } from "core"; -import { getProgressPercentage } from "./IndexingProgress"; import { ArrowPathIcon, - PauseCircleIcon, CheckCircleIcon, + PauseCircleIcon, } from "@heroicons/react/24/outline"; +import { IndexingProgressUpdate } from "core"; +import { getProgressPercentage } from "./IndexingProgress"; export interface IndexingProgressIndicatorProps { update: IndexingProgressUpdate; @@ -28,13 +28,13 @@ function IndexingProgressIndicator({ update }: IndexingProgressIndicatorProps) { update.status !== "disabled" && progressPercentage !== "100"; return ( -
+
{showProgress && {progressPercentage}%} {Icon && (
diff --git a/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx index d559e8d24..02622d7a9 100644 --- a/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx +++ b/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx @@ -27,7 +27,7 @@ function IndexingProgressSubtext({ return (
{STATUS_TO_SUBTITLE_TEXT[update.status]} @@ -35,7 +35,7 @@ function IndexingProgressSubtext({
{showIndexingDesc && ( - + {update.desc} )} diff --git a/gui/src/pages/config/IndexingSettingsSection.tsx b/gui/src/pages/config/IndexingSettingsSection.tsx index fcdf300d1..4e4c670c0 100644 --- a/gui/src/pages/config/IndexingSettingsSection.tsx +++ b/gui/src/pages/config/IndexingSettingsSection.tsx @@ -7,7 +7,7 @@ export function IndexingSettingsSection() {

@codebase index

- + Local embeddings of your codebase
diff --git a/gui/src/pages/config/KeyboardShortcuts.tsx b/gui/src/pages/config/KeyboardShortcuts.tsx index d393f43a8..4ac0919c5 100644 --- a/gui/src/pages/config/KeyboardShortcuts.tsx +++ b/gui/src/pages/config/KeyboardShortcuts.tsx @@ -198,7 +198,7 @@ function KeyboardShortcuts() { return (
-

Keyboard shortcuts

+

Keyboard shortcuts

{shortcuts.map((shortcut, i) => { return ( diff --git a/gui/src/pages/config/MCPServersPreview.tsx b/gui/src/pages/config/MCPServersPreview.tsx index 9404107d9..c34837f03 100644 --- a/gui/src/pages/config/MCPServersPreview.tsx +++ b/gui/src/pages/config/MCPServersPreview.tsx @@ -85,7 +85,7 @@ function MCPServerPreview({ server }: MCPServerStatusProps) { {tool.name} ))} {server.tools.length === 0 && ( - No tools + No tools )}
@@ -100,7 +100,7 @@ function MCPServerPreview({ server }: MCPServerStatusProps) { {prompt.name} ))} {server.prompts.length === 0 && ( - No prompts + No prompts )}
@@ -115,7 +115,7 @@ function MCPServerPreview({ server }: MCPServerStatusProps) { {resource.name} ))} {server.resources.length === 0 && ( - No resources + No resources )}
diff --git a/gui/src/pages/config/More.tsx b/gui/src/pages/config/More.tsx deleted file mode 100644 index 081c6dd37..000000000 --- a/gui/src/pages/config/More.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { useContext } from "react"; -import { useNavigate } from "react-router-dom"; -import PageHeader from "../../components/PageHeader"; -import { IdeMessengerContext } from "../../context/IdeMessenger"; -import { useNavigationListener } from "../../hooks/useNavigationListener"; -import { useAppDispatch, useAppSelector } from "../../redux/hooks"; -import { AccountButton } from "./AccountButton"; - -function MorePage() { - useNavigationListener(); - const dispatch = useAppDispatch(); - const navigate = useNavigate(); - const ideMessenger = useContext(IdeMessengerContext); - const config = useAppSelector((store) => store.config.config); - const { disableIndexing } = config; - - return ( -
- navigate("/")} - title="Chat" - rightContent={} - /> -
- ); -} - -export default MorePage; diff --git a/gui/src/pages/config/MoreHelpRow.tsx b/gui/src/pages/config/MoreHelpRow.tsx index 81489bd48..21f2bbe72 100644 --- a/gui/src/pages/config/MoreHelpRow.tsx +++ b/gui/src/pages/config/MoreHelpRow.tsx @@ -14,10 +14,10 @@ function MoreHelpRow({ title, description, onClick, Icon }: MoreHelpRowProps) { >

{title}

- {description} + {description}
-
+
diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx index d4d50103e..b0f80d2a2 100644 --- a/gui/src/pages/config/index.tsx +++ b/gui/src/pages/config/index.tsx @@ -6,7 +6,7 @@ import { } from "@heroicons/react/24/outline"; import { useState } from "react"; import { useNavigate } from "react-router-dom"; -import PageHeader from "../../components/PageHeader"; +import { PageHeader } from "../../components/PageHeader"; import { useNavigationListener } from "../../hooks/useNavigationListener"; import { fontSize } from "../../util"; import { AccountButton } from "./AccountButton"; diff --git a/gui/src/pages/history/index.tsx b/gui/src/pages/history/index.tsx index b55b8ea22..f59da5509 100644 --- a/gui/src/pages/history/index.tsx +++ b/gui/src/pages/history/index.tsx @@ -1,6 +1,6 @@ import { useNavigate } from "react-router-dom"; import { History } from "../../components/History"; -import PageHeader from "../../components/PageHeader"; +import { PageHeader } from "../../components/PageHeader"; import { getFontSize } from "../../util"; import { AccountButton } from "../config/AccountButton";