chat sessions in project view
This commit is contained in:
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
|
||||
import ChatWindow from './components/ChatWindow';
|
||||
import InfoPanel from './components/InfoPanel';
|
||||
import Sidebar from './components/Sidebar';
|
||||
import {v4 as uuidv4} from 'uuid';
|
||||
|
||||
/*** View Panels*** */
|
||||
import AllChatsView from './components/AllChatsView';
|
||||
@@ -25,6 +26,7 @@ export default function App() {
|
||||
|
||||
const {
|
||||
sessions,
|
||||
setSessions,
|
||||
activeSession,
|
||||
messages,
|
||||
loadingHistory,
|
||||
|
||||
@@ -159,7 +159,7 @@ export default function Sidebar({
|
||||
{projects.slice(0, 6).map(project => (
|
||||
<button
|
||||
key={project.id}
|
||||
onClick={() => {onSelectProject(project); onNavigate('all-projects')}}
|
||||
onClick={() => {onSelectProject(project); onNavigate('project')}}
|
||||
className="btn-reset text-xs"
|
||||
style={{
|
||||
padding: '4px 8px',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState, useCallback, useRef } from 'react';
|
||||
import { streamMessage } from '../api/orchestration';
|
||||
import { streamMessage, updateSession } from '../api/orchestration';
|
||||
|
||||
export function useChat({ activeSession, appendMessage, updateLastMessage, refreshSessions }) {
|
||||
const [streaming, setStreaming] = useState(false);
|
||||
|
||||
Reference in New Issue
Block a user