Skip to content

Commit 572880c

Browse files
committed
Remove RooCloud
1 parent f227dae commit 572880c

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

packages/types/src/global-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ export type SecretState = Pick<
186186
| "codebaseIndexGeminiApiKey"
187187
| "codeIndexModelHarborApiKey"
188188
| "codebaseIndexMistralApiKey"
189+
| "huggingFaceApiKey"
189190
>
190191

191192
export const SECRET_STATE_KEYS = keysOf<SecretState>()([
192193
"apiKey",
193194
"glamaApiKey",
194195
"openRouterApiKey",
195196
"awsAccessKey",
196-
"awsApiKey",
197197
"awsSecretKey",
198198
"awsSessionToken",
199199
"openAiApiKey",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { useExtensionState } from "@src/context/ExtensionStateContext"
3636
import { useSelectedModel } from "@src/components/ui/hooks/useSelectedModel"
3737
import RooHero from "@src/components/welcome/RooHero"
3838
import RooTips from "@src/components/welcome/RooTips"
39-
import RooCloudCTA from "@src/components/welcome/RooCloudCTA"
39+
// import RooCloudCTA from "@src/components/welcome/RooCloudCTA"
4040
import { StandardTooltip } from "@src/components/ui"
4141
import { useAutoApprovalState } from "@src/hooks/useAutoApprovalState"
4242
import { useAutoApprovalToggles } from "@src/hooks/useAutoApprovalToggles"
@@ -114,7 +114,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
114114
historyPreviewCollapsed, // Added historyPreviewCollapsed
115115
soundEnabled,
116116
soundVolume,
117-
cloudIsAuthenticated,
117+
// cloudIsAuthenticated,
118118
} = useExtensionState()
119119

120120
const messagesRef = useRef(messages)
@@ -1698,7 +1698,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
16981698
{telemetrySetting === "unset" && <TelemetryBanner />}
16991699

17001700
<div className="mb-2.5">
1701-
{cloudIsAuthenticated || taskHistory.length < 4 ? <RooTips /> : <RooCloudCTA />}
1701+
<RooTips />
17021702
</div>
17031703
{/* Show the task history preview if expanded and tasks exist */}
17041704
{taskHistory.length > 0 && isExpanded && <HistoryPreview />}

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ describe("ChatView - Version Indicator Tests", () => {
13501350
describe("ChatView - RooCloudCTA Display Tests", () => {
13511351
beforeEach(() => vi.clearAllMocks())
13521352

1353-
it("does not show RooCloudCTA when user is authenticated to Cloud", () => {
1353+
it("shows RooTips when user is authenticated to Cloud", () => {
13541354
const { queryByTestId, getByTestId } = renderChatView()
13551355

13561356
// Hydrate state with user authenticated to cloud and some task history
@@ -1366,12 +1366,12 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
13661366
clineMessages: [], // No active task
13671367
})
13681368

1369-
// Should not show RooCloudCTA but should show RooTips
1369+
// Should show RooTips and not RooCloudCTA
13701370
expect(queryByTestId("roo-cloud-cta")).not.toBeInTheDocument()
13711371
expect(getByTestId("roo-tips")).toBeInTheDocument()
13721372
})
13731373

1374-
it("does not show RooCloudCTA when user has only run 3 tasks in their history", () => {
1374+
it("shows RooTips when user has only run 3 tasks in their history", () => {
13751375
const { queryByTestId, getByTestId } = renderChatView()
13761376

13771377
// Hydrate state with user not authenticated and only 3 tasks in history
@@ -1385,12 +1385,12 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
13851385
clineMessages: [], // No active task
13861386
})
13871387

1388-
// Should not show RooCloudCTA but should show RooTips
1388+
// Should show RooTips and not RooCloudCTA
13891389
expect(queryByTestId("roo-cloud-cta")).not.toBeInTheDocument()
13901390
expect(getByTestId("roo-tips")).toBeInTheDocument()
13911391
})
13921392

1393-
it("shows RooCloudCTA when user is not authenticated and has run 4 or more tasks", async () => {
1393+
it("shows RooTips when user is not authenticated and has run 4 or more tasks", async () => {
13941394
const { getByTestId, queryByTestId } = renderChatView()
13951395

13961396
// Hydrate state with user not authenticated and 4+ tasks in history
@@ -1405,14 +1405,14 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
14051405
clineMessages: [], // No active task
14061406
})
14071407

1408-
// Should show RooCloudCTA and not RooTips
1408+
// Should show RooTips and not RooCloudCTA
14091409
await waitFor(() => {
1410-
expect(getByTestId("roo-cloud-cta")).toBeInTheDocument()
1410+
expect(getByTestId("roo-tips")).toBeInTheDocument()
14111411
})
1412-
expect(queryByTestId("roo-tips")).not.toBeInTheDocument()
1412+
expect(queryByTestId("roo-cloud-cta")).not.toBeInTheDocument()
14131413
})
14141414

1415-
it("shows RooCloudCTA when user is not authenticated and has run 5 tasks", async () => {
1415+
it("shows RooTips when user is not authenticated and has run 5 tasks", async () => {
14161416
const { getByTestId, queryByTestId } = renderChatView()
14171417

14181418
// Hydrate state with user not authenticated and 5 tasks in history
@@ -1428,11 +1428,11 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
14281428
clineMessages: [], // No active task
14291429
})
14301430

1431-
// Should show RooCloudCTA and not RooTips
1431+
// Should show RooTips and not RooCloudCTA
14321432
await waitFor(() => {
1433-
expect(getByTestId("roo-cloud-cta")).toBeInTheDocument()
1433+
expect(getByTestId("roo-tips")).toBeInTheDocument()
14341434
})
1435-
expect(queryByTestId("roo-tips")).not.toBeInTheDocument()
1435+
expect(queryByTestId("roo-cloud-cta")).not.toBeInTheDocument()
14361436
})
14371437

14381438
it("does not show RooCloudCTA when there is an active task (regardless of auth status)", async () => {
@@ -1468,7 +1468,7 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
14681468
})
14691469
})
14701470

1471-
it("shows RooTips when user is authenticated (instead of RooCloudCTA)", () => {
1471+
it("shows RooTips when user is authenticated", () => {
14721472
const { queryByTestId, getByTestId } = renderChatView()
14731473

14741474
// Hydrate state with user authenticated to cloud
@@ -1483,12 +1483,12 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
14831483
clineMessages: [], // No active task
14841484
})
14851485

1486-
// Should not show RooCloudCTA but should show RooTips
1486+
// Should show RooTips and not RooCloudCTA
14871487
expect(queryByTestId("roo-cloud-cta")).not.toBeInTheDocument()
14881488
expect(getByTestId("roo-tips")).toBeInTheDocument()
14891489
})
14901490

1491-
it("shows RooTips when user has fewer than 4 tasks (instead of RooCloudCTA)", () => {
1491+
it("shows RooTips when user has fewer than 4 tasks", () => {
14921492
const { queryByTestId, getByTestId } = renderChatView()
14931493

14941494
// Hydrate state with user not authenticated but fewer than 4 tasks
@@ -1502,7 +1502,7 @@ describe("ChatView - RooCloudCTA Display Tests", () => {
15021502
clineMessages: [], // No active task
15031503
})
15041504

1505-
// Should not show RooCloudCTA but should show RooTips
1505+
// Should show RooTips and not RooCloudCTA
15061506
expect(queryByTestId("roo-cloud-cta")).not.toBeInTheDocument()
15071507
expect(getByTestId("roo-tips")).toBeInTheDocument()
15081508
})

0 commit comments

Comments
 (0)