Skip to content

Commit 94d088b

Browse files
author
Sebastian Sassi
committed
About page.
1 parent d2017f6 commit 94d088b

3 files changed

Lines changed: 68 additions & 46 deletions

File tree

src/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "%extension.displayName%",
44
"description": "%extension.description%",
55
"publisher": "RooVeterinaryInc",
6-
"version": "3.25.6",
6+
"version": "2.0.1",
77
"icon": "assets/icons/icon.png",
88
"galleryBanner": {
99
"color": "#617A91",
@@ -504,4 +504,4 @@
504504
"vitest": "^3.2.3",
505505
"zod-to-ts": "^1.2.0"
506506
}
507-
}
507+
}

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

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -26,48 +26,16 @@ export const About = ({ telemetrySetting, setTelemetrySetting, className, ...pro
2626
return (
2727
<div className={cn("flex flex-col gap-2", className)} {...props}>
2828
<SectionHeader
29-
description={
30-
Package.sha
31-
? `Version: ${Package.version} (${Package.sha.slice(0, 8)})`
32-
: `Version: ${Package.version}`
33-
}>
29+
description="Datacoves Copilot is a powerful AI assistant designed to enhance your coding experience. It's based on Roo Code, an open-source project that provides a robust foundation for AI-driven development tools.">
3430
<div className="flex items-center gap-2">
3531
<Info className="w-4" />
3632
<div>{t("settings:sections.about")}</div>
3733
</div>
3834
</SectionHeader>
3935

4036
<Section>
41-
<div>
42-
<VSCodeCheckbox
43-
checked={telemetrySetting === "enabled"}
44-
onChange={(e: any) => {
45-
const checked = e.target.checked === true
46-
setTelemetrySetting(checked ? "enabled" : "disabled")
47-
}}>
48-
{t("settings:footer.telemetry.label")}
49-
</VSCodeCheckbox>
50-
<p className="text-vscode-descriptionForeground text-sm mt-0">
51-
<Trans
52-
i18nKey="settings:footer.telemetry.description"
53-
components={{
54-
privacyLink: <VSCodeLink href="https://roocode.com/privacy" />,
55-
}}
56-
/>
57-
</p>
58-
</div>
59-
60-
<div>
61-
<Trans
62-
i18nKey="settings:footer.feedback"
63-
components={{
64-
githubLink: <VSCodeLink href="https://github.com/RooCodeInc/Roo-Code" />,
65-
redditLink: <VSCodeLink href="https://reddit.com/r/RooCode" />,
66-
discordLink: <VSCodeLink href="https://discord.gg/roocode" />,
67-
}}
68-
/>
69-
</div>
70-
37+
<VSCodeLink href="https://docs.datacoves.com/how-tos/vscode/datacoves-copilot/">Learn more about Datacoves Copilot</VSCodeLink>
38+
<h4>Settings file</h4>
7139
<div className="flex flex-wrap items-center gap-2 mt-2">
7240
<Button onClick={() => vscode.postMessage({ type: "exportSettings" })} className="w-28">
7341
<Upload className="p-0.5" />
@@ -77,13 +45,6 @@ export const About = ({ telemetrySetting, setTelemetrySetting, className, ...pro
7745
<Download className="p-0.5" />
7846
{t("settings:footer.settings.import")}
7947
</Button>
80-
<Button
81-
variant="destructive"
82-
onClick={() => vscode.postMessage({ type: "resetState" })}
83-
className="w-28">
84-
<TriangleAlert className="p-0.5" />
85-
{t("settings:footer.settings.reset")}
86-
</Button>
8748
</div>
8849
</Section>
8950
</div>

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

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ import React, {
1212
import {
1313
CheckCheck,
1414
SquareMousePointer,
15+
Webhook,
1516
GitBranch,
1617
Bell,
1718
Database,
1819
SquareTerminal,
1920
FlaskConical,
2021
AlertTriangle,
2122
Globe,
23+
Info,
2224
MessageSquare,
2325
LucideIcon,
2426
} from "lucide-react"
@@ -49,6 +51,9 @@ import {
4951

5052
import { Tab, TabContent, TabHeader, TabList, TabTrigger } from "../common/Tab"
5153
import { SetCachedStateField, SetExperimentEnabled } from "./types"
54+
import { SectionHeader } from "./SectionHeader"
55+
import ApiConfigManager from "./ApiConfigManager"
56+
import ApiOptions from "./ApiOptions"
5257
import { AutoApproveSettings } from "./AutoApproveSettings"
5358
import { BrowserSettings } from "./BrowserSettings"
5459
import { CheckpointSettings } from "./CheckpointSettings"
@@ -57,6 +62,8 @@ import { ContextManagementSettings } from "./ContextManagementSettings"
5762
import { TerminalSettings } from "./TerminalSettings"
5863
import { ExperimentalSettings } from "./ExperimentalSettings"
5964
import { LanguageSettings } from "./LanguageSettings"
65+
import { About } from "./About"
66+
import { Section } from "./Section"
6067
import PromptsSettings from "./PromptsSettings"
6168
import { cn } from "@/lib/utils"
6269

@@ -82,7 +89,7 @@ const sectionNames = [
8289
"prompts",
8390
"experimental",
8491
"language",
85-
// "about",
92+
"about",
8693
] as const
8794

8895
type SectionName = (typeof sectionNames)[number]
@@ -417,7 +424,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
417424
{ id: "prompts", icon: MessageSquare },
418425
{ id: "experimental", icon: FlaskConical },
419426
{ id: "language", icon: Globe },
420-
// { id: "about", icon: Info },
427+
{ id: "about", icon: Info },
421428
],
422429
[], // No dependencies needed now
423430
)
@@ -554,6 +561,55 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
554561

555562
{/* Content area */}
556563
<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+
557613
{/* Auto-Approve Section */}
558614
{activeTab === "autoApprove" && (
559615
<AutoApproveSettings
@@ -669,6 +725,11 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
669725
{activeTab === "language" && (
670726
<LanguageSettings language={language || "en"} setCachedStateField={setCachedStateField} />
671727
)}
728+
729+
{/* About Section */}
730+
{activeTab === "about" && (
731+
<About telemetrySetting={telemetrySetting} setTelemetrySetting={setTelemetrySetting} />
732+
)}
672733
</TabContent>
673734
</div>
674735

0 commit comments

Comments
 (0)