mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-31 21:11:44 +02:00
Update AI chat popup
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { BookOpen, Bot, Code, HelpCircle, LockIcon, Send } from 'lucide-react';
|
import {
|
||||||
|
BookOpen,
|
||||||
|
Bot,
|
||||||
|
Code,
|
||||||
|
Globe, Hammer,
|
||||||
|
HelpCircle,
|
||||||
|
LockIcon,
|
||||||
|
Send,
|
||||||
|
} from 'lucide-react';
|
||||||
import { useEffect, useMemo, useRef, useState, type FormEvent } from 'react';
|
import { useEffect, useMemo, useRef, useState, type FormEvent } from 'react';
|
||||||
import { flushSync } from 'react-dom';
|
import { flushSync } from 'react-dom';
|
||||||
import TextareaAutosize from 'react-textarea-autosize';
|
import TextareaAutosize from 'react-textarea-autosize';
|
||||||
@@ -369,14 +377,14 @@ const capabilities = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: (
|
icon: (
|
||||||
<Code className="size-4 shrink-0 text-yellow-600" strokeWidth={2.5} />
|
<Hammer className="size-4 shrink-0 text-yellow-600" strokeWidth={2.5} />
|
||||||
),
|
),
|
||||||
title: 'Code Help',
|
title: 'Real-world Examples',
|
||||||
description: 'Share your code and ask me to help you debug it',
|
description: 'Ask for real-world examples to understand better',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <Bot className="size-4 shrink-0 text-yellow-600" strokeWidth={2.5} />,
|
icon: <Bot className="size-4 shrink-0 text-yellow-600" strokeWidth={2.5} />,
|
||||||
title: 'Best Practices',
|
title: 'Best Practices',
|
||||||
description: 'Share your code and ask me the best way to do something',
|
description: 'Learn about best practices and common pitfalls',
|
||||||
},
|
},
|
||||||
] as const;
|
] as const;
|
||||||
|
@@ -203,7 +203,7 @@ export function AICourseLesson(props: AICourseLessonProps) {
|
|||||||
isLoading;
|
isLoading;
|
||||||
|
|
||||||
const cantGoBack =
|
const cantGoBack =
|
||||||
(activeModuleIndex === 0 && activeLessonIndex === 0) || isGenerating;
|
(activeModuleIndex === 0 && activeLessonIndex === 0) || isGenerating || isLoading;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto max-w-4xl">
|
<div className="mx-auto max-w-4xl">
|
||||||
|
Reference in New Issue
Block a user