Skip to content

Commit 3b68f71

Browse files
committed
Fixes the autoapprove upsell and some tests
1 parent effdff0 commit 3b68f71

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,16 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
185185
{enabledCount > 7 && (
186186
<>
187187
<DismissibleUpsell
188-
upsellId="autoApprovePowerUser"
188+
upsellId="autoApprovePowerUserA"
189189
onClick={() => openUpsell()}
190190
dismissOnClick={false}
191191
variant="banner">
192-
{t("cloud:upsell.autoApprovePowerUser")}
192+
<Trans
193+
i18nKey="cloud:upsell.autoApprovePowerUser"
194+
components={{
195+
learnMoreLink: <VSCodeLink href="#" />,
196+
}}
197+
/>
193198
</DismissibleUpsell>
194199
</>
195200
)}

webview-ui/src/components/common/__tests__/DismissibleUpsell.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe("DismissibleUpsell", () => {
110110

111111
it("hides the upsell if it's in the dismissed list", async () => {
112112
const { container } = render(
113-
<DismissibleUpsell id="test-upsell">
113+
<DismissibleUpsell upsellId="test-upsell">
114114
<div>Test content</div>
115115
</DismissibleUpsell>,
116116
)
@@ -154,7 +154,7 @@ describe("DismissibleUpsell", () => {
154154

155155
it("applies the className prop to the container", () => {
156156
const { container } = render(
157-
<DismissibleUpsell id="test-upsell" className="custom-class">
157+
<DismissibleUpsell upsellId="test-upsell" className="custom-class">
158158
<div>Test content</div>
159159
</DismissibleUpsell>,
160160
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"pasteCallbackUrl": "Copy the redirect URL from your browser and paste it here:",
2020
"startOver": "Start over",
2121
"upsell": {
22-
"autoApprovePowerUser": "Giving Roo some independence? Control it from anywhere with Roo Code Cloud. Click to learn more.",
22+
"autoApprovePowerUser": "Giving Roo some independence? Control it from anywhere with Roo Code Cloud. <learnMoreLink>Learn more</learnMoreLink>.",
2323
"longRunningTask": "This might take a while. Continue from anywhere with Cloud.",
2424
"taskList": "Roo Code Cloud is here: follow and control your tasks from anywhere. <learnMoreLink>Learn more</learnMoreLink>."
2525
}

0 commit comments

Comments
 (0)