Summary: - Migrate backend to modules/rvw with v2 API routes (/api/v2/rvw) - Add new database fields: selectedAgents, editorialScore, methodologyStatus, picoExtract, isArchived - Create frontend module in frontend-v2/src/modules/rvw - Implement Dashboard with task list, filtering, batch operations - Implement ReportDetail with dual tabs (editorial/methodology) - Implement AgentModal for intelligent agent selection - Register RVW module in moduleRegistry.ts - Add navigation entry in TopNavigation - Update documentation for RVW module status (v3.0) - Update system status document (v2.9) Features: - User can select agents: editorial, methodology, or both - Support batch task execution - Task status filtering - Replace console.log with logger service - Maintain v1 API backward compatibility Tested: Frontend and backend verified locally Status: 85% complete (Phase 1-3 done)
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { Routes, Route, Navigate } from 'react-router-dom'
|
|
import MainLayout from './layouts/MainLayout'
|
|
import HomePage from './pages/HomePage'
|
|
import AgentChatPage from './pages/AgentChatPage'
|
|
import ChatPage from './pages/ChatPage'
|
|
import KnowledgePage from './pages/KnowledgePage'
|
|
import HistoryPage from './pages/HistoryPage'
|
|
import ReviewPage from './pages/ReviewPage'
|
|
import { RvwDashboard } from './pages/rvw'
|
|
|
|
function App() {
|
|
return (
|
|
<Routes>
|
|
{/* RVW模块 - 独立布局 */}
|
|
<Route path="/rvw" element={<RvwDashboard />} />
|
|
|
|
{/* 主系统 */}
|
|
<Route path="/" element={<MainLayout />}>
|
|
<Route index element={<HomePage />} />
|
|
<Route path="chat" element={<ChatPage />} />
|
|
<Route path="review" element={<ReviewPage />} />
|
|
<Route path="agent/:agentId" element={<AgentChatPage />} />
|
|
<Route path="knowledge" element={<KnowledgePage />} />
|
|
<Route path="history" element={<HistoryPage />} />
|
|
<Route path="*" element={<Navigate to="/" replace />} />
|
|
</Route>
|
|
</Routes>
|
|
)
|
|
}
|
|
|
|
export default App
|
|
|