Skip to content

Commit d784c28

Browse files
committed
feat: Update Code Supernova promotion wording and ensure tests pass
- Updated wording for Code Supernova stealth model promotion - All tests now passing - Refined UI messaging and user experience
1 parent db84a07 commit d784c28

File tree

22 files changed

+55
-42
lines changed

22 files changed

+55
-42
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3036,7 +3036,7 @@ export const webviewMessageHandler = async (
30363036
break
30373037
}
30383038
case "openSettings": {
3039-
// Execute the settings command to open the settings panel
3039+
// Jump the user to the Providers settings panel when they click the CODE SUPERNOVA upsell link
30403040
await vscode.commands.executeCommand(getCommand("settingsButtonClicked"))
30413041
break
30423042
}

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
18501850
upsellId="taskListSupernova"
18511851
dismissOnClick={false}
18521852
className="bg-vscode-editor-background p-4 !text-base">
1853-
<div className="w-full text-center leading-relaxed">
1853+
<div className="w-full leading-relaxed">
18541854
<Trans
18551855
i18nKey="cloud:upsell.taskList"
18561856
components={{

webview-ui/src/components/chat/__tests__/CloudTaskButton.spec.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ vi.mock("qrcode", () => ({
1919
// Mock react-i18next
2020
vi.mock("react-i18next")
2121

22-
// Mock the cloud config
23-
vi.mock("@roo-code/cloud/src/config", () => ({
24-
getRooCodeApiUrl: vi.fn(() => "https://app.roocode.com"),
25-
}))
26-
2722
// Mock the extension state context
2823
vi.mock("@/context/ExtensionStateContext", () => ({
2924
ExtensionStateContextProvider: ({ children }: { children: React.ReactNode }) => children,

webview-ui/src/components/history/__tests__/HistoryPreview.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ describe("HistoryPreview", () => {
219219
it("renders with correct container classes", () => {
220220
mockUseTaskSearch.mockReturnValue({
221221
tasks: mockTasks.slice(0, 1),
222+
recentTasks: mockTasks.slice(0, 1),
222223
searchQuery: "",
223224
setSearchQuery: vi.fn(),
224225
sortOption: "newest",

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

Lines changed: 3 additions & 2 deletions
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: 3 additions & 2 deletions
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
@@ -27,6 +27,6 @@
2727
"upsell": {
2828
"autoApprovePowerUser": "Giving Roo some independence? Control it from anywhere with Roo Code Cloud. <learnMoreLink>Learn more</learnMoreLink>.",
2929
"longRunningTask": "This might take a while. Continue from anywhere with Cloud.",
30-
"taskList": "💫 CODE SUPERNOVA 🌌<lineBreak/>Astronomical context • Long-running tasks • Mobile management via Roo Code Pro<lineBreak/>Try both free today by selecting <providersLink>provider Roo Code Cloud</providersLink>"
30+
"taskList": "💫 STEALTH MODEL CODE SUPERNOVA 🌌<lineBreak/>Free tokens for intergalactic length tasks.<lineBreak/>Hop between devices with Roo Code Pro.<lineBreak/>Try both free by selecting <providersLink>provider Roo Code Cloud</providersLink>"
3131
}
3232
}

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

Lines changed: 3 additions & 2 deletions
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: 3 additions & 2 deletions
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: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)