Skip to content

Commit 5783aa2

Browse files
committed
updated guides and examples
1 parent 3376916 commit 5783aa2

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

frontend/src/components/ChatInterface.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,18 @@ export const ChatInterface = ({ tools }: ChatInterfaceProps) => {
184184
const userMessage = messageToSend;
185185
if (!retryMessage) {
186186
setInput("");
187+
const messageUserLevel = detectUserLevel(userMessage);
188+
const { tools: relatedTools, guides, examples } = findRelatedContent(userMessage, tools);
189+
187190
setMessages(prev => [...prev, {
188191
role: "user",
189-
content: userMessage
192+
content: userMessage,
193+
context: {
194+
userLevel: messageUserLevel,
195+
relatedTools,
196+
relatedGuides: guides,
197+
relatedExamples: examples
198+
}
190199
}]);
191200
}
192201
setIsLoading(true);

frontend/src/pages/Guides.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ const GUIDE_FILES = [
1313
"accept-payments-with-paystack.md",
1414
"ai-integration-guide.md",
1515
"connect-supabase-vercel.md",
16+
"free_vibe_coding_guide.md",
1617
"get-started.md",
1718
"getting-started.md",
19+
"prompt_engineering_guide.md",
1820
"run-llm-locally.md",
1921
"track-users-privately.md"
2022
];
@@ -118,6 +120,24 @@ const Guides = () => {
118120
difficulty: "intermediate",
119121
estimatedTime: "30-45 minutes",
120122
techStack: ["Analytics", "Privacy", "Data Protection"]
123+
},
124+
"prompt_engineering_guide.md": {
125+
title: "Prompt Engineering Guide",
126+
description: "Comprehensive guide to crafting effective prompts for AI models, with practical examples and best practices.",
127+
category: "ai",
128+
tags: ["AI", "Prompt Engineering", "Best Practices", "OpenAI", "ChatGPT"],
129+
difficulty: "intermediate",
130+
estimatedTime: "45-60 minutes",
131+
techStack: ["AI", "Prompting", "OpenAI", "GPT"]
132+
},
133+
"free_vibe_coding_guide.md": {
134+
title: "Free Vibe Coding Guide",
135+
description: "Learn how to maintain a relaxed, productive coding environment while working on projects with free and open-source tools.",
136+
category: "getting-started",
137+
tags: ["Productivity", "Development", "Open Source", "Tools"],
138+
difficulty: "beginner",
139+
estimatedTime: "20-30 minutes",
140+
techStack: ["Development", "Productivity", "Open Source"]
121141
}
122142
};
123143

guides/free_vibe_coding_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Use debounce (300ms) and show loading state while searching.
225225
- Show diff before applying
226226
- You approve/reject
227227

228-
**Video tutorial:** [How to setup Cline with OpenRouter](https://www.youtube.com/watch?v=m8a83oBsIBI&t=8s)
228+
**Video tutorial:** [How to setup Dyad with openRouter API](https://www.youtube.com/watch?v=m8a83oBsIBI&t=8s)
229229

230230
### Option C: Qwen Coder CLI (Completely Free, Runs Locally)
231231

0 commit comments

Comments
 (0)