Skip to content

Commit 9bc6e1a

Browse files
committed
feat: add documentation links for global custom instructions in UI
- Updated translation strings to include links to global rules documentation - Added VSCodeLink components in ModesView to render clickable documentation links - Helps users discover global custom instructions feature as suggested in GitHub discussion #7111
1 parent bfdd158 commit 9bc6e1a

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,15 @@ const ModesView = ({ onDone }: ModesViewProps) => {
11661166
}}
11671167
/>
11681168
),
1169+
"0": (
1170+
<VSCodeLink
1171+
href={buildDocLink(
1172+
"features/custom-instructions#global-custom-instructions",
1173+
"prompts_mode_custom_instructions_global",
1174+
)}
1175+
style={{ display: "inline" }}
1176+
/>
1177+
),
11691178
}}
11701179
/>
11711180
</div>
@@ -1352,6 +1361,15 @@ const ModesView = ({ onDone }: ModesViewProps) => {
13521361
}
13531362
/>
13541363
),
1364+
"0": (
1365+
<VSCodeLink
1366+
href={buildDocLink(
1367+
"features/custom-instructions#global-custom-instructions",
1368+
"prompts_global_custom_instructions_global",
1369+
)}
1370+
style={{ display: "inline" }}
1371+
/>
1372+
),
13551373
}}
13561374
/>
13571375
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"title": "Mode-specific Custom Instructions (optional)",
5151
"resetToDefault": "Reset to default",
5252
"description": "Add behavioral guidelines specific to {{modeName}} mode.",
53-
"loadFromFile": "Custom instructions specific to {{mode}} mode can also be loaded from the <span>.roo/rules-{{slug}}/</span> folder in your workspace (.roorules-{{slug}} and .clinerules-{{slug}} are deprecated and will stop working soon)."
53+
"loadFromFile": "Custom instructions specific to {{mode}} mode can also be loaded from the <span>.roo/rules-{{slug}}/</span> folder in your workspace or from the global <0>.roo/rules-{{slug}}/</0> (.roorules-{{slug}} and .clinerules-{{slug}} are deprecated and will stop working soon)."
5454
},
5555
"exportMode": {
5656
"title": "Export Mode",
@@ -76,7 +76,7 @@
7676
"globalCustomInstructions": {
7777
"title": "Custom Instructions for All Modes",
7878
"description": "These instructions apply to all modes. They provide a base set of behaviors that can be enhanced by mode-specific instructions below. <0>Learn more</0>",
79-
"loadFromFile": "Instructions can also be loaded from the <span>.roo/rules/</span> folder in your workspace (.roorules and .clinerules are deprecated and will stop working soon)."
79+
"loadFromFile": "Instructions can also be loaded from the <span>.roo/rules/</span> folder in your workspace or from the global <0>.roo/rules/</0> (.roorules and .clinerules are deprecated and will stop working soon)."
8080
},
8181
"systemPrompt": {
8282
"preview": "Preview System Prompt",

0 commit comments

Comments
 (0)