|
|
@@ -4,7 +4,6 @@ import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"
|
|
|
|
|
|
import { Package } from "@roo/package"
|
|
|
import { useAppTranslation } from "@src/i18n/TranslationContext"
|
|
|
-import { useExtensionState } from "@src/context/ExtensionStateContext"
|
|
|
import { vscode } from "@src/utils/vscode"
|
|
|
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@src/components/ui"
|
|
|
import { Button } from "@src/components/ui"
|
|
|
@@ -25,7 +24,6 @@ interface AnnouncementProps {
|
|
|
const Announcement = ({ hideAnnouncement }: AnnouncementProps) => {
|
|
|
const { t } = useAppTranslation()
|
|
|
const [open, setOpen] = useState(true)
|
|
|
- const { cloudIsAuthenticated } = useExtensionState()
|
|
|
|
|
|
return (
|
|
|
<Dialog
|
|
|
@@ -42,55 +40,50 @@ const Announcement = ({ hideAnnouncement }: AnnouncementProps) => {
|
|
|
<DialogTitle>{t("chat:announcement.title", { version: Package.version })}</DialogTitle>
|
|
|
</DialogHeader>
|
|
|
<div>
|
|
|
- <div className="mb-3">
|
|
|
- <Trans
|
|
|
- i18nKey="chat:announcement.stealthModel.feature"
|
|
|
- components={{
|
|
|
- bold: <b />,
|
|
|
- }}
|
|
|
- />
|
|
|
+ {/* Regular Release Highlights */}
|
|
|
+ <div className="mb-4">
|
|
|
+ <p className="mb-3">{t("chat:announcement.release.heading")}</p>
|
|
|
+ <ul className="list-disc list-inside text-sm space-y-1">
|
|
|
+ <li>{t("chat:announcement.release.fileReading")}</li>
|
|
|
+ <li>{t("chat:announcement.release.browserUse")}</li>
|
|
|
+ <li>{t("chat:announcement.release.bugFixes")}</li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
|
|
|
- <p className="mt-3 text-sm text-vscode-descriptionForeground">
|
|
|
- {t("chat:announcement.stealthModel.note")}
|
|
|
- </p>
|
|
|
+ {/* Horizontal Rule */}
|
|
|
+ <hr className="my-4 border-vscode-widget-border" />
|
|
|
+
|
|
|
+ {/* Cloud Agents Section */}
|
|
|
+ <div>
|
|
|
+ <p className="mb-3">{t("chat:announcement.cloudAgents.heading")}</p>
|
|
|
+
|
|
|
+ <div className="mb-3">
|
|
|
+ <Trans
|
|
|
+ i18nKey="chat:announcement.cloudAgents.feature"
|
|
|
+ components={{
|
|
|
+ bold: <b />,
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <p className="mb-3 text-sm text-vscode-descriptionForeground">
|
|
|
+ {t("chat:announcement.cloudAgents.description")}
|
|
|
+ </p>
|
|
|
|
|
|
- <div className="mt-4">
|
|
|
- {!cloudIsAuthenticated ? (
|
|
|
+ <div className="mt-4">
|
|
|
<Button
|
|
|
onClick={() => {
|
|
|
vscode.postMessage({
|
|
|
- type: "cloudLandingPageSignIn",
|
|
|
- text: "supernova",
|
|
|
+ type: "openExternal",
|
|
|
+ url: "https://roocode.com/reviewer?utm_source=roocode&utm_medium=extension&utm_campaign=announcement",
|
|
|
})
|
|
|
+ setOpen(false)
|
|
|
+ hideAnnouncement()
|
|
|
}}
|
|
|
className="w-full">
|
|
|
- {t("chat:announcement.stealthModel.connectButton")}
|
|
|
+ {t("chat:announcement.cloudAgents.createAgentButton")}
|
|
|
</Button>
|
|
|
- ) : (
|
|
|
- <>
|
|
|
- <p className="mb-3">
|
|
|
- <Trans
|
|
|
- i18nKey="chat:announcement.stealthModel.selectModel"
|
|
|
- components={{
|
|
|
- code: <code />,
|
|
|
- }}
|
|
|
- />
|
|
|
- </p>
|
|
|
- <Button
|
|
|
- onClick={() => {
|
|
|
- setOpen(false)
|
|
|
- hideAnnouncement()
|
|
|
- vscode.postMessage({
|
|
|
- type: "switchTab",
|
|
|
- tab: "settings",
|
|
|
- })
|
|
|
- }}
|
|
|
- className="w-full">
|
|
|
- {t("chat:announcement.stealthModel.goToSettingsButton")}
|
|
|
- </Button>
|
|
|
- </>
|
|
|
- )}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div className="mt-4 text-sm text-center">
|