Skip to content

Commit 5dac517

Browse files
author
Sebastian Sassi
committed
Fix build bugs.
1 parent 4be21ea commit 5dac517

2 files changed

Lines changed: 1 addition & 62 deletions

File tree

webview-ui/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const App = () => {
106106
const switchTab = useCallback(
107107
(newTab: Tab) => {
108108
// Check MDM compliance before allowing tab switching
109-
if (mdmCompliant === false && newTab !== "account") {
109+
if (mdmCompliant === false) {
110110
return
111111
}
112112

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ import React, {
1212
import {
1313
CheckCheck,
1414
SquareMousePointer,
15-
Webhook,
1615
GitBranch,
1716
Bell,
1817
Database,
1918
SquareTerminal,
2019
FlaskConical,
2120
AlertTriangle,
2221
Globe,
23-
Info,
2422
MessageSquare,
2523
LucideIcon,
2624
} from "lucide-react"
@@ -51,9 +49,6 @@ import {
5149

5250
import { Tab, TabContent, TabHeader, TabList, TabTrigger } from "../common/Tab"
5351
import { SetCachedStateField, SetExperimentEnabled } from "./types"
54-
import { SectionHeader } from "./SectionHeader"
55-
import ApiConfigManager from "./ApiConfigManager"
56-
import ApiOptions from "./ApiOptions"
5752
import { AutoApproveSettings } from "./AutoApproveSettings"
5853
import { BrowserSettings } from "./BrowserSettings"
5954
import { CheckpointSettings } from "./CheckpointSettings"
@@ -62,8 +57,6 @@ import { ContextManagementSettings } from "./ContextManagementSettings"
6257
import { TerminalSettings } from "./TerminalSettings"
6358
import { ExperimentalSettings } from "./ExperimentalSettings"
6459
import { LanguageSettings } from "./LanguageSettings"
65-
import { About } from "./About"
66-
import { Section } from "./Section"
6760
import PromptsSettings from "./PromptsSettings"
6861
import { cn } from "@/lib/utils"
6962

@@ -561,55 +554,6 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
561554

562555
{/* Content area */}
563556
<TabContent className="p-0 flex-1 overflow-auto">
564-
{/* Providers Section */}
565-
{activeTab === "providers" && (
566-
<div>
567-
<SectionHeader>
568-
<div className="flex items-center gap-2">
569-
<Webhook className="w-4" />
570-
<div>{t("settings:sections.providers")}</div>
571-
</div>
572-
</SectionHeader>
573-
574-
<Section>
575-
<ApiConfigManager
576-
currentApiConfigName={currentApiConfigName}
577-
listApiConfigMeta={listApiConfigMeta}
578-
onSelectConfig={(configName: string) =>
579-
checkUnsaveChanges(() =>
580-
vscode.postMessage({ type: "loadApiConfiguration", text: configName }),
581-
)
582-
}
583-
onDeleteConfig={(configName: string) =>
584-
vscode.postMessage({ type: "deleteApiConfiguration", text: configName })
585-
}
586-
onRenameConfig={(oldName: string, newName: string) => {
587-
vscode.postMessage({
588-
type: "renameApiConfiguration",
589-
values: { oldName, newName },
590-
apiConfiguration,
591-
})
592-
prevApiConfigName.current = newName
593-
}}
594-
onUpsertConfig={(configName: string) =>
595-
vscode.postMessage({
596-
type: "upsertApiConfiguration",
597-
text: configName,
598-
apiConfiguration,
599-
})
600-
}
601-
/>
602-
<ApiOptions
603-
uriScheme={uriScheme}
604-
apiConfiguration={apiConfiguration}
605-
setApiConfigurationField={setApiConfigurationField}
606-
errorMessage={errorMessage}
607-
setErrorMessage={setErrorMessage}
608-
/>
609-
</Section>
610-
</div>
611-
)}
612-
613557
{/* Auto-Approve Section */}
614558
{activeTab === "autoApprove" && (
615559
<AutoApproveSettings
@@ -725,11 +669,6 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
725669
{activeTab === "language" && (
726670
<LanguageSettings language={language || "en"} setCachedStateField={setCachedStateField} />
727671
)}
728-
729-
{/* About Section */}
730-
{activeTab === "about" && (
731-
<About telemetrySetting={telemetrySetting} setTelemetrySetting={setTelemetrySetting} />
732-
)}
733672
</TabContent>
734673
</div>
735674

0 commit comments

Comments
 (0)