chat client UI restructure + added all projects view and settings view(placeholder)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import MessageBubble from './MessageBubble';
|
||||
|
||||
export default function ChatWindow({ messages, loadingHistory, streaming, onSendMessage, onCancel, activeSession }) {
|
||||
export default function ChatWindow({ messages, loadingHistory, streaming, onSendMessage, onCancel, activeSession, onTogglePanel }) {
|
||||
const bottomRef = useRef(null);
|
||||
const inputRef = useRef(null);
|
||||
const [input, setInput] = React.useState('');
|
||||
@@ -28,10 +28,11 @@ export default function ChatWindow({ messages, loadingHistory, streaming, onSend
|
||||
<div className="flex-col flex-1 overflow-hidden" style={{ background: 'var(--bg-base)' }}>
|
||||
|
||||
{/* Header */}
|
||||
<div className="panel-header" style={{ padding: '0 20px' }}>
|
||||
<div className="panel-header" style={{ padding: '0 12px 0 20px', justifyContent: 'space-between' }}>
|
||||
<span className="text-base text-secondary">
|
||||
{activeSession ? ( activeSession.name || activeSession.external_id) : 'No session selected'}
|
||||
{activeSession ? (activeSession.name || activeSession.external_id) : 'No session selected'}
|
||||
</span>
|
||||
<button className="btn-icon" onClick={onTogglePanel} title="Session info">⊹</button>
|
||||
</div>
|
||||
|
||||
{/* Message thread */}
|
||||
|
||||
Reference in New Issue
Block a user