Spaces:
Running
Running
axeronis commited on
Commit ·
d5690ad
1
Parent(s): 7756d2d
fix: Demo-chat layout and file list height
Browse files
frontend/app/demo-chat/page.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
import { useState, useRef, useEffect } from 'react'
|
| 4 |
import { motion, AnimatePresence } from 'framer-motion'
|
| 5 |
-
import { Send, Bot, User, Loader2, Sparkles, Wand2, ArrowLeft, Trash2, CheckCircle
|
| 6 |
import { api } from '@/lib/api'
|
| 7 |
import { useToast } from '@/contexts/ToastContext'
|
| 8 |
import { cn } from '@/lib/utils'
|
|
@@ -14,7 +14,7 @@ interface DemoMessage {
|
|
| 14 |
role: 'user' | 'ai' | 'system'
|
| 15 |
content: string
|
| 16 |
timestamp: Date
|
| 17 |
-
changes?:
|
| 18 |
}
|
| 19 |
|
| 20 |
export default function DemoChatPage() {
|
|
@@ -28,20 +28,10 @@ export default function DemoChatPage() {
|
|
| 28 |
const messagesEndRef = useRef<HTMLDivElement>(null)
|
| 29 |
const inputRef = useRef<HTMLInputElement>(null)
|
| 30 |
|
| 31 |
-
// Lock body scroll on mount
|
| 32 |
-
useEffect(() => {
|
| 33 |
-
document.body.style.overflow = 'hidden'
|
| 34 |
-
return () => {
|
| 35 |
-
document.body.style.overflow = ''
|
| 36 |
-
}
|
| 37 |
-
}, [])
|
| 38 |
-
|
| 39 |
-
// Scroll to bottom on new messages
|
| 40 |
useEffect(() => {
|
| 41 |
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' })
|
| 42 |
}, [messages])
|
| 43 |
|
| 44 |
-
// Focus input on mount
|
| 45 |
useEffect(() => {
|
| 46 |
setTimeout(() => inputRef.current?.focus(), 300)
|
| 47 |
}, [])
|
|
@@ -56,7 +46,7 @@ export default function DemoChatPage() {
|
|
| 56 |
setMessages(prev => [...prev, {
|
| 57 |
id: crypto.randomUUID(),
|
| 58 |
role: 'system',
|
| 59 |
-
content:
|
| 60 |
timestamp: new Date(),
|
| 61 |
changes: data.changes
|
| 62 |
}])
|
|
@@ -101,13 +91,12 @@ export default function DemoChatPage() {
|
|
| 101 |
return
|
| 102 |
}
|
| 103 |
|
| 104 |
-
|
| 105 |
id: crypto.randomUUID(),
|
| 106 |
role: 'user',
|
| 107 |
content: userInput,
|
| 108 |
timestamp: new Date()
|
| 109 |
-
}
|
| 110 |
-
setMessages(prev => [...prev, userMessage])
|
| 111 |
|
| 112 |
setIsLoading(true)
|
| 113 |
try {
|
|
@@ -149,66 +138,59 @@ export default function DemoChatPage() {
|
|
| 149 |
toast.info('Чат очищен')
|
| 150 |
}
|
| 151 |
|
| 152 |
-
const toggleCorrectMode = () => {
|
| 153 |
-
setIsCorrectMode(!isCorrectMode)
|
| 154 |
-
inputRef.current?.focus()
|
| 155 |
-
}
|
| 156 |
-
|
| 157 |
if (authLoading) {
|
| 158 |
return (
|
| 159 |
-
<div className="
|
| 160 |
<Loader2 className="w-8 h-8 animate-spin text-violet-500" />
|
| 161 |
</div>
|
| 162 |
)
|
| 163 |
}
|
| 164 |
|
| 165 |
return (
|
| 166 |
-
<div className="
|
| 167 |
{/* Header */}
|
| 168 |
-
<header className="flex-shrink-0 flex items-center justify-between px-
|
| 169 |
-
<div className="flex items-center gap-
|
| 170 |
-
<Link href="/settings/brain" className="p-
|
| 171 |
<ArrowLeft className="w-5 h-5" />
|
| 172 |
</Link>
|
| 173 |
-
<div className="w-
|
| 174 |
-
<Bot className="w-
|
| 175 |
</div>
|
| 176 |
<div>
|
| 177 |
<h1 className="font-semibold text-white text-sm">Демо-чат</h1>
|
| 178 |
-
<p className="text-[10px] text-white/40
|
| 179 |
</div>
|
| 180 |
</div>
|
| 181 |
|
| 182 |
-
<
|
| 183 |
-
<
|
| 184 |
-
|
| 185 |
-
</button>
|
| 186 |
-
</div>
|
| 187 |
</header>
|
| 188 |
|
| 189 |
-
{/* Messages
|
| 190 |
-
<div className="flex-1 overflow-y-auto
|
| 191 |
-
<div className="max-w-2xl mx-auto px-
|
| 192 |
{messages.length === 0 ? (
|
| 193 |
-
<div className="flex flex-col items-center justify-center min-h-[50vh] text-center
|
| 194 |
-
<div className="w-
|
| 195 |
-
<Sparkles className="w-
|
| 196 |
</div>
|
| 197 |
-
<h3 className="text-
|
| 198 |
-
<p className="text-
|
| 199 |
-
Пиши как клиент. 🪄 — режим правки.
|
| 200 |
</p>
|
| 201 |
|
| 202 |
<div className="grid gap-2 w-full max-w-sm">
|
| 203 |
<button
|
| 204 |
onClick={() => setInput('Привет!')}
|
| 205 |
-
className="p-
|
| 206 |
>
|
| 207 |
💬 "Привет!"
|
| 208 |
</button>
|
| 209 |
<button
|
| 210 |
onClick={() => setInput('Сколько стоит?')}
|
| 211 |
-
className="p-
|
| 212 |
>
|
| 213 |
💰 "Сколько стоит?"
|
| 214 |
</button>
|
|
@@ -221,35 +203,32 @@ export default function DemoChatPage() {
|
|
| 221 |
initial={{ opacity: 0, y: 5 }}
|
| 222 |
animate={{ opacity: 1, y: 0 }}
|
| 223 |
className={cn(
|
| 224 |
-
"flex gap-
|
| 225 |
msg.role === 'user' && "flex-row-reverse",
|
| 226 |
msg.role === 'system' && "justify-center"
|
| 227 |
)}
|
| 228 |
>
|
| 229 |
{msg.role === 'system' ? (
|
| 230 |
-
<div className="px-
|
| 231 |
-
<div className="flex items-start gap-2 text-violet-300 text-
|
| 232 |
-
<CheckCircle className="w-
|
| 233 |
<div className="whitespace-pre-wrap">{msg.content}</div>
|
| 234 |
</div>
|
| 235 |
{msg.changes && msg.changes.length > 0 && (
|
| 236 |
-
<div className="mt-
|
| 237 |
{msg.changes.map((c: any, i: number) => (
|
| 238 |
-
<div key={i} className="bg-violet-500/10 rounded-lg px-
|
| 239 |
<div className="text-violet-200 font-medium">{c.field}</div>
|
| 240 |
{c.section && (
|
| 241 |
<div className="text-violet-400/60 text-[10px]">{c.section}</div>
|
| 242 |
)}
|
| 243 |
{(c.old || c.new) && (
|
| 244 |
-
<div className="text-violet-300 mt-
|
| 245 |
<span className="text-red-400/70">{c.old}</span>
|
| 246 |
-
<span className="text-violet-400 mx-
|
| 247 |
<span className="text-green-400">{c.new}</span>
|
| 248 |
</div>
|
| 249 |
)}
|
| 250 |
-
{c.value && !c.new && (
|
| 251 |
-
<div className="text-violet-300">{c.value}</div>
|
| 252 |
-
)}
|
| 253 |
</div>
|
| 254 |
))}
|
| 255 |
</div>
|
|
@@ -258,22 +237,22 @@ export default function DemoChatPage() {
|
|
| 258 |
) : (
|
| 259 |
<>
|
| 260 |
<div className={cn(
|
| 261 |
-
"w-
|
| 262 |
msg.role === 'user' ? "bg-white/10" : "bg-gradient-to-br from-violet-600 to-purple-700"
|
| 263 |
)}>
|
| 264 |
{msg.role === 'user' ? (
|
| 265 |
-
<User className="w-
|
| 266 |
) : (
|
| 267 |
-
<Bot className="w-
|
| 268 |
)}
|
| 269 |
</div>
|
| 270 |
<div className={cn(
|
| 271 |
-
"max-w-[
|
| 272 |
msg.role === 'user'
|
| 273 |
? "bg-violet-600 text-white rounded-br-md"
|
| 274 |
: "bg-white/5 text-white/90 border border-white/5 rounded-bl-md"
|
| 275 |
)}>
|
| 276 |
-
<p className="whitespace-pre-wrap
|
| 277 |
</div>
|
| 278 |
</>
|
| 279 |
)}
|
|
@@ -282,15 +261,15 @@ export default function DemoChatPage() {
|
|
| 282 |
)}
|
| 283 |
|
| 284 |
{isLoading && (
|
| 285 |
-
<div className="flex gap-
|
| 286 |
-
<div className="w-
|
| 287 |
-
<Bot className="w-
|
| 288 |
</div>
|
| 289 |
-
<div className="bg-white/5 border border-white/5 px-
|
| 290 |
-
<div className="flex gap-1">
|
| 291 |
-
<span className="w-
|
| 292 |
-
<span className="w-
|
| 293 |
-
<span className="w-
|
| 294 |
</div>
|
| 295 |
</div>
|
| 296 |
</div>
|
|
@@ -300,25 +279,29 @@ export default function DemoChatPage() {
|
|
| 300 |
</div>
|
| 301 |
</div>
|
| 302 |
|
| 303 |
-
{/* Input - Fixed at bottom */}
|
| 304 |
-
<div className="flex-shrink-0 border-t border-white/5 bg-[#0a0a0f] px-
|
| 305 |
<div className="max-w-2xl mx-auto">
|
| 306 |
<div className={cn(
|
| 307 |
-
"flex items-center gap-
|
| 308 |
isCorrectMode
|
| 309 |
? "bg-violet-500/10 border-2 border-violet-500/30"
|
| 310 |
-
: "bg-white/5 border border-white/
|
| 311 |
)}>
|
| 312 |
<button
|
| 313 |
-
onClick={
|
|
|
|
|
|
|
|
|
|
| 314 |
className={cn(
|
| 315 |
-
"p-2 rounded-lg transition-all flex-shrink-0",
|
| 316 |
isCorrectMode
|
| 317 |
? "bg-violet-500 text-white"
|
| 318 |
: "text-white/40 hover:text-violet-400"
|
| 319 |
)}
|
|
|
|
| 320 |
>
|
| 321 |
-
<Wand2 className="w-
|
| 322 |
</button>
|
| 323 |
|
| 324 |
<input
|
|
@@ -327,8 +310,8 @@ export default function DemoChatPage() {
|
|
| 327 |
value={input}
|
| 328 |
onChange={(e) => setInput(e.target.value)}
|
| 329 |
onKeyPress={handleKeyPress}
|
| 330 |
-
placeholder={isCorrectMode ? "
|
| 331 |
-
className="flex-1 bg-transparent text-white placeholder-white/30 focus:outline-none text-sm px-
|
| 332 |
disabled={isLoading}
|
| 333 |
/>
|
| 334 |
|
|
@@ -336,19 +319,19 @@ export default function DemoChatPage() {
|
|
| 336 |
onClick={handleSend}
|
| 337 |
disabled={!input.trim() || isLoading}
|
| 338 |
className={cn(
|
| 339 |
-
"p-2 rounded-lg transition-all flex-shrink-0",
|
| 340 |
input.trim()
|
| 341 |
-
? "bg-violet-600 text-white"
|
| 342 |
: "bg-white/5 text-white/20"
|
| 343 |
)}
|
| 344 |
>
|
| 345 |
-
<Send className="w-
|
| 346 |
</button>
|
| 347 |
</div>
|
| 348 |
|
| 349 |
{isCorrectMode && (
|
| 350 |
-
<p className="text-center text-
|
| 351 |
-
🪄 Опиши пр
|
| 352 |
</p>
|
| 353 |
)}
|
| 354 |
</div>
|
|
|
|
| 2 |
|
| 3 |
import { useState, useRef, useEffect } from 'react'
|
| 4 |
import { motion, AnimatePresence } from 'framer-motion'
|
| 5 |
+
import { Send, Bot, User, Loader2, Sparkles, Wand2, ArrowLeft, Trash2, CheckCircle } from 'lucide-react'
|
| 6 |
import { api } from '@/lib/api'
|
| 7 |
import { useToast } from '@/contexts/ToastContext'
|
| 8 |
import { cn } from '@/lib/utils'
|
|
|
|
| 14 |
role: 'user' | 'ai' | 'system'
|
| 15 |
content: string
|
| 16 |
timestamp: Date
|
| 17 |
+
changes?: any[]
|
| 18 |
}
|
| 19 |
|
| 20 |
export default function DemoChatPage() {
|
|
|
|
| 28 |
const messagesEndRef = useRef<HTMLDivElement>(null)
|
| 29 |
const inputRef = useRef<HTMLInputElement>(null)
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
useEffect(() => {
|
| 32 |
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' })
|
| 33 |
}, [messages])
|
| 34 |
|
|
|
|
| 35 |
useEffect(() => {
|
| 36 |
setTimeout(() => inputRef.current?.focus(), 300)
|
| 37 |
}, [])
|
|
|
|
| 46 |
setMessages(prev => [...prev, {
|
| 47 |
id: crypto.randomUUID(),
|
| 48 |
role: 'system',
|
| 49 |
+
content: data.message,
|
| 50 |
timestamp: new Date(),
|
| 51 |
changes: data.changes
|
| 52 |
}])
|
|
|
|
| 91 |
return
|
| 92 |
}
|
| 93 |
|
| 94 |
+
setMessages(prev => [...prev, {
|
| 95 |
id: crypto.randomUUID(),
|
| 96 |
role: 'user',
|
| 97 |
content: userInput,
|
| 98 |
timestamp: new Date()
|
| 99 |
+
}])
|
|
|
|
| 100 |
|
| 101 |
setIsLoading(true)
|
| 102 |
try {
|
|
|
|
| 138 |
toast.info('Чат очищен')
|
| 139 |
}
|
| 140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
if (authLoading) {
|
| 142 |
return (
|
| 143 |
+
<div className="flex items-center justify-center h-screen">
|
| 144 |
<Loader2 className="w-8 h-8 animate-spin text-violet-500" />
|
| 145 |
</div>
|
| 146 |
)
|
| 147 |
}
|
| 148 |
|
| 149 |
return (
|
| 150 |
+
<div className="h-[calc(100vh-56px)] flex flex-col bg-[#0a0a0f]">
|
| 151 |
{/* Header */}
|
| 152 |
+
<header className="flex-shrink-0 flex items-center justify-between px-4 py-3 border-b border-white/5">
|
| 153 |
+
<div className="flex items-center gap-3">
|
| 154 |
+
<Link href="/settings/brain" className="p-2 text-white/40 hover:text-white rounded-lg">
|
| 155 |
<ArrowLeft className="w-5 h-5" />
|
| 156 |
</Link>
|
| 157 |
+
<div className="w-10 h-10 rounded-xl bg-gradient-to-br from-violet-600 to-purple-700 flex items-center justify-center">
|
| 158 |
+
<Bot className="w-5 h-5 text-white" />
|
| 159 |
</div>
|
| 160 |
<div>
|
| 161 |
<h1 className="font-semibold text-white text-sm">Демо-чат</h1>
|
| 162 |
+
<p className="text-[10px] text-white/40">Тестируй AI без сохранения в CRM</p>
|
| 163 |
</div>
|
| 164 |
</div>
|
| 165 |
|
| 166 |
+
<button onClick={clearChat} className="p-2 text-white/40 hover:text-white rounded-lg">
|
| 167 |
+
<Trash2 className="w-4 h-4" />
|
| 168 |
+
</button>
|
|
|
|
|
|
|
| 169 |
</header>
|
| 170 |
|
| 171 |
+
{/* Messages */}
|
| 172 |
+
<div className="flex-1 overflow-y-auto">
|
| 173 |
+
<div className="max-w-2xl mx-auto px-4 py-6 space-y-4">
|
| 174 |
{messages.length === 0 ? (
|
| 175 |
+
<div className="flex flex-col items-center justify-center min-h-[50vh] text-center">
|
| 176 |
+
<div className="w-16 h-16 rounded-2xl bg-gradient-to-br from-violet-600/20 to-purple-600/20 flex items-center justify-center mb-4">
|
| 177 |
+
<Sparkles className="w-8 h-8 text-violet-400" />
|
| 178 |
</div>
|
| 179 |
+
<h3 className="text-lg font-semibold text-white mb-1">Тест AI</h3>
|
| 180 |
+
<p className="text-sm text-white/40 max-w-sm mb-6">
|
| 181 |
+
Пиши как клиент. 🪄 — режим правки настроек.
|
| 182 |
</p>
|
| 183 |
|
| 184 |
<div className="grid gap-2 w-full max-w-sm">
|
| 185 |
<button
|
| 186 |
onClick={() => setInput('Привет!')}
|
| 187 |
+
className="p-3 bg-white/5 border border-white/5 rounded-xl text-sm text-white/70 text-left hover:bg-white/10"
|
| 188 |
>
|
| 189 |
💬 "Привет!"
|
| 190 |
</button>
|
| 191 |
<button
|
| 192 |
onClick={() => setInput('Сколько стоит?')}
|
| 193 |
+
className="p-3 bg-white/5 border border-white/5 rounded-xl text-sm text-white/70 text-left hover:bg-white/10"
|
| 194 |
>
|
| 195 |
💰 "Сколько стоит?"
|
| 196 |
</button>
|
|
|
|
| 203 |
initial={{ opacity: 0, y: 5 }}
|
| 204 |
animate={{ opacity: 1, y: 0 }}
|
| 205 |
className={cn(
|
| 206 |
+
"flex gap-3",
|
| 207 |
msg.role === 'user' && "flex-row-reverse",
|
| 208 |
msg.role === 'system' && "justify-center"
|
| 209 |
)}
|
| 210 |
>
|
| 211 |
{msg.role === 'system' ? (
|
| 212 |
+
<div className="px-4 py-3 bg-violet-500/10 border border-violet-500/20 rounded-xl max-w-[95%]">
|
| 213 |
+
<div className="flex items-start gap-2 text-violet-300 text-sm">
|
| 214 |
+
<CheckCircle className="w-4 h-4 flex-shrink-0 mt-0.5" />
|
| 215 |
<div className="whitespace-pre-wrap">{msg.content}</div>
|
| 216 |
</div>
|
| 217 |
{msg.changes && msg.changes.length > 0 && (
|
| 218 |
+
<div className="mt-3 space-y-2">
|
| 219 |
{msg.changes.map((c: any, i: number) => (
|
| 220 |
+
<div key={i} className="bg-violet-500/10 rounded-lg px-3 py-2 text-xs">
|
| 221 |
<div className="text-violet-200 font-medium">{c.field}</div>
|
| 222 |
{c.section && (
|
| 223 |
<div className="text-violet-400/60 text-[10px]">{c.section}</div>
|
| 224 |
)}
|
| 225 |
{(c.old || c.new) && (
|
| 226 |
+
<div className="text-violet-300 mt-1">
|
| 227 |
<span className="text-red-400/70">{c.old}</span>
|
| 228 |
+
<span className="text-violet-400 mx-2">→</span>
|
| 229 |
<span className="text-green-400">{c.new}</span>
|
| 230 |
</div>
|
| 231 |
)}
|
|
|
|
|
|
|
|
|
|
| 232 |
</div>
|
| 233 |
))}
|
| 234 |
</div>
|
|
|
|
| 237 |
) : (
|
| 238 |
<>
|
| 239 |
<div className={cn(
|
| 240 |
+
"w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0",
|
| 241 |
msg.role === 'user' ? "bg-white/10" : "bg-gradient-to-br from-violet-600 to-purple-700"
|
| 242 |
)}>
|
| 243 |
{msg.role === 'user' ? (
|
| 244 |
+
<User className="w-4 h-4 text-white/70" />
|
| 245 |
) : (
|
| 246 |
+
<Bot className="w-4 h-4 text-white" />
|
| 247 |
)}
|
| 248 |
</div>
|
| 249 |
<div className={cn(
|
| 250 |
+
"max-w-[75%] px-4 py-3 rounded-2xl text-sm",
|
| 251 |
msg.role === 'user'
|
| 252 |
? "bg-violet-600 text-white rounded-br-md"
|
| 253 |
: "bg-white/5 text-white/90 border border-white/5 rounded-bl-md"
|
| 254 |
)}>
|
| 255 |
+
<p className="whitespace-pre-wrap leading-relaxed">{msg.content}</p>
|
| 256 |
</div>
|
| 257 |
</>
|
| 258 |
)}
|
|
|
|
| 261 |
)}
|
| 262 |
|
| 263 |
{isLoading && (
|
| 264 |
+
<div className="flex gap-3">
|
| 265 |
+
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-violet-600 to-purple-700 flex items-center justify-center">
|
| 266 |
+
<Bot className="w-4 h-4 text-white" />
|
| 267 |
</div>
|
| 268 |
+
<div className="bg-white/5 border border-white/5 px-4 py-3 rounded-2xl rounded-bl-md">
|
| 269 |
+
<div className="flex gap-1.5">
|
| 270 |
+
<span className="w-2 h-2 bg-violet-400 rounded-full animate-bounce" style={{ animationDelay: '0ms' }} />
|
| 271 |
+
<span className="w-2 h-2 bg-violet-400 rounded-full animate-bounce" style={{ animationDelay: '150ms' }} />
|
| 272 |
+
<span className="w-2 h-2 bg-violet-400 rounded-full animate-bounce" style={{ animationDelay: '300ms' }} />
|
| 273 |
</div>
|
| 274 |
</div>
|
| 275 |
</div>
|
|
|
|
| 279 |
</div>
|
| 280 |
</div>
|
| 281 |
|
| 282 |
+
{/* Input - Fixed at bottom with proper spacing */}
|
| 283 |
+
<div className="flex-shrink-0 border-t border-white/5 bg-[#0a0a0f] px-4 py-4 md:py-6 md:pb-8">
|
| 284 |
<div className="max-w-2xl mx-auto">
|
| 285 |
<div className={cn(
|
| 286 |
+
"flex items-center gap-2 p-1.5 rounded-xl transition-all",
|
| 287 |
isCorrectMode
|
| 288 |
? "bg-violet-500/10 border-2 border-violet-500/30"
|
| 289 |
+
: "bg-white/5 border border-white/10"
|
| 290 |
)}>
|
| 291 |
<button
|
| 292 |
+
onClick={() => {
|
| 293 |
+
setIsCorrectMode(!isCorrectMode)
|
| 294 |
+
inputRef.current?.focus()
|
| 295 |
+
}}
|
| 296 |
className={cn(
|
| 297 |
+
"p-2.5 rounded-lg transition-all flex-shrink-0",
|
| 298 |
isCorrectMode
|
| 299 |
? "bg-violet-500 text-white"
|
| 300 |
: "text-white/40 hover:text-violet-400"
|
| 301 |
)}
|
| 302 |
+
title="Режим правки"
|
| 303 |
>
|
| 304 |
+
<Wand2 className="w-5 h-5" />
|
| 305 |
</button>
|
| 306 |
|
| 307 |
<input
|
|
|
|
| 310 |
value={input}
|
| 311 |
onChange={(e) => setInput(e.target.value)}
|
| 312 |
onKeyPress={handleKeyPress}
|
| 313 |
+
placeholder={isCorrectMode ? "Опиши что исправить..." : "Сообщение..."}
|
| 314 |
+
className="flex-1 bg-transparent text-white placeholder-white/30 focus:outline-none text-sm px-2"
|
| 315 |
disabled={isLoading}
|
| 316 |
/>
|
| 317 |
|
|
|
|
| 319 |
onClick={handleSend}
|
| 320 |
disabled={!input.trim() || isLoading}
|
| 321 |
className={cn(
|
| 322 |
+
"p-2.5 rounded-lg transition-all flex-shrink-0",
|
| 323 |
input.trim()
|
| 324 |
+
? "bg-violet-600 hover:bg-violet-500 text-white"
|
| 325 |
: "bg-white/5 text-white/20"
|
| 326 |
)}
|
| 327 |
>
|
| 328 |
+
<Send className="w-5 h-5" />
|
| 329 |
</button>
|
| 330 |
</div>
|
| 331 |
|
| 332 |
{isCorrectMode && (
|
| 333 |
+
<p className="text-center text-xs text-violet-400/80 mt-2">
|
| 334 |
+
🪄 Опиши проблему: "не говори бот", "ты Анна а не менеджер"
|
| 335 |
</p>
|
| 336 |
)}
|
| 337 |
</div>
|
frontend/app/settings/brain/page.tsx
CHANGED
|
@@ -792,7 +792,7 @@ export default function BrainSettingsPage() {
|
|
| 792 |
</motion.div>
|
| 793 |
|
| 794 |
{/* Files List Column */}
|
| 795 |
-
<motion.div variants={item} className="bg-surface-elevated rounded-2xl shadow-sm border border-white/10 flex flex-col
|
| 796 |
<div className="p-6 border-b border-white/5 flex items-center justify-between bg-surface/50 rounded-t-2xl">
|
| 797 |
<h2 className="text-lg font-bold text-white flex items-center gap-2">
|
| 798 |
<FileText className="w-5 h-5 text-indigo-600" />
|
|
|
|
| 792 |
</motion.div>
|
| 793 |
|
| 794 |
{/* Files List Column */}
|
| 795 |
+
<motion.div variants={item} className="bg-surface-elevated rounded-2xl shadow-sm border border-white/10 flex flex-col">
|
| 796 |
<div className="p-6 border-b border-white/5 flex items-center justify-between bg-surface/50 rounded-t-2xl">
|
| 797 |
<h2 className="text-lg font-bold text-white flex items-center gap-2">
|
| 798 |
<FileText className="w-5 h-5 text-indigo-600" />
|