feat(client): workflow-graph Tasks page with teams board and jobs drawer
The Subagent page becomes the Tasks page per the approved Variant-D design: - tasks-model.ts feeds BOTH modes from one pre-order node list: graph canvas (TasksGraph: layered nodes over bezier edges, drag-pan, wheel-zoom-to-cursor, phase frames, bottom-right control cluster) and the classic tree (TasksTree: keyboard navigable) — the view toggle and fold toggle stay reachable in both modes. - Workflow runs (workflows.list) hang under their origin agent; member agents re-parent under the run node, missing ones synthesize from run data; completed leaf agents fold into per-parent aggregate nodes (click or cluster toggle to expand/re-collapse). - Agent Teams (experimental): roster enriches nodes; a header chip opens the shared task board popover with basic CAS operations (complete / reopen / delete / reassign / create / edit); no experimental layer → the whole block hides (structural degradation). - Background jobs move into a bottom drawer that auto-collapses at 8+ agents (manual toggle wins); job output opens as an anchored popover (event replay, never the model's cursor); two-click kill preserved. - Live activity lines render as glyph + tool + args (tool-icons map onto host primitive icons). - Node click jumps to the transcript; ⓘ opens the detail popover; popovers follow the selection-popup dismissal contract (Escape / outside click / anchor off-screen via IntersectionObserver). - tasksViewMode pref (graph default) with a select row in settings; 58 new copy keys across zh/en/ja + 18 third-language dictionaries; dead CSS from the old tree/dock pruned. - Tests: 6 new page-interaction specs (auto-collapse, both-mode toggle, jump, fold, popover); jobs-view suite re-pointed at the popover; prefs/builtins/smoke lock tests updated for the new pref.
This commit is contained in:
1 parent
fdc4520080
commit
6448d8bad9
38 files changed
+4190
-1387
No files matched your search
@@ -405,6 +405,64 @@ export const zhTW: Record<string, string> = {
|
||||
jobKill: '終止',
|
||||
jobKillConfirm: '再次點擊確認終止',
|
||||
jobKillError: '終止失敗',
|
||||
tasksViewGraph: '工作流圖',
|
||||
tasksViewTree: '樹狀圖',
|
||||
tasksViewSwitchToGraph: '切換為工作流圖',
|
||||
tasksViewSwitchToTree: '切換為樹狀圖',
|
||||
settingsViewModeTitle: '任務管理預設檢視',
|
||||
settingsViewModeDesc: '任務管理頁開啟時的預設顯示方式(頁內仍可臨時切換)',
|
||||
settingsViewModeGraph: '工作流圖',
|
||||
settingsViewModeGraphDesc: '分層節點圖,可縮放平移',
|
||||
settingsViewModeTree: '樹狀圖',
|
||||
settingsViewModeTreeDesc: '經典縮排樹,可用鍵盤導航',
|
||||
tasksWorkflowMember: '工作流成員',
|
||||
tasksFoldCompleted: '✓ {count} 已完成',
|
||||
tasksFoldExpand: '展開已完成的節點',
|
||||
tasksFoldCollapse: '收起已完成的節點',
|
||||
tasksZoomIn: '放大',
|
||||
tasksZoomOut: '縮小',
|
||||
tasksZoomFit: '適應畫布',
|
||||
tasksNodeJump: '檢視逐字稿',
|
||||
tasksNodeState: '狀態',
|
||||
tasksNodeMode: '模式',
|
||||
tasksNodeModel: '模型',
|
||||
tasksNodeTeamRole: '團隊角色',
|
||||
tasksNodeActivity: '最近活動',
|
||||
tasksStateRunning: '執行中',
|
||||
tasksStateIdle: '閒置',
|
||||
tasksStateDone: '已完成',
|
||||
tasksStateError: '出錯',
|
||||
teamBoard: '團隊任務板',
|
||||
teamChip: '團隊 {members} 成員 · {tasks} 任務',
|
||||
teamMembers: '成員',
|
||||
teamTasksEmpty: '暫無共用任務',
|
||||
teamTaskCreate: '新增任務',
|
||||
teamTaskSubject: '標題',
|
||||
teamTaskDescription: '描述',
|
||||
teamTaskOwner: '負責人',
|
||||
teamTaskUnowned: '未認領',
|
||||
teamTaskPending: '待辦',
|
||||
teamTaskInProgress: '進行中',
|
||||
teamTaskCompleted: '已完成',
|
||||
teamTaskBlocked: '受阻',
|
||||
teamTaskComplete: '完成',
|
||||
teamTaskReopen: '重開',
|
||||
teamTaskDelete: '刪除',
|
||||
teamTaskDeleteConfirm: '確認刪除',
|
||||
teamTaskEdit: '編輯',
|
||||
teamTaskSave: '儲存',
|
||||
teamTaskCancel: '取消',
|
||||
teamTaskConflict: '任務已被他人修改,已重新整理',
|
||||
teamTaskError: '操作失敗:{message}',
|
||||
teamTaskDeleted: '已刪除',
|
||||
workflowRunning: '進行中',
|
||||
workflowCompleted: '已完成',
|
||||
workflowCancelled: '已取消',
|
||||
workflowFailed: '失敗',
|
||||
workflowPhaseUnnamed: '未命名階段',
|
||||
workflowMembers: '{done}/{total} 成員',
|
||||
jobsAutoCollapsed: '代理較多,已自動收起',
|
||||
catalogLoadFailed: '{count} 個分支載入失敗',
|
||||
addPluginsTabCard: '新增 Tab 插件',
|
||||
addPluginsTabCardDesc: '註冊新的側邊欄頁面',
|
||||
addPluginsViewerCard: '新增預覽插件',
|
||||
|
||||
Reference in new issue
Block a user