Skip to content

Commit 947a72e

Browse files
roomote[bot]roomotemrubens
authored andcommitted
feat: rename Account tab to Cloud tab (#7558)
Co-authored-by: Roo Code <[email protected]> Co-authored-by: Matt Rubens <[email protected]>
1 parent 40f77fd commit 947a72e

File tree

19 files changed

+24
-23
lines changed

19 files changed

+24
-23
lines changed

webview-ui/src/components/cloud/CloudView.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ import { ToggleSwitch } from "@/components/ui/toggle-switch"
1111

1212
import { History, PiggyBank, SquareArrowOutUpRightIcon } from "lucide-react"
1313

14+
// Define the production URL constant locally to avoid importing from cloud package in tests
15+
const PRODUCTION_ROO_CODE_API_URL = "https://app.roocode.com"
16+
1417
type CloudViewProps = {
1518
userInfo: CloudUserInfo | null
1619
isAuthenticated: boolean
1720
cloudApiUrl?: string
1821
onDone: () => void
1922
}
2023

21-
const PRODUCTION_CLOUD_URL = "https://app.roocode.com"
22-
2324
export const CloudView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: CloudViewProps) => {
2425
const { t } = useAppTranslation()
2526
const { remoteControlEnabled, setRemoteControlEnabled } = useExtensionState()
@@ -58,7 +59,7 @@ export const CloudView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: Cl
5859
// Send telemetry for cloud website visit
5960
// NOTE: Using ACCOUNT_* telemetry events for backward compatibility with analytics
6061
telemetryClient.capture(TelemetryEventName.ACCOUNT_CONNECT_CLICKED)
61-
const cloudUrl = cloudApiUrl || PRODUCTION_CLOUD_URL
62+
const cloudUrl = cloudApiUrl || PRODUCTION_ROO_CODE_API_URL
6263
vscode.postMessage({ type: "openExternal", url: cloudUrl })
6364
}
6465

@@ -194,10 +195,10 @@ export const CloudView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: Cl
194195
</div>
195196
</>
196197
)}
197-
{cloudApiUrl && cloudApiUrl !== PRODUCTION_CLOUD_URL && (
198+
{cloudApiUrl && cloudApiUrl !== PRODUCTION_ROO_CODE_API_URL && (
198199
<div className="mt-6 flex justify-center">
199200
<div className="inline-flex items-center px-3 py-1 gap-1 rounded-full bg-vscode-badge-background/50 text-vscode-badge-foreground text-xs">
200-
<span className="text-vscode-foreground/75">{t("account:cloudUrlPillLabel")}</span>
201+
<span className="text-vscode-foreground/75">{t("cloud:cloudUrlPillLabel")}: </span>
201202
<button
202203
onClick={handleOpenCloudUrl}
203204
className="text-vscode-textLink-foreground hover:text-vscode-textLink-activeForeground underline cursor-pointer bg-transparent border-none p-0">

webview-ui/src/i18n/locales/ca/cloud.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/de/cloud.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/en/cloud.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
"visitCloudWebsite": "Visit Roo Code Cloud",
1414
"remoteControl": "Roomote Control",
1515
"remoteControlDescription": "Enable following and interacting with tasks in this workspace with Roo Code Cloud",
16-
"cloudUrlPillLabel": "Roo Code Cloud URL: "
16+
"cloudUrlPillLabel": "Roo Code Cloud URL"
1717
}

webview-ui/src/i18n/locales/es/cloud.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/fr/cloud.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/hi/cloud.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/id/cloud.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/it/cloud.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/ja/cloud.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)