diff --git a/src/components/asignaturas/detalle/IAAsignaturaTab.tsx b/src/components/asignaturas/detalle/IAAsignaturaTab.tsx index 34946ac..e5f00f3 100644 --- a/src/components/asignaturas/detalle/IAAsignaturaTab.tsx +++ b/src/components/asignaturas/detalle/IAAsignaturaTab.tsx @@ -25,7 +25,12 @@ import type { IASugerencia } from '@/types/asignatura' import ReferenciasParaIA from '@/components/planes/wizard/PasoDetallesPanel/ReferenciasParaIA' import { Avatar, AvatarFallback } from '@/components/ui/avatar' import { Button } from '@/components/ui/button' -import { Drawer, DrawerContent } from '@/components/ui/drawer' +import { + Drawer, + DrawerContent, + DrawerOverlay, + DrawerPortal, +} from '@/components/ui/drawer' import { ScrollArea } from '@/components/ui/scroll-area' import { Textarea } from '@/components/ui/textarea' import { @@ -75,6 +80,7 @@ export function IAAsignaturaTab({ const [showSuggestions, setShowSuggestions] = useState(false) const [isSending, setIsSending] = useState(false) const scrollRef = useRef(null) + const [isSidebarOpen, setIsSidebarOpen] = useState(false) // --- DATA QUERIES --- const { data: datosGenerales } = useSubject(asignaturaId) @@ -355,10 +361,35 @@ export function IAAsignaturaTab({ ] return ( -
- {/* PANEL IZQUIERDO */} -
-
+
+
+ + +
+ + Asistente + +
+ + +
+ {/* 1. PANEL IZQUIERDO (HISTORIAL) - Desktop */} + - {/* PANEL CENTRAL */} -
+ {/* 2. PANEL CENTRAL (CHAT) - EL RECUADRO ESTILIZADO */} +
+ {/* Header Interno del Recuadro */}
- - Asistente IA - - +
+ + Asistente Académico - )} - + + Personalizado para tu asignatura + +
+
+ +
+ +
+ {/* Área de Mensajes */}
-
+
{messages.map((msg) => (
- {/* INPUT */} -
-
- {showSuggestions && ( -
-
- Filtrando campos... - - ESC para cerrar - -
-
- {filteredFields.length > 0 ? ( - filteredFields.map((field) => ( - - )) - ) : ( -
- No se encontraron coincidencias -
- )} -
-
- )} - -
- {selectedFields.length > 0 && ( -
- {selectedFields.map((field) => ( -
- - {field.label} - -
- ))} + {/* Input de Chat */} +