Files
deerflow-code/frontend-web/src/pages/MafRoutes.tsx
T
董宏凯andCursor f82363d81f feat(maf): Phase 5 - action coordinator, approval flow, frontend MAF roundtable pages
- Backend: action_coordinator, capability_snapshot, event_normalizer, tool_executor updates
- Backend: approved_tool_executor with write guard, action leases, migration script
- Frontend: maf-roundtable module (API client, event timeline, approval cards, fact flow panel)
- Frontend: MafRoutes, MafSessionsPage, MafRunDetailPage
- Tests: action_leases, migration_phase5, phase5_entry_e2e, real_write_e2e/http_e2e
- Docs: update implementation plan

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 13:07:21 +08:00

26 lines
855 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* MAF 多智能体会商路由树(/page/maf/*)。
*
* 仿 RoundtableRoutes:顶层包一层满高容器,内部 <Routes>:
* index → 会话列表
* runs/:runId → 单 run 工作区(时间线/席位/流程图/审批)
* * → 重定向到 index
*/
import { Navigate, Route, Routes } from "react-router-dom";
import MafRunDetailPage from "@/maf-roundtable/pages/MafRunDetailPage";
import MafSessionsPage from "@/maf-roundtable/pages/MafSessionsPage";
export default function MafRoutes() {
return (
<div className="h-full w-full overflow-hidden">
<Routes>
<Route index element={<MafSessionsPage />} />
<Route path="runs/:runId" element={<MafRunDetailPage />} />
<Route path="*" element={<Navigate to="/page/maf" replace />} />
</Routes>
</div>
);
}