Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions webview-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^15.4.1",
"react-icons": "^5.5.0",
"react-markdown": "^9.0.3",
"react-remark": "^2.1.0",
"react-textarea-autosize": "^8.5.3",
Expand Down
65 changes: 35 additions & 30 deletions webview-ui/src/components/chat/Announcement.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState, memo } from "react"
import { memo, type ReactNode, useState } from "react"
import { Trans } from "react-i18next"
import { SiDiscord, SiReddit, SiX } from "react-icons/si"
import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"

import { Package } from "@roo/package"
Expand Down Expand Up @@ -48,15 +49,28 @@ const Announcement = ({ hideAnnouncement }: AnnouncementProps) => {
</ul>
</div>

<div className="mt-4 text-sm text-center">
<Trans
i18nKey="chat:announcement.socialLinks"
components={{
xLink: <XLink />,
discordLink: <DiscordLink />,
redditLink: <RedditLink />,
}}
/>
<div className="mt-4 text-sm text-center text-vscode-descriptionForeground">
<div className="flex items-center justify-center gap-4">
<SocialLink
icon={<SiX className="w-4 h-4" aria-hidden />}
label="X"
href="https://x.com/roocode"
/>
<SocialLink
icon={<SiDiscord className="w-4 h-4" aria-hidden />}
label="Discord"
href="https://discord.gg/rCQcvT7Fnt"
/>
<SocialLink
icon={<SiReddit className="w-4 h-4" aria-hidden />}
label="Reddit"
href="https://www.reddit.com/r/RooCode/"
/>
</div>
</div>

<div className="mt-3 text-sm text-center text-vscode-descriptionForeground">
<Trans i18nKey="chat:announcement.support" components={{ githubLink: <GitHubLink /> }} />
</div>

{/* Careers Section */}
Expand All @@ -74,40 +88,31 @@ const Announcement = ({ hideAnnouncement }: AnnouncementProps) => {
)
}

const XLink = () => (
<VSCodeLink
href="https://x.com/roocode"
onClick={(e) => {
e.preventDefault()
vscode.postMessage({ type: "openExternal", url: "https://x.com/roocode" })
}}>
X
</VSCodeLink>
)

const DiscordLink = () => (
const SocialLink = ({ icon, label, href }: { icon: ReactNode; label: string; href: string }) => (
<VSCodeLink
href="https://discord.gg/rCQcvT7Fnt"
href={href}
className="inline-flex items-center gap-1"
onClick={(e) => {
e.preventDefault()
vscode.postMessage({ type: "openExternal", url: "https://discord.gg/rCQcvT7Fnt" })
vscode.postMessage({ type: "openExternal", url: href })
}}>
Discord
{icon}
<span className="sr-only">{label}</span>
</VSCodeLink>
)

const RedditLink = () => (
const GitHubLink = ({ children }: { children?: ReactNode }) => (
<VSCodeLink
href="https://www.reddit.com/r/RooCode/"
href="https://github.com/RooCodeInc/Roo-Code"
onClick={(e) => {
e.preventDefault()
vscode.postMessage({ type: "openExternal", url: "https://www.reddit.com/r/RooCode/" })
vscode.postMessage({ type: "openExternal", url: "https://github.com/RooCodeInc/Roo-Code" })
}}>
r/RooCode
{children}
</VSCodeLink>
)

const CareersLink = ({ children }: { children?: React.ReactNode }) => (
const CareersLink = ({ children }: { children?: ReactNode }) => (
<VSCodeLink
href="https://careers.roocode.com"
onClick={(e) => {
Expand Down
6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/ca/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/de/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/en/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@
"triggerLabelAll": "YOLO"
},
"announcement": {
"title": "🎉 Roo Code {{version}} Released",
"title": "Roo Code {{version}} Released",
"support": "Please support Roo Code by starring us on <githubLink>GitHub</githubLink>.",
"stealthModel": {
"feature": "<bold>Limited-time FREE stealth model</bold> - Code Supernova: Now upgraded with a <bold>1M token context window</bold>! A versatile agentic coding model that supports image inputs, accessible through Roo Code Cloud.",
"note": "(Note: prompts and completions are logged by the model creator and used to improve the model)",
Expand All @@ -329,8 +330,7 @@
"description": "The agents work together in the cloud and can be triggered from the web or through Slack.",
"tryButton": "Try Cloud Agents"
},
"careers": "Also, <careersLink>we're hiring!</careersLink>",
"socialLinks": "Join us on <xLink>X</xLink>, <discordLink>Discord</discordLink>, or <redditLink>r/RooCode</redditLink> 🚀"
"careers": "Also, <careersLink>we're hiring!</careersLink>"
},
"reasoning": {
"thinking": "Thinking",
Expand Down
6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/es/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/fr/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/hi/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/id/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/it/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/ja/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/ko/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/nl/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/pl/chat.json

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

6 changes: 3 additions & 3 deletions webview-ui/src/i18n/locales/pt-BR/chat.json

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

Loading
Loading