diff --git a/packages/types/src/vscode.ts b/packages/types/src/vscode.ts index 00f6bbbcba..2838514690 100644 --- a/packages/types/src/vscode.ts +++ b/packages/types/src/vscode.ts @@ -35,7 +35,7 @@ export const commandIds = [ "historyButtonClicked", "marketplaceButtonClicked", "popoutButtonClicked", - "accountButtonClicked", + "cloudButtonClicked", "settingsButtonClicked", "openInNewTab", diff --git a/src/activate/registerCommands.ts b/src/activate/registerCommands.ts index 0534f24782..203af497e3 100644 --- a/src/activate/registerCommands.ts +++ b/src/activate/registerCommands.ts @@ -74,16 +74,16 @@ export const registerCommands = (options: RegisterCommandOptions) => { const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOptions): Record => ({ activationCompleted: () => {}, - accountButtonClicked: () => { + cloudButtonClicked: () => { const visibleProvider = getVisibleProviderOrLog(outputChannel) if (!visibleProvider) { return } - TelemetryService.instance.captureTitleButtonClicked("account") + TelemetryService.instance.captureTitleButtonClicked("cloud") - visibleProvider.postMessageToWebview({ type: "action", action: "accountButtonClicked" }) + visibleProvider.postMessageToWebview({ type: "action", action: "cloudButtonClicked" }) }, plusButtonClicked: async () => { const visibleProvider = getVisibleProviderOrLog(outputChannel) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index bec060ba98..a8d64d6600 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1395,7 +1395,7 @@ export class ClineProvider // Check MDM compliance and send user to account tab if not compliant // Only redirect if there's an actual MDM policy requiring authentication if (this.mdmService?.requiresCloudAuth() && !this.checkMdmCompliance()) { - await this.postMessageToWebview({ type: "action", action: "accountButtonClicked" }) + await this.postMessageToWebview({ type: "action", action: "cloudButtonClicked" }) } } diff --git a/src/core/webview/webviewMessageHandler.ts b/src/core/webview/webviewMessageHandler.ts index 217363c9ab..ff16e64094 100644 --- a/src/core/webview/webviewMessageHandler.ts +++ b/src/core/webview/webviewMessageHandler.ts @@ -2028,9 +2028,9 @@ export const webviewMessageHandler = async ( await provider.postStateToWebview() break } - case "accountButtonClicked": { - // Navigate to the account tab. - provider.postMessageToWebview({ type: "action", action: "accountButtonClicked" }) + case "cloudButtonClicked": { + // Navigate to the cloud tab. + provider.postMessageToWebview({ type: "action", action: "cloudButtonClicked" }) break } case "rooCloudSignIn": { diff --git a/src/package.json b/src/package.json index e1d9ab1f98..0739bb1270 100644 --- a/src/package.json +++ b/src/package.json @@ -101,9 +101,9 @@ "icon": "$(link-external)" }, { - "command": "roo-cline.accountButtonClicked", - "title": "%command.account.title%", - "icon": "$(account)" + "command": "roo-cline.cloudButtonClicked", + "title": "%command.cloud.title%", + "icon": "$(cloud)" }, { "command": "roo-cline.settingsButtonClicked", @@ -234,7 +234,7 @@ "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.accountButtonClicked", + "command": "roo-cline.cloudButtonClicked", "group": "navigation@4", "when": "view == roo-cline.SidebarProvider" }, @@ -276,7 +276,7 @@ "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { - "command": "roo-cline.accountButtonClicked", + "command": "roo-cline.cloudButtonClicked", "group": "navigation@4", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, diff --git a/src/package.nls.ca.json b/src/package.nls.ca.json index 1e2f1eedd6..608e7e11d6 100644 --- a/src/package.nls.ca.json +++ b/src/package.nls.ca.json @@ -23,7 +23,7 @@ "command.history.title": "Historial", "command.marketplace.title": "Mercat", "command.openInEditor.title": "Obrir a l'Editor", - "command.account.title": "Compte", + "command.cloud.title": "Cloud", "command.settings.title": "Configuració", "command.documentation.title": "Documentació", "configuration.title": "Roo Code", diff --git a/src/package.nls.de.json b/src/package.nls.de.json index b5f099ff66..d494b5e3f9 100644 --- a/src/package.nls.de.json +++ b/src/package.nls.de.json @@ -23,7 +23,7 @@ "command.history.title": "Verlauf", "command.marketplace.title": "Marktplatz", "command.openInEditor.title": "Im Editor Öffnen", - "command.account.title": "Konto", + "command.cloud.title": "Cloud", "command.settings.title": "Einstellungen", "command.documentation.title": "Dokumentation", "configuration.title": "Roo Code", diff --git a/src/package.nls.es.json b/src/package.nls.es.json index a2479cd770..e0c401ed55 100644 --- a/src/package.nls.es.json +++ b/src/package.nls.es.json @@ -23,7 +23,7 @@ "command.history.title": "Historial", "command.marketplace.title": "Mercado", "command.openInEditor.title": "Abrir en Editor", - "command.account.title": "Cuenta", + "command.cloud.title": "Cloud", "command.settings.title": "Configuración", "command.documentation.title": "Documentación", "configuration.title": "Roo Code", diff --git a/src/package.nls.fr.json b/src/package.nls.fr.json index 03052aaf75..e8b70bf904 100644 --- a/src/package.nls.fr.json +++ b/src/package.nls.fr.json @@ -23,7 +23,7 @@ "command.history.title": "Historique", "command.marketplace.title": "Marché", "command.openInEditor.title": "Ouvrir dans l'Éditeur", - "command.account.title": "Compte", + "command.cloud.title": "Cloud", "command.settings.title": "Paramètres", "command.documentation.title": "Documentation", "configuration.title": "Roo Code", diff --git a/src/package.nls.hi.json b/src/package.nls.hi.json index 24f8ed402d..7fa6da3c52 100644 --- a/src/package.nls.hi.json +++ b/src/package.nls.hi.json @@ -23,7 +23,7 @@ "command.history.title": "इतिहास", "command.marketplace.title": "मार्केटप्लेस", "command.openInEditor.title": "एडिटर में खोलें", - "command.account.title": "खाता", + "command.cloud.title": "Cloud", "command.settings.title": "सेटिंग्स", "command.documentation.title": "दस्तावेज़ीकरण", "configuration.title": "Roo Code", diff --git a/src/package.nls.id.json b/src/package.nls.id.json index 98e979ee07..10bb41681d 100644 --- a/src/package.nls.id.json +++ b/src/package.nls.id.json @@ -11,7 +11,7 @@ "command.history.title": "Riwayat", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Buka di Editor", - "command.account.title": "Akun", + "command.cloud.title": "Cloud", "command.settings.title": "Pengaturan", "command.documentation.title": "Dokumentasi", "command.openInNewTab.title": "Buka di Tab Baru", diff --git a/src/package.nls.it.json b/src/package.nls.it.json index 6f8bb8fbce..40fa631ce1 100644 --- a/src/package.nls.it.json +++ b/src/package.nls.it.json @@ -23,7 +23,7 @@ "command.history.title": "Cronologia", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Apri nell'Editor", - "command.account.title": "Account", + "command.cloud.title": "Cloud", "command.settings.title": "Impostazioni", "command.documentation.title": "Documentazione", "configuration.title": "Roo Code", diff --git a/src/package.nls.ja.json b/src/package.nls.ja.json index c26c46905d..064785245e 100644 --- a/src/package.nls.ja.json +++ b/src/package.nls.ja.json @@ -11,7 +11,7 @@ "command.history.title": "履歴", "command.marketplace.title": "マーケットプレイス", "command.openInEditor.title": "エディタで開く", - "command.account.title": "アカウント", + "command.cloud.title": "Cloud", "command.settings.title": "設定", "command.documentation.title": "ドキュメント", "command.openInNewTab.title": "新しいタブで開く", diff --git a/src/package.nls.json b/src/package.nls.json index a18887218a..c1805009c3 100644 --- a/src/package.nls.json +++ b/src/package.nls.json @@ -11,7 +11,7 @@ "command.history.title": "History", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Open in Editor", - "command.account.title": "Account", + "command.cloud.title": "Cloud", "command.settings.title": "Settings", "command.documentation.title": "Documentation", "command.openInNewTab.title": "Open In New Tab", diff --git a/src/package.nls.ko.json b/src/package.nls.ko.json index b4d5dd4c14..74488f8db9 100644 --- a/src/package.nls.ko.json +++ b/src/package.nls.ko.json @@ -23,7 +23,7 @@ "command.history.title": "기록", "command.marketplace.title": "마켓플레이스", "command.openInEditor.title": "에디터에서 열기", - "command.account.title": "계정", + "command.cloud.title": "Cloud", "command.settings.title": "설정", "command.documentation.title": "문서", "configuration.title": "Roo Code", diff --git a/src/package.nls.nl.json b/src/package.nls.nl.json index 22d9102f18..805e5bd59e 100644 --- a/src/package.nls.nl.json +++ b/src/package.nls.nl.json @@ -11,7 +11,7 @@ "command.history.title": "Geschiedenis", "command.marketplace.title": "Marktplaats", "command.openInEditor.title": "Openen in Editor", - "command.account.title": "Account", + "command.cloud.title": "Cloud", "command.settings.title": "Instellingen", "command.documentation.title": "Documentatie", "command.openInNewTab.title": "Openen in Nieuw Tabblad", diff --git a/src/package.nls.pl.json b/src/package.nls.pl.json index cb23404330..054595c062 100644 --- a/src/package.nls.pl.json +++ b/src/package.nls.pl.json @@ -23,7 +23,7 @@ "command.history.title": "Historia", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Otwórz w Edytorze", - "command.account.title": "Konto", + "command.cloud.title": "Cloud", "command.settings.title": "Ustawienia", "command.documentation.title": "Dokumentacja", "configuration.title": "Roo Code", diff --git a/src/package.nls.pt-BR.json b/src/package.nls.pt-BR.json index e3b432e1d5..76de37cfcd 100644 --- a/src/package.nls.pt-BR.json +++ b/src/package.nls.pt-BR.json @@ -23,7 +23,7 @@ "command.history.title": "Histórico", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Abrir no Editor", - "command.account.title": "Conta", + "command.cloud.title": "Cloud", "command.settings.title": "Configurações", "command.documentation.title": "Documentação", "configuration.title": "Roo Code", diff --git a/src/package.nls.ru.json b/src/package.nls.ru.json index 91da74c6f1..11f18cef9a 100644 --- a/src/package.nls.ru.json +++ b/src/package.nls.ru.json @@ -11,7 +11,7 @@ "command.history.title": "История", "command.marketplace.title": "Маркетплейс", "command.openInEditor.title": "Открыть в редакторе", - "command.account.title": "Аккаунт", + "command.cloud.title": "Cloud", "command.settings.title": "Настройки", "command.documentation.title": "Документация", "command.openInNewTab.title": "Открыть в новой вкладке", diff --git a/src/package.nls.tr.json b/src/package.nls.tr.json index 5337db6bb4..773a31d1b1 100644 --- a/src/package.nls.tr.json +++ b/src/package.nls.tr.json @@ -23,7 +23,7 @@ "command.history.title": "Geçmiş", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Düzenleyicide Aç", - "command.account.title": "Hesap", + "command.cloud.title": "Cloud", "command.settings.title": "Ayarlar", "command.documentation.title": "Dokümantasyon", "configuration.title": "Roo Code", diff --git a/src/package.nls.vi.json b/src/package.nls.vi.json index f8c79b748a..69bfd75a88 100644 --- a/src/package.nls.vi.json +++ b/src/package.nls.vi.json @@ -23,7 +23,7 @@ "command.history.title": "Lịch Sử", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Mở trong Trình Soạn Thảo", - "command.account.title": "Tài khoản", + "command.cloud.title": "Cloud", "command.settings.title": "Cài Đặt", "command.documentation.title": "Tài Liệu", "configuration.title": "Roo Code", diff --git a/src/package.nls.zh-CN.json b/src/package.nls.zh-CN.json index 1ea96e772a..e17a77ff3a 100644 --- a/src/package.nls.zh-CN.json +++ b/src/package.nls.zh-CN.json @@ -23,7 +23,7 @@ "command.history.title": "历史记录", "command.marketplace.title": "应用市场", "command.openInEditor.title": "在编辑器中打开", - "command.account.title": "账户", + "command.cloud.title": "Cloud", "command.settings.title": "设置", "command.documentation.title": "文档", "configuration.title": "Roo Code", diff --git a/src/package.nls.zh-TW.json b/src/package.nls.zh-TW.json index 815a061160..020da0736b 100644 --- a/src/package.nls.zh-TW.json +++ b/src/package.nls.zh-TW.json @@ -23,7 +23,7 @@ "command.history.title": "歷史記錄", "command.marketplace.title": "應用市場", "command.openInEditor.title": "在編輯器中開啟", - "command.account.title": "帳戶", + "command.cloud.title": "Cloud", "command.settings.title": "設定", "command.documentation.title": "文件", "configuration.title": "Roo Code", diff --git a/src/shared/ExtensionMessage.ts b/src/shared/ExtensionMessage.ts index 63a7260498..d0173d106d 100644 --- a/src/shared/ExtensionMessage.ts +++ b/src/shared/ExtensionMessage.ts @@ -131,7 +131,7 @@ export interface ExtensionMessage { | "historyButtonClicked" | "promptsButtonClicked" | "marketplaceButtonClicked" - | "accountButtonClicked" + | "cloudButtonClicked" | "didBecomeVisible" | "focusInput" | "switchTab" diff --git a/src/shared/WebviewMessage.ts b/src/shared/WebviewMessage.ts index 12e4dbb0f4..c08f4771d1 100644 --- a/src/shared/WebviewMessage.ts +++ b/src/shared/WebviewMessage.ts @@ -174,7 +174,7 @@ export interface WebviewMessage { | "toggleApiConfigPin" | "setHistoryPreviewCollapsed" | "hasOpenedModeSelector" - | "accountButtonClicked" + | "cloudButtonClicked" | "rooCloudSignIn" | "rooCloudSignOut" | "condenseTaskContextRequest" @@ -217,7 +217,7 @@ export interface WebviewMessage { | "openRouterImageGenerationSelectedModel" text?: string editedMessageContent?: string - tab?: "settings" | "history" | "mcp" | "modes" | "chat" | "marketplace" | "account" + tab?: "settings" | "history" | "mcp" | "modes" | "chat" | "marketplace" | "cloud" disabled?: boolean context?: string dataUri?: string diff --git a/webview-ui/src/App.tsx b/webview-ui/src/App.tsx index f24e4556a1..34951e9192 100644 --- a/webview-ui/src/App.tsx +++ b/webview-ui/src/App.tsx @@ -21,12 +21,12 @@ import ModesView from "./components/modes/ModesView" import { HumanRelayDialog } from "./components/human-relay/HumanRelayDialog" import { DeleteMessageDialog, EditMessageDialog } from "./components/chat/MessageModificationConfirmationDialog" import ErrorBoundary from "./components/ErrorBoundary" -import { AccountView } from "./components/account/AccountView" +import { CloudView } from "./components/cloud/CloudView" import { useAddNonInteractiveClickListener } from "./components/ui/hooks/useNonInteractiveClick" import { TooltipProvider } from "./components/ui/tooltip" import { STANDARD_TOOLTIP_DELAY } from "./components/ui/standard-tooltip" -type Tab = "settings" | "history" | "mcp" | "modes" | "chat" | "marketplace" | "account" +type Tab = "settings" | "history" | "mcp" | "modes" | "chat" | "marketplace" | "cloud" interface HumanRelayDialogState { isOpen: boolean @@ -58,7 +58,7 @@ const tabsByMessageAction: Partial { @@ -107,7 +107,7 @@ const App = () => { (newTab: Tab) => { // Only check MDM compliance if mdmCompliant is explicitly false (meaning there's an MDM policy and user is non-compliant) // If mdmCompliant is undefined or true, allow tab switching - if (mdmCompliant === false && newTab !== "account") { + if (mdmCompliant === false && newTab !== "cloud") { // Notify the user that authentication is required by their organization vscode.postMessage({ type: "showMdmAuthRequiredNotification" }) return @@ -249,8 +249,8 @@ const App = () => { targetTab={currentMarketplaceTab as "mcp" | "mode" | undefined} /> )} - {tab === "account" && ( - ({ }, })) -vi.mock("@src/components/account/AccountView", () => ({ - AccountView: function AccountView({ onDone }: { onDone: () => void }) { +vi.mock("@src/components/cloud/CloudView", () => ({ + CloudView: function CloudView({ onDone }: { onDone: () => void }) { return ( -
- Account View +
+ Cloud View
) }, diff --git a/webview-ui/src/components/chat/ShareButton.tsx b/webview-ui/src/components/chat/ShareButton.tsx index b8584fca11..4bcabb3a1c 100644 --- a/webview-ui/src/components/chat/ShareButton.tsx +++ b/webview-ui/src/components/chat/ShareButton.tsx @@ -245,34 +245,34 @@ export const ShareButton = ({ item, disabled = false, showLabel = false }: Share - {t("account:cloudBenefitsTitle")} + {t("cloud:cloudBenefitsTitle")}

- {t("account:cloudBenefitsSubtitle")} + {t("cloud:cloudBenefitsSubtitle")}

  • - {t("account:cloudBenefitSharing")} + {t("cloud:cloudBenefitSharing")}
  • - {t("account:cloudBenefitHistory")} + {t("cloud:cloudBenefitHistory")}
  • - {t("account:cloudBenefitMetrics")} + {t("cloud:cloudBenefitMetrics")}
diff --git a/webview-ui/src/components/chat/__tests__/TaskActions.spec.tsx b/webview-ui/src/components/chat/__tests__/TaskActions.spec.tsx index 791e5196b3..c5f9c2055d 100644 --- a/webview-ui/src/components/chat/__tests__/TaskActions.spec.tsx +++ b/webview-ui/src/components/chat/__tests__/TaskActions.spec.tsx @@ -42,12 +42,12 @@ vi.mock("react-i18next", () => ({ "chat:task.connectToCloud": "Connect to Cloud", "chat:task.connectToCloudDescription": "Sign in to Roo Code Cloud to share tasks", "chat:task.sharingDisabledByOrganization": "Sharing disabled by organization", - "account:cloudBenefitsTitle": "Connect to Roo Code Cloud", - "account:cloudBenefitsSubtitle": "Sign in to Roo Code Cloud to share tasks", - "account:cloudBenefitHistory": "Access your task history from anywhere", - "account:cloudBenefitSharing": "Share tasks with your team", - "account:cloudBenefitMetrics": "Track usage and costs", - "account:connect": "Connect", + "cloud:cloudBenefitsTitle": "Connect to Roo Code Cloud", + "cloud:cloudBenefitsSubtitle": "Sign in to Roo Code Cloud to share tasks", + "cloud:cloudBenefitHistory": "Access your task history from anywhere", + "cloud:cloudBenefitSharing": "Share tasks with your team", + "cloud:cloudBenefitMetrics": "Track usage and costs", + "cloud:connect": "Connect", } return translations[key] || key }, @@ -260,7 +260,7 @@ describe("TaskActions", () => { // Verify popover is not open initially expect(screen.queryByText("Share with Organization")).not.toBeInTheDocument() - // Simulate user becoming authenticated (e.g., from AccountView) + // Simulate user becoming authenticated (e.g., from CloudView) mockUseExtensionState.mockReturnValue({ sharingEnabled: true, cloudIsAuthenticated: true, diff --git a/webview-ui/src/components/account/AccountView.tsx b/webview-ui/src/components/cloud/CloudView.tsx similarity index 84% rename from webview-ui/src/components/account/AccountView.tsx rename to webview-ui/src/components/cloud/CloudView.tsx index 25923deda3..92ccc72564 100644 --- a/webview-ui/src/components/account/AccountView.tsx +++ b/webview-ui/src/components/cloud/CloudView.tsx @@ -11,14 +11,14 @@ import { ToggleSwitch } from "@/components/ui/toggle-switch" import { History, PiggyBank, SquareArrowOutUpRightIcon } from "lucide-react" -type AccountViewProps = { +type CloudViewProps = { userInfo: CloudUserInfo | null isAuthenticated: boolean cloudApiUrl?: string onDone: () => void } -export const AccountView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: AccountViewProps) => { +export const CloudView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: CloudViewProps) => { const { t } = useAppTranslation() const { remoteControlEnabled, setRemoteControlEnabled } = useExtensionState() const wasAuthenticatedRef = useRef(false) @@ -31,25 +31,30 @@ export const AccountView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: wasAuthenticatedRef.current = true } else if (wasAuthenticatedRef.current && !isAuthenticated) { // User just logged out successfully + // NOTE: Telemetry events use ACCOUNT_* naming for continuity with existing analytics + // and to maintain historical data consistency, even though the UI now uses "Cloud" terminology telemetryClient.capture(TelemetryEventName.ACCOUNT_LOGOUT_SUCCESS) wasAuthenticatedRef.current = false } }, [isAuthenticated]) const handleConnectClick = () => { - // Send telemetry for account connect action + // Send telemetry for cloud connect action + // NOTE: Using ACCOUNT_* telemetry events for backward compatibility with analytics telemetryClient.capture(TelemetryEventName.ACCOUNT_CONNECT_CLICKED) vscode.postMessage({ type: "rooCloudSignIn" }) } const handleLogoutClick = () => { - // Send telemetry for account logout action + // Send telemetry for cloud logout action + // NOTE: Using ACCOUNT_* telemetry events for backward compatibility with analytics telemetryClient.capture(TelemetryEventName.ACCOUNT_LOGOUT_CLICKED) vscode.postMessage({ type: "rooCloudSignOut" }) } const handleVisitCloudWebsite = () => { // Send telemetry for cloud website visit + // NOTE: Using ACCOUNT_* telemetry events for backward compatibility with analytics telemetryClient.capture(TelemetryEventName.ACCOUNT_CONNECT_CLICKED) const cloudUrl = cloudApiUrl || "https://app.roocode.com" vscode.postMessage({ type: "openExternal", url: cloudUrl }) @@ -64,7 +69,7 @@ export const AccountView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: return (
-

{t("account:title")}

+

{t("cloud:title")}

{t("settings:common.done")} @@ -77,7 +82,7 @@ export const AccountView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: {userInfo?.picture ? ( {t("account:profilePicture")} ) : ( @@ -114,13 +119,13 @@ export const AccountView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }: checked={remoteControlEnabled} onChange={handleRemoteControlToggle} size="medium" - aria-label={t("account:remoteControl")} + aria-label={t("cloud:remoteControl")} data-testid="remote-control-toggle" /> - {t("account:remoteControl")} + {t("cloud:remoteControl")}
- {t("account:remoteControlDescription")} + {t("cloud:remoteControlDescription")}

@@ -128,10 +133,10 @@ export const AccountView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }:
- {t("account:visitCloudWebsite")} + {t("cloud:visitCloudWebsite")} - {t("account:logOut")} + {t("cloud:logOut")}
@@ -156,27 +161,27 @@ export const AccountView = ({ userInfo, isAuthenticated, cloudApiUrl, onDone }:

- {t("account:cloudBenefitsTitle")} + {t("cloud:cloudBenefitsTitle")}

  • - {t("account:cloudBenefitSharing")} + {t("cloud:cloudBenefitSharing")}
  • - {t("account:cloudBenefitHistory")} + {t("cloud:cloudBenefitHistory")}
  • - {t("account:cloudBenefitMetrics")} + {t("cloud:cloudBenefitMetrics")}
- {t("account:connect")} + {t("cloud:connect")}
diff --git a/webview-ui/src/components/account/__tests__/AccountView.spec.tsx b/webview-ui/src/components/cloud/__tests__/CloudView.spec.tsx similarity index 83% rename from webview-ui/src/components/account/__tests__/AccountView.spec.tsx rename to webview-ui/src/components/cloud/__tests__/CloudView.spec.tsx index 63058bd5b2..bc0acd2512 100644 --- a/webview-ui/src/components/account/__tests__/AccountView.spec.tsx +++ b/webview-ui/src/components/cloud/__tests__/CloudView.spec.tsx @@ -1,26 +1,26 @@ import { render, screen } from "@/utils/test-utils" -import { AccountView } from "../AccountView" +import { CloudView } from "../CloudView" // Mock the translation context vi.mock("@src/i18n/TranslationContext", () => ({ useAppTranslation: () => ({ t: (key: string) => { const translations: Record = { - "account:title": "Account", + "cloud:title": "Cloud", "settings:common.done": "Done", - "account:signIn": "Connect to Roo Code Cloud", - "account:cloudBenefitsTitle": "Connect to Roo Code Cloud", - "account:cloudBenefitSharing": "Share tasks with others", - "account:cloudBenefitHistory": "Access your task history", - "account:cloudBenefitMetrics": "Get a holistic view of your token consumption", - "account:logOut": "Log out", - "account:connect": "Connect Now", - "account:visitCloudWebsite": "Visit Roo Code Cloud", - "account:remoteControl": "Roomote Control", - "account:remoteControlDescription": + "cloud:signIn": "Connect to Roo Code Cloud", + "cloud:cloudBenefitsTitle": "Connect to Roo Code Cloud", + "cloud:cloudBenefitSharing": "Share tasks with others", + "cloud:cloudBenefitHistory": "Access your task history", + "cloud:cloudBenefitMetrics": "Get a holistic view of your token consumption", + "cloud:logOut": "Log out", + "cloud:connect": "Connect Now", + "cloud:visitCloudWebsite": "Visit Roo Code Cloud", + "cloud:remoteControl": "Roomote Control", + "cloud:remoteControlDescription": "Enable following and interacting with tasks in this workspace with Roo Code Cloud", - "account:profilePicture": "Profile picture", + "cloud:profilePicture": "Profile picture", } return translations[key] || key }, @@ -55,10 +55,10 @@ Object.defineProperty(window, "IMAGES_BASE_URI", { writable: true, }) -describe("AccountView", () => { +describe("CloudView", () => { it("should display benefits when user is not authenticated", () => { render( - { } render( - { } render( - { } render( -