Skip to content

Commit 4fadb1e

Browse files
committed
fix: adding back marketplace buttons
1 parent 8281265 commit 4fadb1e

3 files changed

Lines changed: 45 additions & 3 deletions

File tree

webview-ui/src/components/modes/ModesView.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,24 @@ const ModesView = () => {
653653
</div>
654654
)}
655655
</div>
656+
<StandardTooltip content={t("chat:modeSelector.marketplace")}>
657+
<Button
658+
variant="ghost"
659+
size="icon"
660+
onClick={() => {
661+
window.postMessage(
662+
{
663+
type: "action",
664+
action: "marketplaceButtonClicked",
665+
values: { marketplaceTab: "mode" },
666+
},
667+
"*",
668+
)
669+
}}>
670+
<span className="codicon codicon-extensions"></span>
671+
</Button>
672+
</StandardTooltip>
673+
656674
<StandardTooltip content={t("prompts:modes.importMode")}>
657675
<Button
658676
variant="ghost"

webview-ui/src/components/settings/About.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { HTMLAttributes } from "react"
22
import { useAppTranslation } from "@/i18n/TranslationContext"
33
import { Trans } from "react-i18next"
4-
import { Download, Upload, TriangleAlert, Bug, Shield, Lightbulb, MessagesSquare } from "lucide-react"
4+
import { Download, Upload, TriangleAlert, Bug, Lightbulb, Shield, MessagesSquare } from "lucide-react"
55
import { VSCodeCheckbox, VSCodeLink } from "@vscode/webview-ui-toolkit/react"
66

77
import type { TelemetrySetting } from "@roo-code/types"
@@ -61,7 +61,7 @@ export const About = ({ telemetrySetting, setTelemetrySetting, debug, setDebug,
6161
</Section>
6262

6363
<Section className="space-y-0">
64-
<h3>{t("settings:about.contact")}</h3>
64+
<h3>{t("settings:about.contactAndCommunity")}</h3>
6565
<div className="flex flex-col gap-3">
6666
<div className="flex items-start gap-2">
6767
<Bug className="size-4 text-vscode-descriptionForeground shrink-0" />

webview-ui/src/components/settings/SkillsSettings.tsx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useEffect, useMemo, useCallback } from "react"
2-
import { Trans } from "react-i18next"
32
import { Plus, Globe, Folder, Edit, Trash2, Settings } from "lucide-react"
3+
import { Trans } from "react-i18next"
44

55
import type { SkillMetadata } from "@roo-code/types"
66

@@ -276,6 +276,30 @@ export const SkillsSettings: React.FC = () => {
276276
</div>
277277
</div>
278278

279+
{/* Fixed Footer */}
280+
<div className="px-6 py-1 text-sm border-t border-vscode-panel-border text-muted-foreground">
281+
<Trans
282+
i18nKey="settings:skills.footer"
283+
components={{
284+
MarketplaceLink: (
285+
<span
286+
onClick={() => {
287+
window.postMessage(
288+
{
289+
type: "action",
290+
action: "marketplaceButtonClicked",
291+
values: { marketplaceTab: "mode" },
292+
},
293+
"*",
294+
)
295+
}}
296+
className="text-vscode-textLink-foreground hover:underline cursor-pointer"
297+
/>
298+
),
299+
}}
300+
/>
301+
</div>
302+
279303
{/* Delete Confirmation Dialog */}
280304
<AlertDialog open={deleteDialogOpen} onOpenChange={setDeleteDialogOpen}>
281305
<AlertDialogContent>

0 commit comments

Comments
 (0)