feat(ai写作): 左侧研究栏加历史记录列表(参考会商样式)+侧栏可收起
- ResearchSidebar 底部新增「历史记录」列表,跟随侧栏自然滚动;样式对齐 多智能体会商 HistoryDropdown(圆角卡片+divide-y+状态药丸+打开/改名/删除) - 点历史记录在右侧区域显示历史回看,左侧栏保留(showSidebar 含历史态) - 侧栏顶部加「收起」按钮,收起为细窄展开条(页面承载 sidebarCollapsed) - 「挂起中」记录点击经 window 事件 ai-writing:show-progress 打开进度流程图弹窗 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
53af352ce8
commit
2097587b42
3 files changed
+266
-13
No files matched your search
@@ -284,6 +284,16 @@ export function AIWritingPanel({
|
||||
return () => window.removeEventListener('ai-writing:open-session', onOpenSession);
|
||||
}, []);
|
||||
|
||||
// 路径4:左侧研究栏「历史记录」点「挂起中」记录 → 打开进度流程图弹窗(与下拉历史一致)。
|
||||
useEffect(() => {
|
||||
function onShowProgress(e: Event) {
|
||||
const session = (e as CustomEvent<AIWritingSessionSummary>).detail;
|
||||
if (session) setProgressSession(session);
|
||||
}
|
||||
window.addEventListener('ai-writing:show-progress', onShowProgress);
|
||||
return () => window.removeEventListener('ai-writing:show-progress', onShowProgress);
|
||||
}, []);
|
||||
|
||||
// 路径3:URL ?session=xxx 直接定位到指定会话
|
||||
useEffect(() => {
|
||||
const sessionId = searchParams.get('session');
|
||||
|
||||
Reference in new issue
Block a user