From 0dca6376457dfe29bf7875704a6ff1de50be2539 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 17 Jun 2026 17:37:35 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BB=BB=E5=8A=A1FX=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8C=BA=E6=93=8D=E4=BD=9C=E5=8C=BA=E4=BB=8E=E5=8F=B3=E4=B8=8B?= =?UTF-8?q?=E8=A7=92=E6=B5=AE=E5=B1=82=E7=A7=BB=E5=85=A5=E5=B7=A6=E4=BE=A7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A0=8F=E5=BA=95=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TaskFloatingActions 重命名为 TaskActionsPanel,挂到对话列表底部 - 不再 absolute 覆盖右侧聊天输入框;编辑/下一步/清除记录改为操作卡片 - 左侧栏样式增强(标题/会话数/选中态高亮) Co-Authored-By: Claude Opus 4.8 (1M context) --- .../task-components/TaskFxWorkspace.tsx | 117 ++++++++++++------ 1 file changed, 76 insertions(+), 41 deletions(-) diff --git a/frontend-web/src/strategy-components/components/task-components/TaskFxWorkspace.tsx b/frontend-web/src/strategy-components/components/task-components/TaskFxWorkspace.tsx index e251a68b..8813e37c 100644 --- a/frontend-web/src/strategy-components/components/task-components/TaskFxWorkspace.tsx +++ b/frontend-web/src/strategy-components/components/task-components/TaskFxWorkspace.tsx @@ -2,7 +2,7 @@ * 任务深链(rwfx / 任务FX)的「任务工作区」:一个任务挂多个对话(1:N)。 * * 左侧 = 该任务下的对话列表(按 metadata.taskId 过滤)+「新建对话」; - * 右下角 = 常驻浮层红色按钮(编辑 / 下一步 / 清除任务记录),absolute 定位,时刻可见、不被内容挤走; + * 右下角 = 常驻浮动操作条(编辑 / 下一步 / 清除任务记录),absolute 定位,时刻可见、不被内容挤走; * 右侧 = 渲染选中的对话(AgentChatPage,新建对话顶部带目的树闸门面板)。 * * - 进入 chats 索引:有历史 → 跳最新;无历史 → 跳 new(=新建,走闸门)。 @@ -61,44 +61,69 @@ function TaskConversationsList({ taskId, chatsBase }: { taskId: string; chatsBas const currentThreadId = useMemo(() => parseThreadId(pathname, chatsBase), [pathname, chatsBase]); return ( -
-
-
-
+
{isLoading ? ( -
加载中…
+
+ 加载中… +
) : threads.length === 0 ? ( -
暂无对话
+
+ 暂无对话 +
) : ( threads.map((thread) => ( )) )}
+
); } /** - * 右下角常驻红色操作浮层:编辑 / 下一步 / 清除任务记录。 - * absolute 定位在工作区右侧面板内,z-40,时刻可见、不被聊天内容挤走。 + * 左侧任务栏底部操作区:编辑 / 下一步 / 清除任务记录。 + * 跟随任务对话面板布局,不再覆盖右侧聊天输入框。 */ -function TaskFloatingActions({ taskId }: { taskId: string }) { +function TaskActionsPanel({ taskId }: { taskId: string }) { const [clearOpen, setClearOpen] = useState(false); const [clearing, setClearing] = useState(false); @@ -123,32 +148,43 @@ function TaskFloatingActions({ taskId }: { taskId: string }) { return ( <> -
- - - +
+
+
+ 任务操作 +
+
+ + + +
+
!clearing && setClearOpen(o)}> @@ -173,7 +209,7 @@ function TaskFloatingActions({ taskId }: { taskId: string }) { ); } -/** 任务工作区布局:左列表 + 右 Outlet + 右下角常驻红色操作浮层。 */ +/** 任务工作区布局:左列表 + 右 Outlet。 */ export function TaskFxWorkspace({ taskBase }: { taskBase: string }) { const { taskId, chatsBase } = useChatsBase(taskBase); // 预拉配置,保证「编辑/下一步」的同步 URL 构造能读到缓存。 @@ -185,7 +221,6 @@ export function TaskFxWorkspace({ taskBase }: { taskBase: string }) {
-
);