Skip to content

Commit

Permalink
Merge pull request #3921 from continuedev/nate/bump2
Browse files Browse the repository at this point in the history
bump version
  • Loading branch information
sestinj authored Feb 1, 2025
2 parents 0f123a9 + 5aac2b5 commit 35335ba
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 25 deletions.
4 changes: 2 additions & 2 deletions extensions/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "continue",
"icon": "media/icon.png",
"author": "Continue Dev, Inc",
"version": "0.9.258",
"version": "0.9.259",
"repository": {
"type": "git",
"url": "https://github.com/continuedev/continue"
Expand Down
2 changes: 2 additions & 0 deletions gui/src/components/gui/NumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ const NumberInput: React.FC<NumberInputProps> = ({
/>
<div className="flex flex-col">
<button
style={{ fontSize: "10px" }}
onClick={handleIncrement}
disabled={value >= max}
className="text-vsc-foreground m-0 mb-0.5 cursor-pointer border-none bg-inherit px-1.5 py-0 hover:opacity-80"
>
</button>
<button
style={{ fontSize: "10px" }}
className="text-vsc-foreground m-0 mb-0.5 cursor-pointer border-none bg-inherit px-1.5 py-0 hover:opacity-80"
onClick={handleDecrement}
disabled={value <= min}
Expand Down
3 changes: 2 additions & 1 deletion gui/src/context/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
[],
);

const ideMessenger = useContext(IdeMessengerContext);

const selectedOrganizationId = useAppSelector(
(store) => store.session.selectedOrganizationId,
);
Expand All @@ -65,7 +67,6 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
return profiles.find((p) => p.id === selectedProfileId);
}, [profiles, selectedProfileId]);

const ideMessenger = useContext(IdeMessengerContext);
const dispatch = useDispatch();

const login: AuthContextType["login"] = (useOnboarding: boolean) => {
Expand Down
52 changes: 31 additions & 21 deletions gui/src/pages/config/index.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
import { useContext, useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";
import PageHeader from "../../components/PageHeader";
import { IdeMessengerContext } from "../../context/IdeMessenger";
import { useNavigationListener } from "../../hooks/useNavigationListener";
import PageHeader from "../../components/PageHeader";
import { useAppDispatch, useAppSelector } from "../../redux/hooks";

import { updateConfig } from "../../redux/slices/configSlice";
import ToggleSwitch from "../../components/gui/Switch";
import { useAuth } from "../../context/Auth";
import { Input, SecondaryButton } from "../../components";
import { getFontSize } from "../../util";
import { CheckIcon, XMarkIcon } from "@heroicons/react/24/outline";
import { ScopeSelect } from "./ScopeSelect";
import {
SharedConfigSchema,
modifyContinueConfigWithSharedConfig,
} from "core/config/sharedConfig";
import { Input, SecondaryButton } from "../../components";
import NumberInput from "../../components/gui/NumberInput";
import { Select } from "../../components/gui/Select";
import ToggleSwitch from "../../components/gui/Switch";
import { useAuth } from "../../context/Auth";
import { updateConfig } from "../../redux/slices/configSlice";
import { getFontSize } from "../../util";
import { ScopeSelect } from "./ScopeSelect";

function ConfigPage() {
useNavigationListener();
const dispatch = useAppDispatch();
const navigate = useNavigate();
const ideMessenger = useContext(IdeMessengerContext);

const { selectedProfile, selectedOrganization } = useAuth();
const { selectedProfile, selectedOrganization, session } = useAuth();
const config = useAppSelector((state) => state.config.config);

function handleUpdate(sharedConfig: Partial<SharedConfigSchema>) {
Expand All @@ -52,6 +52,14 @@ function ConfigPage() {
config.tabAutocompleteOptions?.multilineCompletions ?? "auto";
const fontSize = getFontSize();

const [hubEnabled, setHubEnabled] = useState(false);

useEffect(() => {
ideMessenger.ide.getIdeSettings().then(({ continueTestEnvironment }) => {
setHubEnabled(continueTestEnvironment === "production");
});
}, [ideMessenger]);

// Disable autocomplete
const disableAutocompleteInFiles = (
config.tabAutocompleteOptions?.disableInFiles ?? []
Expand Down Expand Up @@ -121,21 +129,23 @@ function ConfigPage() {
<PageHeader onTitleClick={() => navigate("/")} title="Chat" />

<div className="divide-x-0 divide-y-2 divide-solid divide-zinc-700 px-4">
<div className="flex flex-col gap-4 py-6">
<div>
<h2 className="mb-1 mt-0">Account</h2>
{selectedOrganization?.name && (
<span className="text-lightgray">
You are currently signed in to{" "}
<span className="font-semibold">
{selectedOrganization?.name}
{hubEnabled && !!session && (
<div className="flex flex-col gap-4 py-6">
<div>
<h2 className="mb-1 mt-0">Account</h2>
{selectedOrganization?.name && (
<span className="text-lightgray">
You are currently signed in to{" "}
<span className="font-semibold">
{selectedOrganization?.name}
</span>
</span>
</span>
)}
</div>
)}
</div>

<ScopeSelect />
</div>
<ScopeSelect />
</div>
)}

<div className="flex flex-col gap-4 py-6">
<h2 className="mb-1 mt-0">Configuration</h2>
Expand Down

0 comments on commit 35335ba

Please sign in to comment.