Skip to content

Commit 8f7ac57

Browse files
authored
Add docs link for slash commands (#6409)
1 parent 51836bd commit 8f7ac57

File tree

19 files changed

+33
-19
lines changed

19 files changed

+33
-19
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import React, { useEffect, useState } from "react"
22
import { Zap } from "lucide-react"
3+
import { Trans } from "react-i18next"
34

45
import { useAppTranslation } from "@/i18n/TranslationContext"
56
import { useExtensionState } from "@/context/ExtensionStateContext"
67
import { Button, Popover, PopoverContent, PopoverTrigger, StandardTooltip } from "@/components/ui"
78
import { useRooPortal } from "@/components/ui/hooks/useRooPortal"
89
import { cn } from "@/lib/utils"
910
import { vscode } from "@/utils/vscode"
11+
import { buildDocLink } from "@/utils/docLinks"
1012

1113
import { SlashCommandsList } from "./SlashCommandsList"
1214

@@ -69,7 +71,19 @@ export const SlashCommandsPopover: React.FC<SlashCommandsPopoverProps> = ({ clas
6971
{/* Header section */}
7072
<div className="p-3 border-b border-vscode-dropdown-border">
7173
<p className="m-0 text-xs text-vscode-descriptionForeground">
72-
{t("chat:slashCommands.description")}
74+
<Trans
75+
i18nKey="chat:slashCommands.description"
76+
components={{
77+
DocsLink: (
78+
<a
79+
href={buildDocLink("features/slash-commands", "slash_commands")}
80+
target="_blank"
81+
rel="noopener noreferrer">
82+
Docs
83+
</a>
84+
),
85+
}}
86+
/>
7387
</p>
7488
</div>
7589

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/de/chat.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
"slashCommands": {
356356
"tooltip": "Manage slash commands",
357357
"title": "Slash Commands",
358-
"description": "Create custom slash commands for quick access to frequently used prompts and workflows.",
358+
"description": "Create custom slash commands for quick access to frequently used prompts and workflows. <DocsLink>Docs</DocsLink>",
359359
"globalCommands": "Global Commands",
360360
"workspaceCommands": "Workspace Commands",
361361
"globalCommand": "Global command",

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/fr/chat.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/hi/chat.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/id/chat.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/it/chat.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/ja/chat.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)