Skip to content

Commit 5223ffd

Browse files
mrubensutarn
authored andcommitted
Add docs link for slash commands (RooCodeInc#6409)
1 parent cc0a7d3 commit 5223ffd

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
@@ -357,7 +357,7 @@
357357
"slashCommands": {
358358
"tooltip": "Manage slash commands",
359359
"title": "Slash Commands",
360-
"description": "Create custom slash commands for quick access to frequently used prompts and workflows.",
360+
"description": "Create custom slash commands for quick access to frequently used prompts and workflows. <DocsLink>Docs</DocsLink>",
361361
"globalCommands": "Global Commands",
362362
"workspaceCommands": "Workspace Commands",
363363
"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)