From 47eacdc545c5660e8441fced2ba84c6b13ffeb3e Mon Sep 17 00:00:00 2001 From: pashpashpash Date: Wed, 21 May 2025 13:11:28 -0700 Subject: [PATCH] Pashpashpash/rules links (#3701) * adding docs links to rules modal * changeset --------- Co-authored-by: Cline Evaluation --- .changeset/fast-days-poke.md | 5 +++++ .../cline-rules/ClineRulesToggleModal.tsx | 18 +++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .changeset/fast-days-poke.md diff --git a/.changeset/fast-days-poke.md b/.changeset/fast-days-poke.md new file mode 100644 index 00000000..e15d1774 --- /dev/null +++ b/.changeset/fast-days-poke.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Added documentation links to rules & workflows UI diff --git a/webview-ui/src/components/cline-rules/ClineRulesToggleModal.tsx b/webview-ui/src/components/cline-rules/ClineRulesToggleModal.tsx index 41da5c85..e0dbd4be 100644 --- a/webview-ui/src/components/cline-rules/ClineRulesToggleModal.tsx +++ b/webview-ui/src/components/cline-rules/ClineRulesToggleModal.tsx @@ -4,7 +4,7 @@ import { useExtensionState } from "@/context/ExtensionStateContext" import { CODE_BLOCK_BG_COLOR } from "@/components/common/CodeBlock" import { vscode } from "@/utils/vscode" import { FileServiceClient } from "@/services/grpc-client" -import { VSCodeButton } from "@vscode/webview-ui-toolkit/react" +import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react" import RulesToggleList from "./RulesToggleList" import Tooltip from "@/components/common/Tooltip" import styled from "styled-components" @@ -222,7 +222,13 @@ const ClineRulesToggleModal: React.FC = () => { {currentView === "rules" ? (

Rules allow you to provide Cline with system-level guidance. Think of them as a persistent way to - include context and preferences for your projects or globally for every conversation. + include context and preferences for your projects or globally for every conversation.{" "} + + Docs +

) : (

@@ -233,7 +239,13 @@ const ClineRulesToggleModal: React.FC = () => { text-[var(--vscode-foreground)] font-bold"> /workflow-name {" "} - in the chat. + in the chat.{" "} + + Docs +

)}